•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 391,596 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,670 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 636 | Replies: 5
![]() |
•
•
Join Date: Mar 2008
Posts: 10
Reputation:
Rep Power: 1
Solved Threads: 0
Hi everyone. Sorry if this question is in the wrong area..I posted it on the VB forum and they advised me to post here also.
I have created a visual basic system that is connected to an oracle database.
(I connected through data>Add New Data source>New Connection>Oracle Database etc etc)
I am using the system to create new oracle users with passwords etc.
I have a form called frmAdd and text boxes txtUser and txtPassword
The user of the system will input into txtUser the username they wish to create (eg user1) and then their password (eg password)
they will then click the cmdAdd button.
I wish to send the following command to the oracle databse when they click the button
Create user (txtUser.text)
Default Tablespace users
identified by (txtPassword.text)
There are a lot of other commansd I need to do but I'm sure I can manage it myself after I get help with this one.
Could someone tell me how to go about this please. As it's for a university assignment that needs to be handed in next week.
Regards
Chris
I have created a visual basic system that is connected to an oracle database.
(I connected through data>Add New Data source>New Connection>Oracle Database etc etc)
I am using the system to create new oracle users with passwords etc.
I have a form called frmAdd and text boxes txtUser and txtPassword
The user of the system will input into txtUser the username they wish to create (eg user1) and then their password (eg password)
they will then click the cmdAdd button.
I wish to send the following command to the oracle databse when they click the button
Create user (txtUser.text)
Default Tablespace users
identified by (txtPassword.text)
There are a lot of other commansd I need to do but I'm sure I can manage it myself after I get help with this one.
Could someone tell me how to go about this please. As it's for a university assignment that needs to be handed in next week.
Regards
Chris
•
•
Join Date: Nov 2007
Posts: 51
Reputation:
Rep Power: 1
Solved Threads: 9
Have a look at http://www.a1vbcode.com/snippet-3876.asp, it's not my code so i can't validate if it works, but best just to try it.
Nige
Nige
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation:
Rep Power: 10
Solved Threads: 257
•
•
•
•
Have a look at http://www.a1vbcode.com/snippet-3876.asp, it's not my code so i can't validate if it works, but best just to try it.
Nige
Well you have small problem there and that is -> chrisdent1986 used VisusalStudio wizard to get his connection string, where code provided by you is custom coding of a programmer that want to avoid drag&drop approach (which is my personal preference)
What you need to do is:
- in Data Sourcesclick on Edit DataSet with Designer
- right click(in lower part) on table you wish to use (as seen on attached screenshot)
- select Add >> Query and follow wizard
- Create new stored procedure >> Insert
- if you know SQL you can simply type your query or use Query Builder (view of QB on screenshot)
- Next >> and just follow wizard and make changes to names as neccesary
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation:
Rep Power: 4
Solved Threads: 78
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,134
Reputation:
Rep Power: 10
Solved Threads: 257
To me it was random school assignment when they need to access DB and do something, will see what chrisdent1986 says when he eventualy find his way back to daniweb
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Oracle Marketplace
Similar Threads
- Connecting JSP, Tomcat, Oracle 10g (JSP)
- Java/J2EE Senior Software Engineer (Software Development Job Offers)
- hover over text tips (JavaScript / DHTML / AJAX)
Other Threads in the Oracle Forum
- Previous Thread: Create HTML page using PL/SQL
- Next Thread: iSQL *plus



Linear Mode