Re: Data source not found no default driver specified.



"ad" <ambrish.dwivedi@xxxxxxxxx> wrote:

>hello,
>
>am stuck with an application which uses
>
>1. VB6,TCP/IP FOR CLIENT
>2. VB6,TCP/IP,ADO FOR SERVER SIDE
>3. ORACLE 9I FOR DATABASE.
>
>on running the server application it gives the error "data source not
>found no default driver specified"
>
>am using the following code for connection:
>
>Public Sub Connect()
>On Error GoTo subend
>Set cnnpass = New ADODB.Connection cnnpass.Provider =
>"MSDASQL.1"
>cnnpass.open "Persist Security Info=False;DRIVER={Oracle in
>OraHome90};SERVER=WMPDB;UID=WMP_DEV;pwd=wmp_dev;DBQ=WMPDB;DBA=W;APA=T;EXC=F;XSM=Default;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=Lo;BAM=IfAllSuccessful;MTS=F;MDI=Me;CSR=F;FWC=F;PFC=10;TLO=O;"
>
>
>am able to connect to the database using sqlplus,but not through the
>application.Have checked the oracle driver entry in the odbc data
>source administrator drivers list.
>
>So plz suggest what is it dat is goin wrong ,this thing is driving me
>crazy.
Try using a DSN-Less connection instead ( it is more reliable - and is the current recommended method) - something like this

cst = "Provider=OraOLEDB.Oracle;" & _
"Server=<server>;" & _
"Data Source=<dbname>;" & _
"User ID=<uid>;" & _
"Password=<pwd>"

set conn = CreateObject("ADODB.Connection")
conn.open cst


.



Relevant Pages

  • Re: "Correct" term for a 1:1 relationship between a "database" and an "instance" where > 1 such thin
    ... Nearly all the Oracle docs and books define a database something like ... unpartitioned physical server? ...
    (comp.databases.oracle.server)
  • Linked Server (Oracle 9i)
    ... Having problems connecting to an Oracle 9i database from within ... Microsoft ODBC for Oracle ... Windows 2000 - Advanced Server ... OLE DB error trace [OLE/DB Provider 'MSDAORA' ...
    (microsoft.public.sqlserver.odbc)
  • Linked Server (Oracle 9i)
    ... Having problems connecting to an Oracle 9i database from within ... Microsoft ODBC for Oracle ... Windows 2000 - Advanced Server ... OLE DB error trace [OLE/DB Provider 'MSDAORA' ...
    (microsoft.public.sqlserver)
  • RE: ORACLE DRIVER
    ... DBI - is the perl module to handle all the request of the database, connecting, disconnecting, routing the database request to proper driver. ... DBD::Oracle - is the Oracle driver that DBI can use to handle oracle request. ...
    (perl.dbi.users)
  • RE: Vulnerability analysis tools
    ... Definitely you want your Oracle database behind a firewall. ... tell you the database is not meant to be exposed to the internet directly. ... 1- A web server hosted at an IDC ...
    (Security-Basics)

Quantcast