摘要: 1)返回结果为参数 存储过程代码:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE getStudentAmount@recordCount int outputASbegin select @recordCount=count(*) from studentInfo;end 测试代码: XXXXXX2)返回结果为数据集 存储过程代码:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE queryAllStudentInfoASbegin select * 阅读全文
posted @ 2011-05-18 22:58 edisonfeng 阅读(366) 评论(0) 推荐(0) 编辑
摘要: A)返回结果为参数 var Cn:TAdoConnection; Sp:TAdoStoredProc; recordCount:string; begin Cn := TAdoConnection.Create(nil); try Cn.ConnectionString := [数据库连接字符串]; Cn.LoginPrompt := False; Cn.KeepConnection := True; Cn.ConnectionTimeout:=2; try... 阅读全文
posted @ 2011-05-18 22:33 edisonfeng 阅读(4393) 评论(1) 推荐(0) 编辑