In a procedure I control errors with TRY CATCH, but in an insert into linked server not runs for handling this errors, because try catch not run.
How I can handling this errors?
Example:
insert into linkedserver.database.dbo.table values ('value1','value2')
If the server isoffline I have error of connection of the SQLCLI and cannot control this error for insert in local when the linked server are offline for after when the server return to online status put the data in the remote server with another procedure.
Thanks
Jorge
linkedandserverdoesn't mean you're talking about the linked server feature in SQL Server.