Вы находитесь на странице: 1из 5

how to connect vb6.

0 to oracle 9i - Visual Basic 4 / 5 / 6 Page 1 of 5

760,899 members

how to save particular se

Trending Hardware & Software Software Development Web Development Internet Marketing Business

Community Center

www.securityweek.com

Software Development > Visual Basic 4 / 5 / 6 > how to connect vb6.0 to oracle 9i

These search terms have been highlighted: how to save particular set of data to a table from visual basic
6.0 to oracle 9i database (Clear)

Ad: VoIP for Small Business: Compare Pricing and Features of the Top 9 VoIP Providers with
our FREE Guides!

Visual Basic 4 / 5 / 6 Discussion Thread Unsolved Views: 34371


0 tweet Like
€

sawant_deepu
Jan 10th, Permalink
Newbie Poster
Offline 2007
3 posts
since Jan 2007
how 0
to connect
vb6.0 to
oracle 9i
Expand Post »
i am bscit student
and i am doing one
Similar Threads
project. so i want
can't we link VB6 to Oracle 10g in Visual Basic 4 / 5 / 6
to urjently know
how to connect oracle 8i database with jsp page in JSP
how to connect

http://www.daniweb.com/forums/thread66897.html 5/27/2010
how to connect vb6.0 to oracle 9i - Visual Basic 4 / 5 / 6 Page 2 of 5

vb6.0 to oracle How To Connect VB6.0 (Access Database) Using


ODBC in Visual Basic 4 / 5 / 6
9i
connecting jsp with oracle database in JSP

Jan 10th, 2007 Permalink

Re: how to connect vb6.0 to oracle 9i 0

There are several ways to connect to Oracle 9i from VB 6.


aparnesh
Junior Poster You can use a ODBC connection or use ADO (ActiveX Data
Offline Objects). For Remote servers, you can also use RDO.

189 posts
since Jul 2005 There is no general 'best solution' and the best method for
connectivity depends on the particular situation and specifications.

Jan 11th, 2007 Permalink

Re: how to connect vb6.0 to oracle 9i 0

For Connecting via ADO to Oracle , you will need to have either
aparnesh
Junior Poster the Oracle 9i Client Software installed in the client machines or
Offline create an ODBC data source. I usually prefer having the Oracle

189 posts
client installed, as it avoids having to create ODBCs.
since Jul 2005

To connect via ADO, you will need to specify the Connection


parameters including server name, User Name and Password. The
Code is like

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)

1.
2. Dim ConnString as string
3. ConnString = "Provider=MSDAORA.1 ;
Password=myPassword; User ID=myUser ; Data
Source = ORCL; Persist Security Info=True"
4. '// Where ORCL is the Oracle Service you are
trying to connect
5. Dim objConn as new ADODB.Connection
6. objConn.open ConnString

http://www.daniweb.com/forums/thread66897.html 5/27/2010
how to connect vb6.0 to oracle 9i - Visual Basic 4 / 5 / 6 Page 3 of 5

This will create a connection to the specified Oracle service,


using the user name and password to login.

If you are planning to use ADO, please look up a book or MSDN


for explanation of the parameters and how to use them.

Last edited by aparnesh; Jan 11th, 2007 at 11:01 am.

sawant_deepu
Jan 14th, 2007 Permalink
Newbie Poster
Offline Re: how to connect vb6.0 to oracle 9i 0
3 posts
since Jan 2007
Hi Aparnesh thanks for replying.i have oracle 9i installed. actually
the project i am doing is a company store management and i have
to complete it till feb.and now i am confused whether i should use
oracle as a back end or MS-Access.bcoz i have heard that if the
connection is not properly set up with oracle then it can create
problems.so what should i go for oracle or access?bcoz at the end
moment it should not create any problems infront of external. do u
have e-mail id . waiting for ur reply.bye

Jan 14th, 2007 Permalink

Re: how to connect vb6.0 to oracle 9i 0

If this is a student project and you are free to use any database
aparnesh
Junior Poster you prefer, you should use whichever you are more comfortable with.
Offline If this is a commercial project, you should take into consideration

189 posts how the client will use it, number of concurrent users, expected
since Jul 2005 number of records to be stored etc.

I generally prefer Access for small commercial projects, which run as


in a stand-alone machine (for small shop's sales counters, for
example). For larger projects or for projects which are designed for
multiple users, I use Oracle or mySQL depending on client's
budget.

Till now, I haven't really faced any big connection related problems
regarding Oracle-ADO-VB scenario. But if you are not

http://www.daniweb.com/forums/thread66897.html 5/27/2010
how to connect vb6.0 to oracle 9i - Visual Basic 4 / 5 / 6 Page 4 of 5

familiar/comfortable with Oracle , you must have the


assistance/guidance of someone who knows Oracle well. If you
do not have any such resource, it would be better not to use
Oracle .

priyanka patel
Nov 9th, 2008 Permalink
Newbie Poster
Offline Re: how to connect vb6.0 to oracle 9i 0
2 posts
since Nov 2008
Dim ConnString as string
ConnString = "Provider=MSDAORA.1 ; Password=myPassword;
User ID=myUser ; Data Source = ORCL; Persist Security
Info=True"
'// Where ORCL is the Oracle Service you are trying to connect
Dim objConn as new ADODB.Connection
objConn.open ConnString

This thread is more than three months old. Perhaps start a new thread instead?

This thread is currently closed and is not accepting any new replies.

Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: can't we link VB6 to Oracle 10g
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: hi..i like to study the treeview.. any help site

Tag Cloud for Visual Basic 4 / 5 / 6

6 7 access ado append backup basic blackjack calendar channel9 coffeehouse column computer connectionproblem

control convert creative data database decimal designer disable draw drawing error excel filter flex

foldercontents form format game game-development gameprogramming icon ide image implements installation installer

interaction label list listview loan macro mail match memory messagebox metadata mysql number os outlook password

passwords pic picturbox powerpoint print printer problem programmer query random recordset registration report retrieve

rss rssfeeds rssreader save science score search server spectateswamp sql string struct structure sum table text

thunderbird timer variable vb vb6 vb6.0 vba vbrss vista visual visualbasic windows winsock word

http://www.daniweb.com/forums/thread66897.html 5/27/2010
how to connect vb6.0 to oracle 9i - Visual Basic 4 / 5 / 6 Page 5 of 5

About Us | Contact Us | Advertise | Acceptable Use Policy

Build Custom RSS Feed

© 2010 DaniWeb® LLC

http://www.daniweb.com/forums/thread66897.html 5/27/2010

Вам также может понравиться