![]() |
| Incorrect syntax near the keyword 'ON'. |
|
kramm
|
I have a CF8 site and my database is MS SQL
I am running a query that is creating database tables. I receive this error: Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'ON'. My code has sever scripts similar to this
why does MS SQL not like ON DELETE CASCADE ON UPDATE CASCADE?? thanks. |
||||||||||||||
|
|
|||||||||||||||
|
dmalone
HostMySite Tech
|
I'm not a SQL expert so I am not sure how the syntax should look, but I would try running the query in SQL Management Studio directly to see if you get a better error.
-Dave |
||||||||||||
|
|
|||||||||||||
| Re: Incorrect syntax near the keyword 'ON'. |
|
Jason101
Forum Regular
|
Try this. It's not much different, but give it a shot and run it in Management Studio:
|
||||||||||||||
|
|
|||||||||||||||
| SGL Query issue |
|
kramm
|
At work, I had our DB administrator run the Script to generate the database tables on a MS SQL 2000 server as well as MS SQL 2005 server. It ran successfully on both.
Seems as though there is some setting issue?? at HostMySite.com?? Any thoughts?? Thanks for the help. Kelly |
||||||||||||
|
|
|||||||||||||
|
dmalone
HostMySite Tech
|
Well I would guess that your DBA ran it as a server administrator on your local database, so since you don't have server admin access in the shared environment that may be an issue. That being said, you should have DBO access to your database which should give you the ability to do whatever you need.
If you run the query in management studio directly and the error isn't any better, give us a ring and open a support ticket about it and we will be able to look at the settings on the database in depth. -Dave |
||||||||||||
|
|
|||||||||||||
| SQL7 |
|
kramm
|
I put in a support ticket and turns out my database was on a SQL7 server.
No wonder I am having issues.... geez not what I signed up for. Hopefully the database will be upgraded to SQL2005 without issue or charge. |
||||||||||||
|
|
|||||||||||||
| Re: SQL7 |
|
Jason101
Forum Regular
|
Oh geez.. Didn't even know SQL7 was an option anymore. YIKES! |
||||||||||||||
|
|
|||||||||||||||
|
dmalone
HostMySite Tech
|
Wow that is really pretty odd, because that hasn't been an option for over 4 years. Can you PM me the ticket number so I can take a look at exactly what happened on our end?
Sorry for the trouble with this! -Dave |
||||||||||||
|
|
|||||||||||||
| Incorrect syntax near the keyword 'ON'. |
|
||
|


