我的老板说:“为此,请使用SQL Manager / Tasks RUN在您自己的计算机上的查询窗口中本地运行脚本来对真实数据库进行脚本化,以创建数据库的本地副本。
注意:您的新数据库将具有所有表和过程,但其中将没有数据。您将需要添加自己的“虚拟数据”,以便在测试时一切正常。
在您的服务器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.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句