Welcome to 2PTTechnology Sign in | Join
in Search

attach user in SQL 2005 after restore of database

Last post 01-13-2008, 12:54 PM by pskobel. 0 replies.
Sort Posts: Previous Next
  •  01-13-2008, 12:54 PM 112

    attach user in SQL 2005 after restore of database

    IF EXISTS ( SELECT name

    FROM master.sys.databases sd

    WHERE name = N'LabelStationLog'

    AND SUSER_SNAME(sd.owner_sid) = SUSER_SNAME() )

    EXEC [LabelStationLog].dbo.sp_changedbowner @loginame=N'UserName',

    @map=false

    GO

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems