简体   繁体   中英

Execute SQL Script within Solution Explorer in VS 2008 Professional

Does anybody know how I can execute a .sql file from within solution explorer in VS 2008 Professional?

I know you can do this in VS 2005 but cannot find this feature in VS 2008 professional

如果它在数据库项目中,则可以右键单击它,然后选择“运行”或“运行于...”。

Use the "Server Explorer" (Ctrl+W, L) to add a connection, then once a connection is open you can right-click the server node and select "New Query". This will allow you to paste in the contents of an SQL file.

Alternatively open the SQL file, then from the "T-SQL Editor" toolbar you can choose "Connect" from your saved connections, and then select the database in the drop-down box.

根据此链接,您可以转到菜单“数据”->“ Transact-SQL编辑器”->“新查询连接”,我想您可以自己找出其余的部分。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM