Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
| Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 8th, 2005, 02:11 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , .
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default Create SQL Server database user programmatically?

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


 
Old December 28th, 2005, 03:38 PM
Registered User
 
Join Date: Nov 2005
Location: Orlando, Florida, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old January 3rd, 2006, 08:18 AM
Registered User
 
Join Date: Jan 2006
Location: asmara, maekel, Eritria.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old January 3rd, 2006, 12:30 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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




Similar Threads
Thread Thread Starter Forum Replies Last Post
Create SQL Server users programmatically? Dmitriy Pro VB.NET 2002/2003 4 October 29th, 2008 03:14 PM
Create SQL Server user programmatically? Dmitriy Pro VB Databases 1 March 8th, 2006 10:02 AM
Create SQL Server database user programmatically? Dmitriy Pro VB 6 0 December 8th, 2005 02:04 PM
MSDE, how create database, user account ??? majidnakit All Other Wrox Books 1 January 7th, 2005 03:12 AM
User Creation in SQL Server Database angie C# 1 June 12th, 2003 04:32 AM





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