drop login

  • i am excuting a sql script through sqlcmd by passing a sql login.I want to drop the same login after excuted the script.

    sqlcmd -S XXX -U ABC -P XXX -i C:\XXX.sql

    I want to drop the login account"ABC" once script excuted.

  • You will still be logged in while trying to run the command. I do not think it will work. Maybe you could do it scheduling a SQL Server Agent job.

    Joie Andrew
    "Since 1982"

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

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