Welcome to Sign in | Help

Re: disable/enable foreign keys constraints

  •  03-25-2009, 5:18 PM

    Re: disable/enable foreign keys constraints

    Se poate face cu un cursor (folosind numele tabelelor) sau daca este vorba de SQL Server 2000 folosind urmatorul cod:
    exec sp_MSforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'

    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems