If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > How to control MS SQL Server DataBase's permissions through visual basic programing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-02, 14:34
Shihab Shihab is offline
Registered User
 
Join Date: Dec 2002
Location: UAE
Posts: 8
Smile How to control MS SQL Server DataBase's permissions through visual basic programing

Hello,

Could someone help me to view, add, delete, and modify users of SQL Server DataBase and permissions of them on this database through Visual Basic Programming

Because I want to do VB application through which I will view, add,delete, and modify users of SQL Server DataBase and their permissions on this database.

Thank you very very much
Reply With Quote
  #2 (permalink)  
Old 12-09-02, 21:50
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
You can use the system stored procedures.
Reply With Quote
  #3 (permalink)  
Old 12-10-02, 14:23
Shihab Shihab is offline
Registered User
 
Join Date: Dec 2002
Location: UAE
Posts: 8
Quote:
Originally posted by rnealejr
You can use the system stored procedures.
Thank you very much Mr. rnealejr for your reply.

Would you like to send me a sample code in visual basic to view ,for example, users of SQL Server DataBase and their permissions????

I will be thankful
Reply With Quote
  #4 (permalink)  
Old 12-10-02, 22:46
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Which version of sql server are you using 7 or 2000 ?
Reply With Quote
  #5 (permalink)  
Old 12-11-02, 09:18
Shihab Shihab is offline
Registered User
 
Join Date: Dec 2002
Location: UAE
Posts: 8
To Mr. rnealejr

Quote:
Originally posted by rnealejr
Which version of sql server are you using 7 or 2000 ?
Hello, Mr. rnealejr
I use MS SQL Server 2000.
Also, I have a problem with SQL Server.
I have about 50 tables and views in an Oracle DataBase and I have tried to translate them to SQL Server DataBases.
They were translated succefully but there was two problems :
1- Key constraints were not translated? (i.e. the destination SQL Server database became without primary key and foreign key constraints and aother constraints)
2- Also, views are translated into tables not into view ??

Could you slove these problems?

After I get more information I will be able to serve your good forum with good posts becuase until now I am student

Thank you very much
Reply With Quote
  #6 (permalink)  
Old 12-11-02, 21:35
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
How did you translate from oracle to sql server ?
Reply With Quote
  #7 (permalink)  
Old 12-11-02, 21:58
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
You can use sp_helpuser, sp_helplogins - use the ado command object.
Reply With Quote
  #8 (permalink)  
Old 12-12-02, 00:58
Shihab Shihab is offline
Registered User
 
Join Date: Dec 2002
Location: UAE
Posts: 8
Translating an Oracle DataBase to a SQL Server DataBase with consraints and views

Quote:
Originally posted by rnealejr
How did you translate from oracle to sql server ?
Yes
I have used DTS Wizard to do this translation but tables were translated without constraints and also views were translated into tables instead of corresponding views although all tables, from whcih views get data, are available in the translated database.

Thank you very much Mr.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On