Add New column with foreign key using ms sql server




alter table [dbo].[Master_Tour]
add PackageId int CONSTRAINT fk_master_tour_master_package FOREIGN KEY (PackageId) REFERENCES master_package(PackageId) 

Comments

Popular posts from this blog

Tree view in winforms using c#

how to Replace null value with 0 Using C#

how to fetch all HTML Table Records and modify all records accordingly using jquery and Javascript