Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing/Opening a database from another computer
Message
From
23/08/2001 17:13:30
 
 
To
23/08/2001 16:38:24
Josh Fedke
National Financial Corporation
Milwaukee, Wisconsin, United States
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
00548304
Message ID:
00548338
Views:
8
>Hello All:
>
> Please forgive me if this has been asked a whole lot already.
>
> I have a database from a client computer which I copied onto a network drive. I want to know if it is possible to open it with SQL on one of our computers. I have looked through the import and create new options, but I don't see an option to select a file as the import data source. Maybe this can be done with an SQL statement? Thanks in advance.
>
> -Josh

If it's between two SQL Servers on the same version (or a newer version, post- SQL7), you can use sp_attach_db:
EXEC sp_attach_db 'mydbname', 'c:\mssql7\data\mydb.mdf', 'c:\mssql7\data\mydb_log.ldf'
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform