Board index » delphi » how to add new login to MS SQL with SQL call

how to add new login to MS SQL with SQL call

I want to use ADO query to add new login to MS SQL 2000
and set it as db_owner for the database,

How do i do that with SQL?

TIA,
Eugene.

--
ICQ: 35477912
MSN: eg...@mts-nn.ru
Yahoo: eugene_goldberg2000
AOL: egold2002

 

Re:how to add new login to MS SQL with SQL call


Take a look at sp_adduser or sp_addlogin in books online (MSSQL online
help).

--

Alain Quesnel
alainqsanss...@compuserve.com

"Eugene V. Goldberg" <EugeneGoldb...@mail.ru> wrote in message
news:3e3e605e@newsgroups.borland.com...

Quote
> I want to use ADO query to add new login to MS SQL 2000
> and set it as db_owner for the database,

> How do i do that with SQL?

> TIA,
> Eugene.

> --
> ICQ: 35477912
> MSN: eg...@mts-nn.ru
> Yahoo: eugene_goldberg2000
> AOL: egold2002

Re:how to add new login to MS SQL with SQL call


Thanx Alain.

Quote
"Alain Quesnel" <alainqsanss...@compuserve.com> wrote in message

news:3e3e695c$1@newsgroups.borland.com...
Quote
> Take a look at sp_adduser or sp_addlogin in books online (MSSQL online
> help).

> --

> Alain Quesnel
> alainqsanss...@compuserve.com

> "Eugene V. Goldberg" <EugeneGoldb...@mail.ru> wrote in message
> news:3e3e605e@newsgroups.borland.com...
> > I want to use ADO query to add new login to MS SQL 2000
> > and set it as db_owner for the database,

> > How do i do that with SQL?

> > TIA,
> > Eugene.

> > --
> > ICQ: 35477912
> > MSN: eg...@mts-nn.ru
> > Yahoo: eugene_goldberg2000
> > AOL: egold2002

Other Threads