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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Problem with date in SQL statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-12-07 : 08:04:22
natasha writes "SELECT ID from dbo.MyTable where myDate = '12/1/2005 2:15:28 PM'

i am getting an error that "Object reference not set to an instance of an object

Can anyone help me out why i am getting this error.

i tried this query analyzer, it doesnt seem to work there also..

natasha"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-07 : 08:07:18
Read this
http://www.sql-server-performance.com/fk_datetime.asp

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -