![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have recently set up two SQL Server 2005 Standard Edition servers with database mirroring. The mirrors function and fail over without a problem, but the Database Mirroring Monitor Job fails every time with the following error message: Incorrect syntax near '.'. [SQLSTATE 42000] (Error 102) Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon. [SQLSTATE 42000] (Error 319). The step failed. Both SQL Servers are running SP2 with the latest patches. Can anyone help with the resolutionto this this issue? |
#3
| |||
| |||
|
|
(bosk... (AT) gmail (DOT) com) writes: We have recently set up two SQL Server 2005 Standard Edition servers with database mirroring. The mirrors function and fail over without a problem, but the Database Mirroring Monitor Job fails every time with the following error message: Incorrect syntax near '.'. [SQLSTATE 42000] (Error 102) Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon. [SQLSTATE 42000] (Error 319). The step failed. Both SQL Servers are running SP2 with the latest patches. Can anyone help with the resolutionto this this issue? Eh, that looks bad. I haven't worked much with mirroring, or more precisely not at all. But a syntax errors is not what I would expect. Could you list the exact name of the servers and databases involved? My suspicion is that there is a problem with special characters. -- Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) se Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books... Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |

#4
| |||
| |||
|
|
The database server has a dash in it (i.e. CompanyName-SQL1 and SQL2 respecitvely). All databases are just alpha characters except for one that begins with a number sequence (i.e. 1000DatabaseName). |
#5
| |||
| |||
|
|
What service-pack level are you at? (For all three machines.) |
#6
| |||
| |||
|
|
Erland Sommarskog (esq... (AT) sommarskog (DOT) se) writes: What service-pack level are you at? (For all three machines.) Sorry, I see now in your first post that you are on SP2. -- Erland Sommarskog, SQL Server MVP, esq... (AT) sommarskog (DOT) se Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books... Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |