开发者

aspnet_regsql error

开发者 https://www.devze.com 2023-03-18 22:08 出处:网络
I am trying to run aspnet_sqlreg on my local database (on my machine). aspnet_regsql -ssadd -sstype c -d \"computername\\localSqlserveNname\" -E

I am trying to run aspnet_sqlreg on my local database (on my machine).

aspnet_regsql -ssadd -sstype c -d "computername\localSqlserveNname" -E

And after it says "Start adding sesson state.", it says that, "An error开发者_开发技巧 has occured.... A network-related or instance-spcific eror occurred while establishing a connetion to SQL server. The server was not found or was not accessible." But, I am pretty sure i entered the correct name of the server and database.

Has anyone have similar error?


the error is on the name

aspnet_regsql.exe -ssadd -sstype c -d DATABASENAME -E

where DATABASENAME is the name of your new database, eg try something like "SessionStateDB"

  aspnet_regsql.exe -ssadd -sstype c -d SessionStateDB -E
0

精彩评论

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