Change a field name in a SQL Server data table can have wide ranging consequences. Any view or stored procedure that references that field by name will fail unless it is updated to reflect the new name. This video looks at the SQL Server Data Tools name refactor tool and shows how it can find all the affected items. See how to use the preview screen to analyze the pending changes before approving the rename.
- [Voiceover] Now that I'm using this project more and more…to define my database, there'll be times when we need…to do schema changes or change the name of something.…And if I'm not careful when I change one item,…it could effect many items in the database.…Here's an example.…Go to Tables, go to my Customers table.…And our company is to say that we don't wanna use ID…for primary keys, we'll use PK.…This is a naming convention I've seen on some projects…in the past, PK for primary key.…Now I made that change, and that will effect a lot of places…if I look at Orders, the OrderID is the primary key…for this table, but the foreign key is CustomerID.…
So I would need to change this or I'll break…this Orders table.…It's also up here in the Start Procedures if I look…at Customers by City, it's got the CustomerID in there.…And you can see I'm getting a red squiggle now,…'cause it has an unresolved reference,…so I have to go through and resolve all these references.…If I try to build my project at the moment.…You can see I'm getting a Build Failed.…
- Exploring integration with Azure data sources and other Microsoft databases
- Working with SQL Server Express LocalDB
- Connecting to databases with Server Explorer
- Working with database tables
- Manipulating tables with the SQL Server Object Explorer
- Creating queries and custom views
- Creating stored procedures
- Comparing databases
- Building a data project in Visual Studio
- Refactoring a database object
- Deploying the database
- Connecting to Azure databases
- Deploying data projects to Azure
- Integrating Visual Studio with Entity Framework
Skill Level Beginner
Q: This course was updated on 08/23/2017. What changed?
A: The following topics were updated: installing the SSDT features and why LocalDB is essential for developers.
1. Database and Data Integration
The Azure data sources2m 35s
2. SQL Server Express LocalDB
3. Server Explorer
4. SQL Server Object Explorer
5. Queries, Views, and Stored Procedures
6. Compare databases
7. SQL Server Data Project
8. Azure Data
Get an Azure account1m 10s
9. Entity Framework
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.