在将日期作为输入传递到sqlserver 2005中的存储过程时出现问题 [英] Problem while passing date as input to stored procedure in sqlserver 2005

查看:101
本文介绍了在将日期作为输入传递到sqlserver 2005中的存储过程时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我通过传递Fromdate,Todate,venrodId值作为输入参数从应用程序中调用存储过程.在这里我没有收到任何错误,但也没有得到任何结果.

我在那里打开sql server profiler,发现日期是在两个单引号之间指定的.

Hi all

I am calling a stored procedure from my application by passing Fromdate, Todate,venrodId values are input paramerts.Here i am not getting any errors but i am also not geting any result.

I opend sql server profiler there i found that date is specifying between two single quotations.

exec VALIDATE_SUPPORTDOCUMENTS @iInVendorID=4,@dtFromDate=''''2010-01-01 00:00:00:000'''',@dtToDate=''''2011-09-30 00:00:00:000''''




请任何帮助我如何在此处完善额外的单句.

在此先感谢

K Uday




please any help me how i can elemenate extra single quation here.

Thanks in advance

K Uday

推荐答案

尝试一下,但是如果您没有得到结果,请别介意回答我,我将建议您几种方法...
try this but plz dont mind reply me if you are not getting result ,i wiil suggest you few ways ...
exec VALIDATE_SUPPORTDOCUMENTS ''4'',''2001-01-01'',''2011-09-30''


这篇关于在将日期作为输入传递到sqlserver 2005中的存储过程时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆