Auto Login A User

  • Gents,

    SQL Server 2000

    Is there a TSQL command, system sp etc that allows you to login a user via a SQL script?

    Thanks in advance

    Stuart

  • You can impersonate another user with

    SETUSER 'foo'

    (on 2005 you should use EXECUTE AS)

    Is this what you are looking for?

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • Andras,

    Thanks for your input. That worked a treat.

    Stuart

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply