Welcome to Sign in | Help

Re: DROP constrangere (SQL 2000 si SQL 2005)

  •  02-19-2008, 10:53 AM

    Re: DROP constrangere (SQL 2000 si SQL 2005)

    Okay,

    Am inteles, se pot redenumi constrangerile iar acestea sunt in sysobjects si cu xtype  pe 'PK' si 'F'.
    Dar cum pot sa fac cat m optim redenumirea constrangerilor.

    Pot sa scot intr-un select name from sysobjects cu constrangerile si cu conditia ca numele sa contina cifre.
    Dar ca sa fac rename pe fiecare in parte dintre aceste contrangeri nu stiu alta posibilitate decat sa folosesc un cursor si pentru fiecare element sa ii fac rename.



    MCP (C Sharp)
    Software Engineer,
    Cluj Napoca
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems