<P> 有这样一个存储过程:<BR>set ANSI_NULLS ON<BR>set QUOTED_IDENTIFIER ON<BR>go<BR>ALTER PROCEDURE [dbo].[sp_Question_Insert] <BR>(<BR> @question_id bigint,<BR> @Content Ntext<BR> )<BR>AS<BR>begin<BR>SET NOCOUNT ON;<BR> INSERT INTO [Question] (<BR> [version_id],<BR> [content]) <BR> values (<BR> @versionid,<BR> @Content)<BR>SET @question_id = SCOPE_IDENTITY()</P> <P>SCOPE_IDENTITY()<FONT size=2>返回为当前会话和当前作用域中的任何表最后生成的标识值,这个值我想在CS文件里接收,怎么接收呢??</FONT></P>
DIEA
相关分类