trims30
asked on
How to add existing database to sql server 2012 express
Have just installed minimal SQL2012 Express and need to attach an existing database to it.
This will be used in a small office with two workstations accessing data on sql2012 express server box.
No IT dept - and just want a simple and easy way to administer system.
Need to know where to place the MyData.MDF file and how to assign a database name such as MySqlData to it so i can use a connection string that specifies server MyPC\SQLEXPRESS and database name MySqlData
Also, what else do I need to allow client computers to access this database?
Lee
This will be used in a small office with two workstations accessing data on sql2012 express server box.
No IT dept - and just want a simple and easy way to administer system.
Need to know where to place the MyData.MDF file and how to assign a database name such as MySqlData to it so i can use a connection string that specifies server MyPC\SQLEXPRESS and database name MySqlData
Also, what else do I need to allow client computers to access this database?
Lee
ASKER
Don't have Management Studio. Just bare bones Server Express.
Data folder contains my mdf and ldf files.
Any way to get server to recognize data file without using Management Studio?
Would like to do a hands off data file install at some time in future.
Data folder contains my mdf and ldf files.
Any way to get server to recognize data file without using Management Studio?
Would like to do a hands off data file install at some time in future.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I really want a small - lightweight installer for the server. Mgmt studio is 600mb just to add a database?
Just downloaded server with tools (720mb) and it's been installing for an hour so far and not done yet.
Just downloaded server with tools (720mb) and it's been installing for an hour so far and not done yet.
No IT dept - and just want a simple and easy way to administer system.
The easy way to administer the SQL Server will be with the Mgmt studio. It can be installed on any PC on the LAN. It does not have to be on the same machine as the SQL Server. (SSMS)
FWIW: I have SSMS on my laptop. I can take it into ab office and connect to their LAN. I then connect to their SQL Server.
Also, what else do I need to allow client computers to access this database?
See: Configure the Windows Firewall to Allow SQL Server Access
ASKER
tHE CODE A T http://support.microsoft.com/kb/224071 WORKS FOR ME.
Right click on Databases node > Attach > click on Add button > choose the .mdf file from the location above > OK.
If you don't have the .ldf file you will have to remove it from the lower panel before you can complete the attach process.
After you attached the database you can right click on it > Rename > give it the new name.