Unix Technical Forum

Database Mirroring Monitor Job Error

This is a discussion on Database Mirroring Monitor Job Error within the SQL Server forums, part of the Microsoft SQL Server category; --> We have recently set up two SQL Server 2005 Standard Edition servers with database mirroring. The mirrors function and ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:52 PM
bosko19@gmail.com
 
Posts: n/a
Default Database Mirroring Monitor Job Error

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?

Thank you!
Bosko

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:52 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Database Mirroring Monitor Job Error

(bosko19@gmail.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, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 02:52 PM
bosko19@gmail.com
 
Posts: n/a
Default Re: Database Mirroring Monitor Job Error

On Apr 13, 6:45 pm, Erland Sommarskog <esq...@sommarskog.se> wrote:
> (bosk...@gmail.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...@sommarskog.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


LOL...I didn't think it looked good either

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).

Thank you in advance!

Bosko

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 02:52 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Database Mirroring Monitor Job Error

(bosko19@gmail.com) writes:
> 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).


What service-pack level are you at? (For all three machines.)

If you are on SP2, you should definitely submit a bug on
http://connect.microsoft.com/SqlServer/. And if it's not an acceptable
workaround to rename the servers, I think you should open a case with
Microsoft, and demand that you get a hotfix.

If you are not on SP2, I recommend you to download it to see if it addresses
the problem. Note there is a rollup to SP2 which addresses two serious
bugs with maintenance plans. Make sure you get the rollup, if you use
maintenance plans.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-01-2008, 02:53 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Database Mirroring Monitor Job Error

Erland Sommarskog (esquel@sommarskog.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, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-01-2008, 02:53 PM
bosko19
 
Posts: n/a
Default Re: Database Mirroring Monitor Job Error

On Apr 16, 5:30 pm, Erland Sommarskog <esq...@sommarskog.se> wrote:
> Erland Sommarskog (esq...@sommarskog.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...@sommarskog.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


Thank you for taking the time to look into the issue! I will submit
the case to Microsoft and hopefully get a resolution from them.

Bosko

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com