all groups > sql server connect > february 2007 >
You're in the

sql server connect

group:

how to connect to .mdf file with sqmcmd?


Re: how to connect to .mdf file with sqmcmd? Hari Prasad
2/22/2007 8:10:22 PM
sql server connect:
Take a look into the below URL:-

http://msdn2.microsoft.com/en-us/library/ms162773.aspx

Thanks
Hari

[quoted text, click to view]

Re: how to connect to .mdf file with sqmcmd? Andrew J. Kelly
2/22/2007 8:52:11 PM
The .mdf is just the data file it is not the server. Have you looked up
sqlcmd in BooksOnLine?

--
Andrew J. Kelly SQL MVP

[quoted text, click to view]

how to connect to .mdf file with sqmcmd? Bob
2/22/2007 11:38:20 PM
Hi,

i have several mdf files for several asp.net applications. How can i reach
such a database with sqlcmd?

Thanks
Bob

Re: how to connect to .mdf file with sqmcmd? Ken
2/23/2007 12:00:00 AM
Thanks, i know that mdf is not the server. All i ask is: is it possible to
manage such a database with sqlcmd (something like 'use mymdf_file'). Maybe
that file is attached to the server ....

"Andrew J. Kelly" <sqlmvpnooospam@shadhawk.com> schreef in bericht
news:%233v%23A1uVHHA.1036@TK2MSFTNGP03.phx.gbl...
[quoted text, click to view]

Re: how to connect to .mdf file with sqmcmd? Andrew J. Kelly
2/23/2007 10:29:31 AM
Not that I know of. Ssqlcmd talks to the server instance not the file. You
can specify a db name in the connection string but not a file.

--
Andrew J. Kelly SQL MVP

[quoted text, click to view]

AddThis Social Bookmark Button