gpt4 book ai didi

sql - 错误 SQL70001 : This statement is not recognized in this context

转载 作者:行者123 更新时间:2023-12-02 00:53:37 25 4
gpt4 key购买 nike

我在 ASP.NET 应用程序中有存储过程,如下所示:

CREATE PROCEDURE [dbo].[step2-e]
@PI varchar(50),
@Balance int output ,
@Shipment_status varchar(50) output,
@ETA varchar(50) output,
@Forwarder varchar(50) output,
@Transit_time Time output,
@Shipping_date date output,
@Shipping_method varchar(50) output,
@Clearance_location varchar(50) output,
@Advance_payment varchar(50) output
@Balance_t varchar(50) output,
@Loading_date date output
@Balance_d date output
AS
Begin
select
@Advance_payment = [advance_payment] @Balance = [Balance],
@Shipment_status = [Shipment_status],
@ETA = [Eta], @Forwarder = [Forwarder],
@Transit_time = [Transit_time], @Shipping_date = [Shipping_date],
@Shipping_method = [Shipping_method],
@Clearance_location = [Clearance_location],
@Balance_d = [Balance_due_d],
@Balance_t = [Balance_due_t],
@Loading_date = [Loading_date]
from
Inbound
where
[Pi1] = @PI
End
GO

Select convert(date, [dbo].[step2-e] ,3);
GO

但是在 Go word on select 之后我收到错误消息:-

Error SQL70001: This statement is not recognized in this context

好吧,我认为 Go word 使用有问题当我搜索时,我找到了解决方案,但在 ASP.NET 网站而不是 ASP.NET 应用程序中。我找到了解决方案here但我在 asp.net 应用程序中找不到脚本文件。我只能在asp.net网站上找到它。我能做什么?

最佳答案

此错误是由于“构建操作”在“属性”内设置为“构建”所致。将其设置为无,它应该可以正常工作。 enter image description here

关于sql - 错误 SQL70001 : This statement is not recognized in this context,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23579853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com