Jan D'Hondt
8/3/2002 1:34:00 PM
Mathieu
I have just made it work for Postgresql, I presume it will be similar
I have made an odbc dsn Pgdsn
In visual studio dotnet project add a reference to microsoft.data.odbc.dll
In your code :
Imports Microsoft.Data.Odbc
...
Dim oconn As New
OdbcConnection("ODBC;DSN=Pgdsn;Driver={PostgreSQL};DATABASE=Mydb;SERVER=myse
rver;PORT=5432;UID=myname;")
DSN= is the name of the dsn I have made
Driver={ you can find the driver name in the list of drivers in the odbc
setup dialog window}
SERVER= can be an ip address or a server name depending on your setup
PORT=5432 is the std postgres port on the linux server
Hope this helps
"Mathieu Dumoulin" <mdumoulin@groupimage.com> schreef in bericht
news:euHCbrKOCHA.1796@tkmsftngp09...
> Ok, i've been looking all over the web for a way to connect through MySQL
> server so i create an offline application using my data from my Web
> Application based on MYSQL.
>
> I've looked at a lot of things this is my final try.
>
> I installed MDAC 7.0, The patch for ODBC.Net, and looked all over the
place
> to find my odbc namespace or anything that looks like it. i can't find
it...
>
> Can anyone refer me to a place where i can find exact step by step info on
> how to connect to a ODBC DSN or simply an ODBC using a connection string
> will be ok.
>
> Or, you can email me the information
>
> Thankss
> InsaneCoder
>
>