Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Delclarative RI in SQL Server 2005
Does anyone know if in SQL Server 2005 declarative RI can be used to NULL a
referenced field on delete of a record from the parent table?

Any help is appreciated.

Don

Report this thread to moderator Post Follow-up to this message
Old Post
Don
12-30-05 06:23 PM


Re: Delclarative RI in SQL Server 2005
Yes, there is a SET NULL option when the foreign key constraint is created.
The foreign key column(s) must of course be nullable.

--
Happy Holidays

Dan Guzman
SQL Server MVP

"Don" <Don@discussions.microsoft.com> wrote in message
news:FC073BAB-8767-44C7-9FDC- CACF6E66AC84@microso
ft.com...
> Does anyone know if in SQL Server 2005 declarative RI can be used to NULL
> a
> referenced field on delete of a record from the parent table?
>
> Any help is appreciated.
>
> Don



Report this thread to moderator Post Follow-up to this message
Old Post
Dan Guzman
12-30-05 06:23 PM


Re: Delclarative RI in SQL Server 2005
Thank you very much

"Dan Guzman" wrote:

> Yes, there is a SET NULL option when the foreign key constraint is created
.
> The foreign key column(s) must of course be nullable.
>
> --
> Happy Holidays
>
> Dan Guzman
> SQL Server MVP
>
> "Don" <Don@discussions.microsoft.com> wrote in message
> news:FC073BAB-8767-44C7-9FDC- CACF6E66AC84@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Don
12-31-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:00 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006