How to Create Foreign Key Constraint with ON DELETE SET NULL Option in SQL Server -SQL Server P81

How to Create Foreign Key Constraint with ON DELETE SET NULL Option in SQL Server -SQL Server P81

TechBrothersIT

8 лет назад

2,336 Просмотров

SQL Server / T-SQL Tutorial Scenario:

You are working as SQL Server developer, you need to create two tables with Primary -Foreign Key Relationship. You want to create Foreign Key Constraint with setting if record will be deleted from Referenced Table (Primary Key Column Table), it should not be deleted from Parent Table ( Foreign Key Constraint Table) instead the value should be updated to Null.

Link to scripts used in SQL Server / TSQL Tutorial Video
http://www.techbrothersit.com/2016/04/how-to-create-foreign-key-constraint_95.html

Check out our website for Different SQL Server, MSBI tutorials and interview questions
such as SQL Server Reporting Services(SSRS) Tutorial
SQL Server Integration Services(SSIS) Tutorial
SQL Server DBA Tutorial
SQL Server / TSQL Tutorial ( Beginner to Advance)
http://www.techbrothersit.com/

Тэги:

#TSQL_Tutorial #Transact_SQL #SQL_Server_Free_Training #TSQL_Free_Training #Database #SQL_Server_Free_Video_Tutorial #TSQL_Video_Free_Training #Step_by_Step_SQL_Server_Tutorial_for_beginners_to_advance_level #SQL_Developer #SQL_Interview_Questions #Real_time_Interview_Questions_for_SQL_Server_Developer_or_DBA #TechBrothersIT #MSBI #Real_time_SQL_Scripts #Create_Foreign_Key_Constraint_with_ON_DELETE_SET_NULL_Option_in_SQL_Server
Ссылки и html тэги не поддерживаются


Комментарии: