Update Foreign Key References

This script updates all foreign key references for the specified table. Useful if you need to delete a row. The follow example would update all uses of TableA.IDENTITYCOL where the value is 1 to the value of 2. Example usage: EXEC usp_updateFK 'TableA', 1, 2

2001-11-03

1,432 reads

Blogs

Last Week Reading (2019-07-21)

By

Another week passed. Look what did I find during that time. Press British Airways...

The Data platform has evolved – so too must the DBA.

By

This blog post is around the changing landscape of both SQL Server and the...

What does the Machine Learning process look like?

By

This is the second article in the Machine Learning area. I have explained a...

Read the latest Blogs

Forums

Trying to group 2 rows into a single line

By louislsh

Hi all, i am stuck trying to group 2 lines into 1. Hope someone...

SSMS via Citrix could not query An Microsoft Access Database despite of RDP

By Thinky Night

Hi dears, I will explain the case: I have an MS Access Database on...

Unable to group 2 records into a single line result

By louislsh

Hi all, i am stuck trying to group 2 lines into 1. Hope someone...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers