IT tutorials
 
Technology
 

SQL Server 2012 : SQL Server Developer Tools (part 1) - Working with SSDT in Connected Mode

11/28/2013 8:01:15 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

SQL Server is not just a relational database; it contains many other components including SQL Server Reporting Services, SQL Server Analysis Services, and SQL Server Integration Services. Each one of these components solves completely different problems, and for the most part, each is managed and developed differently than SQL Server itself. In earlier versions of SQL Server, developers who wish to develop reports for Report Server, cubes for Analysis Services, or packages for Integration Services used a tool called the Business Intelligence Development Studio. This tool was essentially a Visual Studio shell with snap-ins to provide the development experience. The experience is the same as having Visual C# or Visual Basic.NET within a Visual Studio shell. SQL Server developers could use Visual Studio itself, and depending on the version Visual Studio, would have advanced database tools to perform tasks like comparing schemas and data. Starting in SQL Server 2012, a new feature called SQL Server Development Tools (SSDT) attempts to bind Business Intelligence Studio and the database development capabilities within a traditional Visual Studio environment. At the time of this writing, the tool is in the Community Technology Preview 3 (CTP3) stage of development and can be downloaded from http://msdn.microsoft.com/en-us/data/gg427686.

The focus of SSDT is to accelerate the development of data-based applications against SQL Server and SQL Azure. SSDT supports development in the following platforms: SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, and SQL Azure.

Until now, we have been discussing development of SQL Server via SSMS. SSMS makes an active connection to SQL Server to obtain the necessary information to populate the IntelliSense context menus and to function usefully in general. If you’re wearing your development hat, you want a source-code–driven development model as opposed to a database-driven model. With SSDT, this is possible, since SSDT supports a robust, offline set of development features. Before we get into the offline experience, let’s look at SSDT in connected mode.

Working with SSDT in Connected Mode

Once you install SSDT, launch it from the Start Menu. To create a new project, click File, followed by New, and then Project from the main menu bar. Select SQL Server Database Project, and name it UsedCar Application. To connect to a SQL Server instance, click the View menu in the toolbar, and select Server Explorer. This will launch the Server Explorer . For now, click the Add Server button in the Server Explorer toolbar, and connect to the local SQL Server instance. The Server Explorer window will populate just like Object Explorer, as shown in Figure 1.

images

Figure 1. Server Explorer

Right-click the server node, and select New Query. On this sample server, we have the UsedCar database and data-tier application installed. In connected mode, we have IntelliSense, just as we had with SSMS. For example, if you type SELECT * FROM SALES., you will get a drop-down list of available objects. If you select the Orders table and use your mouse to hover over the asterisk, you see additional information, such as all the columns that would be returned and their respective data types, as shown in Figure 2.

images

Figure 2. Table definition within the query

What if you wanted to delete or change an object but were not clear of its impact? One very useful feature of the tool is that it will tell you exactly what must happen to delete that object. Since our UsedCar schema is relatively small, to help illustrate this, we went to the AdventureWorks database and tried to delete the Product.Products table. Figure 3 shows the dialog that popped up when we tried to delete this object.

images

Figure 3. The Preview Database Updates dialog

In the dialog shown in Figure 3, you can see which functions would be broken, which indexes would be dropped and lots of other helpful information.

 
Others
 
- Windows Server 2012 : Using the Task Manager for Logging and Debugging - Monitoring Details, Monitoring Services, Related PowerShell Functionality
- Windows Server 2012 : Using the Task Manager for Logging and Debugging - Monitoring Performance
- Windows Server 2012 : Using the Task Manager for Logging and Debugging - Monitoring Processes
- Microsoft Lync Server 2010 : Virtual Machine Server Configuration
- Microsoft Lync Server 2010 : Host Server Configuration
- Microsoft Lync Server 2010 : Lync Server Virtual Topologies (part 2) - Additional Topologies
- Microsoft Lync Server 2010 : Lync Server Virtual Topologies (part 1) - Standard Edition Example, Enterprise Edition Example
- LINQ to SharePoint and SPMetal : Deleting Data Using LINQ (part 2) - Ensuring Referential Integrity
- LINQ to SharePoint and SPMetal : Deleting Data Using LINQ (part 1) - Deleting Sample Data
- LINQ to SharePoint and SPMetal : Adding Data Using LINQ (part 2) - Add On-Hire Assets,Add AssetNotes
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us