Link to home
Start Free TrialLog in
Avatar of khan2000
khan2000

asked on

i have a question on mdf / ldf

i have a data file which is
auto.mdb
auto.ldf

how can i bring the data file into sql server?
Avatar of arbert
arbert

Do you mean you have existing files you want to load to sql server?

Just copy them to the server and execute this from query analyzer:

sp_attach_db 'whatyouwanttocallit','path:\auto.mdb','path:\auto.ldf'

Brett
ASKER CERTIFIED SOLUTION
Avatar of Dishan Fernando
Dishan Fernando
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lowfatspread
Hi khan2000,


assuming the files are sql server files which where properly detached for there existing server
and that that server is / was at the same patch / version level as the server you are
trying to install them on...

Cheers!
Hopefully 'mdb' was a typo. MDB is an Access file (unless of course it was renamed from MDF)

yes, it was a typo--I'm aware of the difference between and MDB and MDF.....
My comment was addressed to the original question.... I figured you would know!  :)