visual studio指向我的sql server

时间:2022-09-01 19:42:52

in visual studio i have my code point to a sql server mdf file (in the APP_DATA folder). and i keep having to syncronize this local data to my server.

在visual studio中我的代码指向一个sql server mdf文件(在APP_DATA文件夹中)。我不得不将这个本地数据同步到我的服务器。

is there anyway in visual studio i can just give it the connection string to my real server so i can debug directly against my server.

无论如何在visual studio中我可以给它连接字符串到我的真实服务器,所以我可以直接针对我的服务器进行调试。

i know this may be a bit slower but it also might be easier as it eliminates going back and forth.

我知道这可能会慢一点但它也可能更容易,因为它消除了来回。

1 个解决方案

#1


Sure, just change the connection string to point to your server

当然,只需将连接字符串更改为指向您的服务器即可

#1


Sure, just change the connection string to point to your server

当然,只需将连接字符串更改为指向您的服务器即可