Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 time part being dropped by the procedure

Author  Topic 

vamsidhar.tangutoori
Starting Member

19 Posts

Posted - 2013-10-19 : 11:04:20
Hi,
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

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

Create proc sp1
(@pdate datetime)
as
Begin try

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

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-10-19 : 13:48:18
You will need to show us the code of the stored procedures.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -