Table restore

08/16/2012 11:33 Raptursh#1
is there any option in sql 2008 r2 to restore a table only not a hole db ?
because i have my RefObjCommon table got fucked up . so i want to delete it and copy new lines but i cant delete it . it gives an error .
(cannot truncate table Refobjcommon because it is being referenced by a FOREIGN KEY constraint
08/16/2012 12:05 LastThief*#2
SELECT * INTO
08/16/2012 12:07 Raptursh#3
what ?

can u explain more ? :P
08/16/2012 13:43 kevin_owner#4
I'm not an expert in sql but I think what lastthief is trying to say is that you could restore the database with an other name and execute a query like this:

SELECT *
INTO [SRO_SHARD_INIT]._RefObjCommon
FROM [SRO_SHARD_INIT_ORIGINAL]._RefObjCommon

Check the sql statement SELECT INTO if you want some more details:
[Only registered and activated users can see links. Click Here To Register...]