Reputation: 4298
i am in big trouble now. by mistake i was deleted the (some thing around 2,00,000) record from remote server(SQL 2008) table. is there any way,so i can get back this record.
please help,
thank you
additional *Server not granting me to access the backup file on server side.
Upvotes: 3
Views: 429
Reputation: 103697
for a quick fix, assuming no FK issues or a cascading delete:
1) restore backup to new database
2) in the database with the deleted data, run something like this:
INSERT INTO schema.YourTable
(colA, colB, colC)
SELECT
colA, colB, colC
FROM server.RESTORED_Database.schema.YourTable
if the table has an identity column use: SET IDENTITY_INSERT (Transact-SQL)
Upvotes: 4