取得Sql Server 2000服务器时间? 我写了存储过程:create procedure Get_Dateasreturn select getdate()go不知是否正确,还有怎样获取这个存储过程返回的时间?请给出参考代码,谢谢. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1 getdate() 是对的;2 如果需要return,可以 先定义输出变量,然后 用set命令或者 select @date = getdate()就可以了; SqlCommand myCommand = new SqlCommand(Get_Date, myConnection);myCommand.CommandType = CommandType .StoredProcedure ; myCommand.Connection.Open(); myCommand.ExecuteScalar(); myConnection.Close(); create procedure Get_Dateasselect getdate()go-----return 不要 请看我的代码有没有问题? .net 怎么导入导出Excel?急 asp.net mvc 分页 用户代码未处理NullReferenceException,未将对象引用设置到对象的实例!大哥大姐们帮忙看一下!我急用!不行再加分! 遇到这种希奇古怪的事,我该如何处理? 页面传值的事 弹出窗口值返回给父窗口问题,急……在线等 .net 无验证邮件发送问题 问个傻问题哈:用debug进行断点调试,运行后没反应,网页左下方提示“网页上有错误” 是关于图形颜色的问题!!! 求登录权限代码!! 怎么用JMAIL检测一个SMTP服务器可用呢? 为什么总提示“insert into”错误!!
2 如果需要return,可以 先定义输出变量,然后 用set命令或者 select @date = getdate()就可以了;
myCommand.CommandType = CommandType .StoredProcedure ;
myCommand.Connection.Open();
myCommand.ExecuteScalar();
myConnection.Close();
as
select getdate()
go
-----
return 不要