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
 SQL Dates Issue

Author  Topic 

SQLNoob81
Starting Member

38 Posts

Posted - 2011-05-05 : 06:25:16
Hi Guys

I imported data from Access to SQL, I kept getting error and eventually found out that it was an issue with a date field. Changed it to text and the import worked fine.

Is there any way I can find the record that has the incorrect date structure now that it's in sql.

eg. select * from Table where date is not date ????


Thanks

raghuveer125
Constraint Violating Yak Guru

285 Posts

Posted - 2011-05-05 : 06:39:24
use
Select * from Your_table
then post your some output records



In Love... With Me!
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-05-05 : 07:20:46
Try ISDATE()
http://msdn.microsoft.com/en-us/library/ms187347.aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -