473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ADODB.Connection - from ACCESS to Oracle

Hi, I know that there were a lot of common posts but I stel have a
problem.

I'm using this code:

set x = new adobd.connection

x.open "provider.sqloledb;" & _
"data source = server.name.com;" & _
"port = 1234;" & _
"user id = name;" & _
"password = passwd;"

and I have this error:
"Invalid connection string attribute".

I'm starting to bet know adodb so please for your understanding.
Have you any idea what is wrong.

Thank you very much.

Marcin

Jan 27 '06 #1
1 4817
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try:

x.open "provider=sqloledb;" & _
"data source=server.name.com;" & _
"port=1234;" & _
"inital catalog=MyDatabase;" & _
"user id=name;" & _
"password=passwd;"

You'd left out the inital catalog. Substitute the name of your database
for "MyDatabase."

If the target server is set up as a normal SQL Server installation, then
you don't need the port parameter, 'cuz it will default to the SQL
Server port.

If you know the IP address of the server, you may want to try that
instead of "server.name.com;." I'm not sure if the DNS will translate
the domain name to the IP address when it is in a connection string.
But I may be wrong....

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ9qCHIechKqOuFEgEQJzSQCg2bnlu9zILCMa2IpqQ1UyHO e1ipkAoLAm
njo11d35lC8FfuyneW+UcRnB
=sWAe
-----END PGP SIGNATURE-----
Marcin Wasilewski wrote:
Hi, I know that there were a lot of common posts but I stel have a
problem.

I'm using this code:

set x = new adobd.connection

x.open "provider.sqloledb;" & _
"data source = server.name.com;" & _
"port = 1234;" & _
"user id = name;" & _
"password = passwd;"

and I have this error:
"Invalid connection string attribute".

I'm starting to bet know adodb so please for your understanding.
Have you any idea what is wrong.

Jan 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bina Desai | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open...
1
by: xtanto | last post by:
Hi All, We need to develope application & report that run on windows accessing Oracle on Linux. and we use Crystal Report as reporting tool. Can Crystal Report on windows access...
2
by: wolverine1654 | last post by:
I have an application that we are moving to a 2003 server using IIS6. Currently, it works fine with IIS5 on a NT server. When I try to log into the application and connect to an Oracle DB, I get...
5
by: Tim Marshall | last post by:
I am trying to set a report's recordset property with an ADO recordset. I do the following and it works on a form. What do I need to do to do this correctly on a report? Private Sub...
1
by: Nigel C | last post by:
Access 2000 - A am trying to access another Access 2000 database from a code module. I have seen examples of the ADODB connection string - to connect to an access database however the database...
4
by: vikas | last post by:
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN. ************* Code ************** This is my code: Public con As New ADODB.Connection Public myrs As Recordset con.Open "eFarm",...
3
by: Joe Befumo | last post by:
I'm getting the following error in my application: Compiler Error Message: BC30002: Type 'ADODB.Connection' is not defined. Source Error: Line 112: if(Request.Form("HdnQuestionCount") =...
7
by: STUPIDFORUM | last post by:
ADODB.Recordset "The connection cannot be used to perform this operation." "Microsoft Access Driver" ERROR 0X800A0E7D OLE exception from "ADODB.Recordset": The connection cannot be used to...
1
by: arcingmad | last post by:
Hi I am using the following code in a button click event to run a query stored in a .mdb file from an external geographic program ArcGIS via a jet adodb connection I have the need to run an...
1
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.