我老板说
“为此,请使用SQL Manager / Tasks编写真实数据库
在您自己的计算机上的“查询窗口”中本地运行该脚本,以创建数据库的本地副本。
注意:您的新数据库将具有所有表和过程,但其中将没有数据。您将需要添加自己的“虚拟数据”,以便在测试时一切正常。
在web.config
中创建第二个连接字符串以连接到本地数据库
使用该连接字符串进行开发工作
但是我实际上不知道该怎么做。
最佳答案
跟着这些步骤:
1. Connect to your remote server from SQL Server Management Studio.
2. In object explorer, right click on your database and select Tasks>Generate Scripts.
3. Click on Next and then again click on Next.
4. Select the file system path where you want to save the database script for the database and click on Next
5. Click on Next. A .sql file will generated.
6. Connect to your local server from SQL Server Management Studio.
7. Open the newly created database script in SQL Server Management Studio and execute it. A copy of your database on remote server will
be created on your local server.