pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Weaver <gweaver@shaw.ca>
To: Amadeo Garcia <amadeogarciaserrano@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Error connecting a visual studio .NET "app" and PostgreSQL
Date: Tue, 25 Jan 2005 14:30:10 -0600
Message-ID: <010601c5031c$af3f5c60$6400a8c0@Dell4500> (raw)
References: <aec84fa5050122085226610725@mail.gmail.com>
	<aec84fa50501220907470e341f@mail.gmail.com>
	<00b401c50314$43fd7340$6400a8c0@Dell4500>
	<aec84fa505012512072330b05a@mail.gmail.com>


You're very welcome.

----- Original Message ----- 
From: "Amadeo Garcia" <amadeogarciaserrano@gmail.com>
To: "George Weaver" <gweaver@shaw.ca>
Sent: Tuesday, January 25, 2005 2:07 PM
Subject: Re: [ODBC] Error connecting a visual studio .NET "app" and 
PostgreSQL


> THANK YOU VERY VERY MUCH, it worked perfectly.
>
>
> On Tue, 25 Jan 2005 13:29:56 -0600, George Weaver <gweaver@shaw.ca> wrote:
>> Hi Amadeo,
>>
>> Try
>> Driver={postgresql};Server=localhost;Port=5432;Database=libroteca;Uid=tapanez;Pwd=****;"
>>                                                                  ^^^^^^^^
>> Regards,
>> George
>>
>> ----- Original Message -----
>> From: "Amadeo Garcia" <amadeogarciaserrano@gmail.com>
>> To: <pgsql-odbc@postgresql.org>
>> Sent: Saturday, January 22, 2005 11:07 AM
>> Subject: [ODBC] Error connecting a visual studio .NET "app" and 
>> PostgreSQL
>>
>> > ODBC Driver Version: 07_03_0200
>> > PostgreSQL 8.0
>> > SO: Windows XP with Service Pack 2
>> > Visual Studio .NET with Framework 1.1
>> >
>> > Hi, this is my visual basic code, very very simple, i'm first trying
>> > to connect with the database, no success at this moment.
>> >
>> >        Dim cadenaConexion =
>> > "Driver={postgresql};Server=(localhost:5432);Database=libroteca;Uid=tapanez;Pwd=****;"
>> >        Dim conexion As Microsoft.Data.Odbc.OdbcConnection = New
>> > OdbcConnection(cadenaConexion)
>> >        Dim comando As String = "INSERT INTO LIB_AUTORES VALUES (2,
>> > 'Ken Follet')"
>> >        Dim cmd As Microsoft.Data.Odbc.OdbcCommand = New
>> > OdbcCommand(comando, conexion)
>> >        Try
>> >            MsgBox("Abriendo conexion")
>> >            cmd.Connection.Open()
>> >            Console.WriteLine("Abriendo conexion2")
>> >            cmd.ExecuteNonQuery()
>> >            cmd.Connection.Close()
>> >        Catch ex As Exception
>> >            MsgBox(ex.ToString)
>> >        End Try
>> >
>>
>> --------------------------------------------------------------------------------
>>
>> >
>> > ---------------------------(end of 
>> > broadcast)---------------------------
>> > TIP 3: if posting/reading through Usenet, please send an appropriate
>> >      subscribe-nomail command to majordomo@postgresql.org so that your
>> >      message can get through to the mailing list cleanly
>> >
>>
>>
>
>
> -- 
> Carry on my sons forever
> Carry On when I am gone
> Carry On when the day is long
> Forever Carry On
> For as long as we're together then
> Forever Carry On
> 





view thread (3+ messages)

Message-ID: <010601c5031c$af3f5c60$6400a8c0@Dell4500>
Permalink:  ../010601c5031c$af3f5c60$6400a8c0@Dell4500/
Also on:    postgresql.org/message-id/010601c5031c$af3f5c60$6400a8c0@Dell4500

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: gweaver@shaw.ca, amadeogarciaserrano@gmail.com
  Subject: Re: Error connecting a visual studio .NET "app" and PostgreSQL
  In-Reply-To: <010601c5031c$af3f5c60$6400a8c0@Dell4500>
  References: <aec84fa5050122085226610725@mail.gmail.com> <aec84fa50501220907470e341f@mail.gmail.com> <00b401c50314$43fd7340$6400a8c0@Dell4500> <aec84fa505012512072330b05a@mail.gmail.com> <010601c5031c$af3f5c60$6400a8c0@Dell4500>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox