Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

SQL server scripts

$
0
0

Hello,

Maybe I am missing something  but I was looking at msdn Library and started this chapter. 

Saving Scripts as Projects and Solutions

<.....>

To create a script project and solution

  1. Open Management Studio, and connect to a server with Object Explorer.

  2. On the File menu, point to New, and then click Project. The New Project dialog box opens.

  3. In the Name text box, type StatusCheck, click SQL Server Scripts in Templates, and then click OK to open a new solution and script project.

  4. In Solution Explorer, right-click Connections, and then click New Connection. The Connect to Server dialog box opens.

  5. In the Server name list box, type the name of your server.

  6. Click Options, and then click the Connection Properties tab.

  7. In the Connect to database box, browse the server, select the AdventureWorks2008R2 database, and then click Connect. The connection information including the database is added to the project.

  8. If the Properties window is not displayed, click the new connection in Solution Explorer, and then press F4. The properties for the connection appear, and show information about the connection including the Initial Database as AdventureWorks2008R2.

  9. In Solution Explorer, right-click the connection, and then click New Query. A new query called SQLQuery1.sql is created, connected to the AdventureWorks2008R2 database on your server, and added to your script project.

  10. In Query Editor, type the following query to determine how many work orders have due dates, before the work order starting dates. (You can copy and paste the code from the Tutorial window.)

  11. In Solution Explorer, right-click SQLQuery1, and then click Rename. Type Check Workorders.sql as the new name for the query and press ENTER.

  12. To save your solution and script project, on the File menu, click Save All.

Am I doing something wrong ? Because I can't find option Prjects under File>New>..... in Microsoft SQL server management studio.

I am using newest version of SQL server 2008R2 express edition. 

Please help me.

Thank you


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>