Re: Adding Logins
From: Narayana Vyas Kondreddi (answer_me@hotmail.com)
Date: 12/27/02
- Next message: Narayana Vyas Kondreddi: "Re: Retrieve the IP Address from a Failed Login Attempt"
- Previous message: Jasper Smith: "Re: Adding Logins"
- In reply to: Brian: "Adding Logins"
- Next in thread: BP Margolin: "Re: Adding Logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Narayana Vyas Kondreddi" <answer_me@hotmail.com> Date: Fri, 27 Dec 2002 20:08:37 -0000
You can find a way of generating scripts at this link:
http://vyaskn.tripod.com/generate_scripts_repetitive_sql_tasks.htm
If you just want to loop through rows, you can find some examples of WHILE
loops here:
http://vyaskn.tripod.com/code/notify_users.txt
You should be able to directly convert the above example.
-- HTH, Vyas, MVP (SQL Server) SQL Server FAQ, articles, code samples, interview questions and more @ http://vyaskn.tripod.com/ "Brian" <bpstings6@attbi.com> wrote in message news:008a01c2addd$fa85de10$d6f82ecf@TK2MSFTNGXA13... I need to add 300 new sql id to my server. I have the list in sql table, - 2 columns, id and pw. Versus adding eaach one individually, I wanted to create a script to read the table row by row and create the logins and be done. I tried using a cursor to go row by row, but had trouble. Any thoughts or site I might visit to get more info or find an already exisitng script? Thnks, Brian
- Next message: Narayana Vyas Kondreddi: "Re: Retrieve the IP Address from a Failed Login Attempt"
- Previous message: Jasper Smith: "Re: Adding Logins"
- In reply to: Brian: "Adding Logins"
- Next in thread: BP Margolin: "Re: Adding Logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|