MS SQL SERVER -restore database from .dat file

hi
how to retore a database from a .dat file..
and how to retore a single table from a database.
chandu_kappaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crsankarCommented:
Which version of sql server are you using? SQL Server 7.0 does not support restore of a single table if I am not mistaken. As far as restoring form a datafile is concerned the syntax is

RESTORE DATABASE MyNwind
FROM DISK = 'c:\mssql7\backup\MyNwind.bak'
0
shirazcCommented:
If using sql 6.x

1.Put the dat file in \mssql\backup folder
2. create a backup device from enterprise manager at same path, with primary name of dat
3.click refresh for backup devices

4. go to database and right click, go to backup/restore

5. go to restore tab, choose devices

6. choose device having name as your dat.
7. click on option button "single table"
and choose table abd click restore

this should do for sql 6.0 and 6.5

you can't restore a table in 7.0

regards

shiraz
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.