views:

1820

answers:

3

I'm trying to move my database.mdf file from a development environment to a SQL Server Express server that is hosted on my VPS - but I can't figure out how to attach the file to my database server. Help!

+2  A: 

sp_attach_db (or CREATE DATABASE FOR ATTACH) - don't forget to bring the LDF (log) files, too.

Cade Roux
+2  A: 

I am not sure if you can, but you could use the Sql Studio Management Express, which allows you to connect (and then attach) the database.

Your application could also be using a local instance and directly connect to the database.mdf in the app.data folder.

Tomas Pajonk
A: 

Dear,

This will help you

http://support.microsoft.com/kb/224071

Asem