PC Review


Reply
Thread Tools Rate Thread

Add username/password to newly created MDB

 
 
raza
Guest
Posts: n/a
 
      10th Feb 2005
I am trying to create a new mdb in C# using ADOX, i am able to create
DB , i want to add a username/password on that db , i have tried so
many things , cant make it to work , please help

ADOX.CatalogClass cat = new ADOX.CatalogClass();

cat.Create("Provider=" + provider + ";" +
"Data Source=" + databaseName + ";" +
"Jet OLEDB:Engine Type=5");

ADODB.ConnectionClass conn = new ConnectionClass();
conn.ConnectionString = string.Format("Provider={0};Data
Source={1};", provider,databaseName);
conn.Open("","","",0);


ADOX.UserClass user = new UserClass();
user.Name = userName;
user.ChangePassword("",password);
// FAILS HERE , cant make this method to work.
cat.Users.Append(user,password);
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2003: Drop newly created signatures into a newly created pulldown Kpundt Microsoft Outlook Discussion 0 6th May 2010 09:52 PM
Re: Vista login "incorrect username or password" with correct username and password entry John Barnes Windows Vista General Discussion 1 15th Nov 2008 05:54 PM
Where did my newly created form go ? =?Utf-8?B?V2VsbGll?= Microsoft Access Forms 0 29th Jul 2006 03:46 AM
In VBA how can I start a newly created media shape when created John Crawford Microsoft Powerpoint 10 19th Jul 2006 05:40 AM
Ms Access 97 created Username and Password on the Network Mike Microsoft Access VBA Modules 0 2nd Jul 2003 06:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.