开发者

Connect to database in App_Data folder

I开发者_如何学编程s it possible to connect to a database in the App_Data project folder using the command line? I'm trying to test some SQL statements outside of the VS environment.

I tried using the below, but that didn't seem to work:

sqlcmd -S .\Sqlexpress -d [location of mdf]


Not sure about the app_data folder, but if you have the db files running off of a sql install, you can use sqlcmd command line which is installed with the sql client tools or the sql feature pack (sql native client).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜