不带参数的存储过程:
Const adCmdStoredProc = 4
Const adInteger = 3Set Comm = Server.CreateObject("ADODB.Command")
Comm.ActiveConnectiong = "DSN=carlos;UID=sa;PWD=;Database=wages"
Comm.CommandText = "wgs_mtrx"
Comm.CommandType = adCmdStoredProcComm.Execute
Set Comm = nothing
Const adCmdStoredProc = 4
Const adInteger = 3Set Comm = Server.CreateObject("ADODB.Command")
Comm.ActiveConnectiong = "DSN=carlos;UID=sa;PWD=;Database=wages"
Comm.CommandText = "wgs_mtrx"
Comm.CommandType = adCmdStoredProcComm.Execute
Set Comm = nothing
解决方案 »
- sql中的函数怎么换用户名
- select datepart(week,getdate()) 这句话有问题
- 数据库备份时系统数据库是否要备份?
- 在线等::将某一字段的值修改为该值减去根据查询得到的值
- 请问下面这个语句创建的是不是非聚集索引?
- 关于sql server2000用户管理
- 索引碎片可以通过重建索引来整理,但表的碎片该如何整理呢?
- 急!,我弄到了一个项目,人手不够,望sql server +vb高手加盟
- 大家誰知道在SQL Server裡中文怎麼可以按照筆畫來排序?
- 高手:如何编程修改sqlserver的系统密码
- 请高手来帮帮忙
- 为何我通过sql server访问access数据库老是出错?
其中proc_relInfo_selNum 为存储过程的名字,userID 为参数cmd.ActiveConnection = conn
cmd.CommandText = "proc_relInfo_selNum "& userID
rs = cmd.Execute()
http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=133244