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 |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-05-04 : 08:42:39
|
Bob writes "SQL Enterprise manager V 8.0 Managment Console Ver 5.1 Service Pack 2.
I am simply trying to Select * from (oracle Database) where (oracle field) = '1'+Getdate() ,112
I keep getting, --------------------------- SQL Server Enterprise Manager --------------------------- ADO error: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00919: invalid function . --------------------------- OK Help ---------------------------
The only way I get data from this field is to hard code "1060501" which is a leading 1 with YYMMDD. I've tried variations of this but seem to think I'm running up against a drive problem. The Oracle is an older version.
Your Help is appreciated. Bob" |
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2006-05-04 : 09:52:04
|
put the value of getdate into a local variable 1st and then incorporate the result into the sql string. after all the getdate value won't change from record to record. |
 |
|
|
|
|