MS SQL Quarantine DB |
Post Reply ![]() |
Author | |
Brice Beyer ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() Posted: 20 August 2004 at 10:20am |
I'm trying to move the current Access DB to Microsoft SQL Server 7.0. However, when I try to execute the following statement from the .sql file provided, I receive the error "Incorrect syntax near the keyword 'ON'." ALTER TABLE [dbo].[tblQuarantine] ADD Any ideas? I tried this on a SQL Server 2000 and it worked just fine. |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
Brice,Are you running the scripts manually using a SQL query tool (if so, which one?), or are you trying to setup the database using SpamFilter's 1-2-3 step wizard?
In either case, can you please provide the complete text of the query result errors?Roberto F.LogSat Software
|
|
![]() |
|
Brice Beyer ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Using SQL Query Analyzer to execute the statement. Error returned is: Server: Msg 156, Level 15, State 1, Line 7 My understanding is that SQL Server 7.0 does not support the ON DELETE functionality. |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
Brice, We were able to duplicate the problem. As you correctly stated, SQL 7 does not support the ON DELETE CASCADE statement. SpamFilter does not require the cascading option to be present, as the code will perform the necessary cleanup if the database does not do it. You should be able to modify the MicrosoftSQL.sql file by removing the whole ALTER statement below. ALTER TABLE [dbo].[tblQuarantine] ADD If that foreign key is already present in the database, please remove it by running the following sql script: ALTER TABLE [dbo].[tblQuarantine] DROP CONSTRAINT FK_tblQuarantine_tblMsgs or by using the SQL Manager GUI to remove the constraint. Please let us know if you need further help in these procedures. Roberto F.
Please let us know if you still encounter any problems. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.608 seconds.