Hi all ,
i need to insert data to a linked server . But if linked server is down or i get any errors ( syntax,connection etc) i have to insert that data to my local DB.
eg.
INSERT INTO [LinkedSrv].DB.dbo.Table (ID) values (1)
but if the insert will not be succsessful
i have to insert the same one in my machine
insert into bllalblla values bllalbla
how can i perform checks if the linked server insert is gonna be succesful ?
thanks in advance .