SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 time part being dropped by the procedure
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

19 Posts

Posted - 10/19/2013 :  11:04:20  Show Profile  Reply with Quote
I have writen a nested stored procedure when i am passing a datetime paramter from the first procedure into the internally called procedure it is dropping the time part, can someone please help me how to fix this

Declare @pdate datetime
Exec sp1 @pDate<this is datetime> = '2013-10-19 14:00:00'

Create proc sp1
(@pdate datetime)
Begin try

Exec sp2 @pdate <this is the same parameter for sp1>
End try
Begin Catch
Select 'error'
end catch

Almighty SQL Goddess

38167 Posts

Posted - 10/19/2013 :  13:48:18  Show Profile  Visit tkizer's Homepage  Reply with Quote
You will need to show us the code of the stored procedures.

Tara Kizer
SQL Server MVP since 2007
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000