coolnit74
asked on
Cannot resolve collation conflict for equal to operation. [SQLSTATE 42000] (Error 446) standby [SQLSTATE 01000] (Error 0) Associated statement is not prepared [SQLSTATE HY007] (Error 0).
Hi Experts
I got this error when i try to run a job ( This Job restore databases from dump folder )
code :
declare @err int
exec @err= sp__restorestandby 'd:\dba\log\mssql_monitor. log','d:\d ba\log\RES TORE.log', 'PROD','st andby'
if @err <> 0
begin
declare @error varchar(500)
set @error = 'MSQL_ERR_RESTOREDB_PROD: '+ ':Server=' + @@servername+ ':Status= Job Failed :Date =' + convert(varchar(25),getdat e(),109)+' :Err =' +convert(varchar(10),@err )
exec master..sp__appendtofile 'D:\DBA\LOG\mssql_monitor. log', @error
end
error :
Cannot resolve collation conflict for equal to operation. [SQLSTATE 42000] (Error 446) standby [SQLSTATE 01000] (Error 0) Associated statement is not prepared [SQLSTATE HY007] (Error 0). The step failed.
Please help me out to fix this error
I got this error when i try to run a job ( This Job restore databases from dump folder )
code :
declare @err int
exec @err= sp__restorestandby 'd:\dba\log\mssql_monitor.
if @err <> 0
begin
declare @error varchar(500)
set @error = 'MSQL_ERR_RESTOREDB_PROD: '+ ':Server=' + @@servername+ ':Status= Job Failed :Date =' + convert(varchar(25),getdat
exec master..sp__appendtofile 'D:\DBA\LOG\mssql_monitor.
end
error :
Cannot resolve collation conflict for equal to operation. [SQLSTATE 42000] (Error 446) standby [SQLSTATE 01000] (Error 0) Associated statement is not prepared [SQLSTATE HY007] (Error 0). The step failed.
Please help me out to fix this error
It is conflict on SQL Server Code Pages - collation. Most common solution is COLATE statement.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.