Jim:
Create an empty database and restore your database to the newly created empty database. Then run the DDL to re-create the table in your old database and then copy the data from the restored database to the old database. Once you are satisfied that the old table is ok, drop the restored database.
[ Obvioulsy, I agree with Caddre. :-) ]
|||Thanks, here is the part I am missing. what is the syntax for going from one DB to anotheri.e.
SELECT * INTO CurrentDB.NewTable FROM BackupDB.ExistingTable|||
Try this
SELECT * INTO CurrentDB.dbo.Newtable FROM BackupDB.dbo.ExistingTable
|||SQL Server uses a 'four-part' naming convention. It follows this pattern:
Server.Database.schema.table
In 'normal' use, if you supply just the table name,
the 'schema' is assumed to be either the default user/owner or schema, the database is the current connected database, and the server is the current connected server.|||Thanks! That is exactly what I was looking for, issue resolved!
No comments:
Post a Comment