开发者

Connect to database in App_Data folder

开发者 https://www.devze.com 2023-02-20 16:39 出处:网络
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开发者_如何学编程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

精彩评论

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