p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET (http://p2p.wrox.com/forumdisplay.php?f=83)
-   -   Create SQL Server database user programmatically? (http://p2p.wrox.com/showthread.php?t=35936)

Dmitriy December 8th, 2005 02:11 PM

Create SQL Server database user programmatically?
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,

tmatthis December 28th, 2005 03:38 PM

Look on MSDN about using ADOX .. this will get you started.

tedi2u January 3rd, 2006 08:18 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


planoie January 3rd, 2006 12:30 PM

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?


All times are GMT -4. The time now is 07:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.