我的存储过程创建为:
CREATE PROCEDURE [dbo].[AddDocument]
@PatientID uniqueid,
@AuthorID uniqueid,
@NewDocID uniqueid output,
@Status integer output ,
@OwnerID uniqueid = 0
DBFit 是:
!|DatabaseEnvironment|SQLSERVER |
|ConnectUsingFile |${worksConnection}|
|set option|bind symbols|false|
!4 Verify the last document table entry just added by AddDocument
!|Execute Procedure|dbo.AddDocument|
|PatientID|AuthorID|NewDocID?|Status?|
|370723 |1 |>>docid |>>status|
!|Set Parameter|docid|<<docid|
!|Query |!-SELECT * FROM dbo.Document where documentid=:docid-!|
|PatientID?|AuthorID|
|370723 |1 |
运行此返回错误:
System.Data,SqlClient.SqlException (0x80131904): ':' 附近的语法不正确
如何使用 docid 作为第二个查询的输入?谢谢你的帮助。