Mitdasein in the experience of encountering the customer in our common having been cast into the opening of beyng

Thursday, March 23, 2006

How to attach database files to sql

From the command line:

OSQL -E -S .\mssmlbiz -d master -Q"CREATE DATABASE MSSmallBusiness ON (FILENAME = 'C:\Documents and Settings\luther\Local Settings\Application Data\Microsoft\Business Contact Manager\MSSmallBusiness.mdf') FOR ATTACH"

You will need to adjust the server\instance name to your instance; e.g. the default name with BCM v2 is microsoftsmlbiz.

2 Comments:

Blogger enowning said...

If OSQL is not installed on your machine, try using sqlcmd. The parameters should be the same.

With BCM v3 (2007) the instance name is MSSMLBIZ.

Friday, April 11, 2008 10:12:00 AM

 
Blogger Andrew said...

does anyone have "instructions for dummy´s" on how to do this?

I am trying to restore my system from a backup but my BCM database is not being recognised by BCM

Saturday, March 28, 2009 5:11:00 PM

 

Post a Comment

<< Home