Subject: Create SQL Server database user programmatically?
Posted By: Dmitriy Post Date: 12/8/2005 1:11:57 PM
Hello,
I have a question for everybody:
How to create SQL Server's database user programmatically and how to assign the role (or permission level) for new or an existing user?
Any code examples or referrals will be gladly appreciated.
Thanks in advance,
   -Dmitriy


Reply By: tmatthis Reply Date: 12/28/2005 2:38:45 PM
Look on MSDN about using ADOX .. this will get you started.

Reply By: tedi2u Reply Date: 1/3/2006 7:18:46 AM
dear all
i am trying to develop database using vb.net and i am using "wrox-Begining visual basic.net programming" as a reference  but now i encountred a problem which says  "An error occured error number 91 ... object reference not set to an instance of an object"
any code to sovle this or comment is appreciated
thanks in advance

tk
Reply By: planoie Reply Date: 1/3/2006 11:30:47 AM
For those of us who don't have the book (or the code sample you are referencing) could you please post the code that is causing the problem?

-Peter

Go to topic 38204

Return to index page 405
Return to index page 404
Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396