Doug Baroter (qwert12345 (AT) boxfrog (DOT) com) writes:
Quote:
"And why you have a hardcoded object id is beyond me..."
No, I copied it over from a successful execution. |
Does that object still live?
I should probably have emphasized that the last bracket in the message
makes it clear that it comes from SQL Server.
[Macromedia][SQLServer JDBC Driver][SQLServer]
Incorrect syntax near the keyword 'as'.
Thus, the likelihood that the JDBC driver is the culprit is small. That
would imply that the JDBC driver mangles the batch somehow. And it
certainly has nothing to do with JDBC driver not supporting column
aliases.
Exactly how does the Java code that emits this SQL look like? From
where do you get the object ID?
If you have admin priviledges on SQL Server, you can use the Profiler
to see what actually is sent to SQL Server.
--
Erland Sommarskog, SQL Server MVP, sommar (AT) algonet (DOT) se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp