Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Create a user by osql

Author  Topic 

airjorden
Starting Member

3 Posts

Posted - 2004-03-17 : 06:36:52
Hello,

i am still a newbie but maybe anyone of you can help me on this easy
question for you guys.

I am using the tool "osql" to execute my scripte files. Now i would like to
create a user with this tool! Is this possible. Does anyone know how I can
create a user from the command line from the osql

Thx in advance. Sorry for this easy one.
Regards
Michael

raymondpeacock
Constraint Violating Yak Guru

367 Posts

Posted - 2004-03-17 : 07:06:29
Create a script file that uses the sp_AddLogin function and execute it using osql.


Raymond
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-03-17 : 08:05:42
cross-post.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -