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.
| Author |
Topic |
|
mikedcmdva
Starting Member
7 Posts |
Posted - 2012-01-26 : 12:40:21
|
| Hello everyone!I am having a rough issue here. I have a Sybase database for which I need to run a query on to select data based on a column named "regdate" which has a datatype of "DATE".One particular row has a value in the row of this column of "8/2/1999".Whenever I run a:select * from daily where regdate = '8/2/1999'It says:Restricted data type violation: Cannot convert 8/2/1999 to a timestamp.What would be the best way to go about working around this? This is not my database so I can't modify the tables in any way.Sorry if this is a newbie question....I have tried SQL CONVERT examples but I haven't gotten anywhere.. |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2012-01-26 : 13:07:39
|
| This site is primarily for MS SQL SERVER. Try over at http://www.dbforums.com/sybase/http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspxHow to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxFor ultra basic questions, follow these links.http://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
mikedcmdva
Starting Member
7 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|