Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Connection

 
   Database Help (Home) -> Visual Basic -> ODBC RSS
Next:  ODBC Access reference material  
Author Message
alvin

External


Since: Apr 01, 2005
Posts: 1



(Msg. 1) Posted: Fri Apr 01, 2005 11:49 pm
Post subject: Connection
Archived from groups: microsoft>public>vb>database>odbc (more info?)

I have some problems using ADO to retrieve data from an Interbase (.gdb
file) in Visual Basic 6.0. I am trying to connect excel speedsheet to
interbase but could not.

Here are some parts of the coding involving the database connection:

' Database information
DBName = ThisWorkbook.Path & "\t6gl.gdb"

' Open the connection
Set Connect = New ADODB.Connection
Cnct = "Provider=MSDASQL.1;"
Cnct = Cnct & "Data Source=" & DBName & ";"
Connect.Open ConnectionString:=Cnct

The error message appeared like this:
Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC Driver Manager] Data Source Name not found and no default
driver specified.

Can someone look at this problem and any solution provided will be highly
appreciated.

Alvin.

 >> Stay informed about: Connection 
Back to top
Login to vote
Douglas J. Steele

External


Since: Mar 14, 2004
Posts: 1626



(Msg. 2) Posted: Fri Apr 01, 2005 11:49 pm
Post subject: Re: Connection [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Your connection string doesn't seem to be correct.

Take a look at what Carl Prothman has at
http://www.able-consulting.com/ado_conn.htm

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"alvin" wrote in message

>I have some problems using ADO to retrieve data from an Interbase (.gdb
> file) in Visual Basic 6.0. I am trying to connect excel speedsheet to
> interbase but could not.
>
> Here are some parts of the coding involving the database connection:
>
> ' Database information
> DBName = ThisWorkbook.Path & "\t6gl.gdb"
>
> ' Open the connection
> Set Connect = New ADODB.Connection
> Cnct = "Provider=MSDASQL.1;"
> Cnct = Cnct & "Data Source=" & DBName & ";"
> Connect.Open ConnectionString:=Cnct
>
> The error message appeared like this:
> Run-time error '-2147467259 (80004005)':
> [Microsoft][ODBC Driver Manager] Data Source Name not found and no default
> driver specified.
>
> Can someone look at this problem and any solution provided will be highly
> appreciated.
>
> Alvin.
>
>
>

 >> Stay informed about: Connection 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ISA 2006 with My sql Connection - Hi, Please help me,acutually I am facing problem with ISA 2006.It does not connect Mysql data base. It is giving error"Can't connect to Mysql server on "IP" 10060."

ODBC CONNECTION FROM COMMAND LINE - I am trying to get an ODBC connection created from a commandline, I have created the ODBC connection, exported the registry key, and have tried doing regedit /s "regkey", problem is after I do that it never shows us in the ODBC manager, it sh...

HOWTO: Clone SQL db ? - Hi all, I'm having a SQL Server database called X. For testing and training, I would like to make a copy of the entire DB to Y. This copy should include all data, properties, indexes, views, etc. Unfortunately, all my attempts to automate this..

Change connect string for Excel Queries using an ODBC Driver - Reference: ODBC Connection for MAS90 MAS200 In Excel we have an ODBC Connection String with a physical (hard coded) path to the data. We have changed the servers. We do not want to recreate all of the queries. How can we edit the ODBC path inside of..

Compile Error - Can anyone please help me to solve this problem I have when I tried to compile and run my program written in VB 6.0? Problem: I used variable declaration such as db as Database and ws as Workspace. I use ODBC way to connect my VB form interface with....
   Database Help (Home) -> Visual Basic -> ODBC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]