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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 time part being dropped by the procedure
 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

38200 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  
 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.02 seconds. Powered By: Snitz Forums 2000