pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Visual Studio 2005 not happy with postgresql
5+ messages / 4 participants
[nested] [flat]

* Visual Studio 2005 not happy with postgresql
@ 2005-11-15 15:07 Tobias Britz <tobias.britz@ersystems.ch>
  2005-11-15 20:43 ` Re: Visual Studio 2005 not happy with postgresql Campbell, Greg <greg.campbell@us.michelin.com>
  2005-11-15 21:27 ` Re: Visual Studio 2005 not happy with postgresql Leendert Paul Diterwich <paulditerwich@gmail.com>
  2005-11-16 19:00 ` Re: Visual Studio 2005 not happy with postgresql P.M <pmdanger@yahoo.com>
  0 siblings, 3 replies; 5+ messages in thread

From: Tobias Britz @ 2005-11-15 15:07 UTC (permalink / raw)
  To: pgsql-odbc

Hi community!
 
Here is my problem:

*	Postgresql 8.1 installed on windows XP (machine 1) with DB up
and running. I can access/change/see all my tables, etc with EMS
Postgresql manager
*	On Machine 2 (windows XP) I've installed the pg ODBC drivers
8.01.01 and created a System DSN to machine 1
*	I tested this DSN with MS Access, and I could see my tables, add
items, launch queries
*	Now, I need to use Visual Studio 2005 (with .Net 2.0) for our
project and would like to be able to create XSD files visually (using
the VS2005 built-in tools). In VS2005 Server Explorer, I created a new
Database Connection, using the Microsoft ODBC Data Source (ODBC) with
the .Net ODBC Data Provider selected. Pointed the thing to my working
ODBC DSN and tested the connection
*	Connection works (says VS2005)
*	Now I have a new Data Connection in the Server Explorer, with 3
tree entries; Tables, Views, Procedures. My problem is that "Tables" is
empty, "Views" is empty but "Procedures" contains hundreds of postgres
functions.
*	I would like to see my tables and views!

Remark:

*	I tried OLEDB, whitout success either. VS2005 says that there
where "some" errors and that "no work could be done"... cool he?!

Can someone please help me, as I've lost already 2 days figuring out
what is going wrong here. I google nearly every forum about that..
 
Thanks in advance, 
 
Tobias Britz
ER Systems SA

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Visual Studio 2005 not happy with postgresql
  2005-11-15 15:07 Visual Studio 2005 not happy with postgresql Tobias Britz <tobias.britz@ersystems.ch>
@ 2005-11-15 20:43 ` Campbell, Greg <greg.campbell@us.michelin.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Campbell, Greg @ 2005-11-15 20:43 UTC (permalink / raw)
  To: Tobias Britz <tobias.britz@ersystems.ch>; +Cc: pgsql-odbc

1. There is a lot going on with the pgODBC driver versions? You could try a different version.
2. You could try Npgsql -- the .NET data provider for Postgresql.
3. It sounds like you do not have a default schema of public -- I think that happened and/or was fixed in 
one of the very recent version of pgODBC .


Tobias Britz wrote:

> Hi community!
>  
> Here is my problem:
> 
> *	Postgresql 8.1 installed on windows XP (machine 1) with DB up
> and running. I can access/change/see all my tables, etc with EMS
> Postgresql manager
> *	On Machine 2 (windows XP) I've installed the pg ODBC drivers
> 8.01.01 and created a System DSN to machine 1
> *	I tested this DSN with MS Access, and I could see my tables, add
> items, launch queries
> *	Now, I need to use Visual Studio 2005 (with .Net 2.0) for our
> project and would like to be able to create XSD files visually (using
> the VS2005 built-in tools). In VS2005 Server Explorer, I created a new
> Database Connection, using the Microsoft ODBC Data Source (ODBC) with
> the .Net ODBC Data Provider selected. Pointed the thing to my working
> ODBC DSN and tested the connection
> *	Connection works (says VS2005)
> *	Now I have a new Data Connection in the Server Explorer, with 3
> tree entries; Tables, Views, Procedures. My problem is that "Tables" is
> empty, "Views" is empty but "Procedures" contains hundreds of postgres
> functions.
> *	I would like to see my tables and views!
> 
> Remark:
> 
> *	I tried OLEDB, whitout success either. VS2005 says that there
> where "some" errors and that "no work could be done"... cool he?!
> 
> Can someone please help me, as I've lost already 2 days figuring out
> what is going wrong here. I google nearly every forum about that..
>  
> Thanks in advance, 
>  
> Tobias Britz
> ER Systems SA
> 

Attachments:

greg.campbell.vcf (text/x-vcard, 239B) download begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: Visual Studio 2005 not happy with postgresql
  2005-11-15 15:07 Visual Studio 2005 not happy with postgresql Tobias Britz <tobias.britz@ersystems.ch>
@ 2005-11-15 21:27 ` Leendert Paul Diterwich <paulditerwich@gmail.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Leendert Paul Diterwich @ 2005-11-15 21:27 UTC (permalink / raw)
  To: 'Tobias Britz' <tobias.britz@ersystems.ch>; pgsql-odbc

Dear Tobias,

 

I have the same problem with visual studio 2005. The beta's worked perfectly
but since the RTM version I'm experiencing the same.

Already filed this complaint to MS. 

I have a schema public and meet all the previous requirements. So far I
haven't been able to crack this one and recoded my application to use npgsql
which has a commandbuilder but not the nice gui features. 

 

In the postgresql log you actually see VS querying all the data (tables
etc.) but they simply don't display. Also the automatic generation of
update, delete and insertcommands does not work anymore. 

 

Perhaps this helps.. (a bit ;) ) 

 

Cheers,

 

Paul

 

  _____  

Van: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] Namens Tobias Britz
Verzonden: dinsdag 15 november 2005 16:07
Aan: pgsql-odbc@postgresql.org
Onderwerp: [ODBC] Visual Studio 2005 not happy with postgresql

 

Hi community!

 

Here is my problem:

*	Postgresql 8.1 installed on windows XP (machine 1) with DB up and
running. I can access/change/see all my tables, etc with EMS Postgresql
manager
*	On Machine 2 (windows XP) I've installed the pg ODBC drivers 8.01.01
and created a System DSN to machine 1
*	I tested this DSN with MS Access, and I could see my tables, add
items, launch queries
*	Now, I need to use Visual Studio 2005 (with .Net 2.0) for our
project and would like to be able to create XSD files visually (using the
VS2005 built-in tools). In VS2005 Server Explorer, I created a new Database
Connection, using the Microsoft ODBC Data Source (ODBC) with the .Net ODBC
Data Provider selected. Pointed the thing to my working ODBC DSN and tested
the connection
*	Connection works (says VS2005)
*	Now I have a new Data Connection in the Server Explorer, with 3 tree
entries; Tables, Views, Procedures. My problem is that "Tables" is empty,
"Views" is empty but "Procedures" contains hundreds of postgres functions.
*	I would like to see my tables and views!

Remark:

*	I tried OLEDB, whitout success either. VS2005 says that there where
"some" errors and that "no work could be done"... cool he?!

Can someone please help me, as I've lost already 2 days figuring out what is
going wrong here. I google nearly every forum about that..

 

Thanks in advance, 

 

Tobias Britz

ER Systems SA

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Visual Studio 2005 not happy with postgresql
  2005-11-15 15:07 Visual Studio 2005 not happy with postgresql Tobias Britz <tobias.britz@ersystems.ch>
@ 2005-11-16 19:00 ` P.M <pmdanger@yahoo.com>
  2 siblings, 0 replies; 5+ messages in thread

From: P.M @ 2005-11-16 19:00 UTC (permalink / raw)
  To: Tobias Britz <tobias.britz@ersystems.ch>; pgsql-odbc

Hi,

i did not experience such issue but when i use ODBCConnection from VS.NET 2005 (VB.net in fact), in debug mode, my connection test works perfectly, but when i try to create a DB on-fly, my VB.net seems to freeze... around the same time, that the timeout session is, and give me back the control displaying a message that connection has be closed....

but if i test my application in release mode, it works perfectly...

I suppose that VS.net ODBC connector has some issue with DB in debug mode....try your application in runtime.

HT,
Maileen

Tobias Britz <tobias.britz@ersystems.ch> wrote:     Hi  community!
  
 Here is my  problem:
    
   Postgresql 8.1    installed on windows XP (machine 1) with DB up and running. I can    access/change/see all my tables, etc with EMS Postgresql    manager   
   On Machine 2    (windows XP) I've installed the pg ODBC drivers 8.01.01 and created a System    DSN to machine 1   
   I tested this DSN    with MS Access, and I could see my tables, add items, launch    queries   
   Now, I need to use    Visual Studio 2005 (with .Net 2.0) for our project and would like to be able    to create XSD files visually (using the VS2005 built-in tools). In VS2005    Server Explorer, I created a new Database Connection, using the Microsoft ODBC    Data Source (ODBC) with the .Net ODBC Data Provider selected. Pointed the    thing to my working ODBC DSN and tested the connection   
   Connection works    (says VS2005)   
   Now I have a new    Data Connection in the Server Explorer, with 3 tree entries; Tables, Views,    Procedures. My problem is that "Tables" is empty, "Views" is empty but    "Procedures" contains hundreds of postgres functions.   
   I would like to see    my tables and views!
 Remark:
    
   I tried OLEDB,    whitout success either. VS2005 says that there where "some" errors and that    "no work could be done"... cool he?!
 Can someone please  help me, as I've lost already 2 days figuring out what is going wrong here. I  google nearly every forum about that..
  
 Thanks in advance,  
  
 Tobias  Britz
 ER Systems  SA



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Visual Studio 2005 not happy with postgresql
@ 2005-11-16 08:08 Tobias Britz <tobias.britz@ersystems.ch>
  0 siblings, 0 replies; 5+ messages in thread

From: Tobias Britz @ 2005-11-16 08:08 UTC (permalink / raw)
  To: Campbell, Greg <greg.campbell@us.michelin.com>; +Cc: pgsql-odbc

Hi Greg, 

Thanks for replying!

- As I said, I'm using the latest version 8.01.01.01 and even tried the
8.01.01.00 version without success. What do you mean by "Try a different
version" ?

- How would I add a new .Net Framework Data Provider for Npgsql to
Visual Studio 2005 (I'm speaking about the Server Explorer GUI part, not
in code, which works)

- I have a default public schema, but it's empty, as I've created my own
one. I even tried to fill the public schema with a test table, in order
to check if it was pointing there. Not the case. I checked if there was
a way to "direct" VS2005 to the right schema. I tried using "Set
search_path to" in the connection setting (page 2 of the ODBC config
dialog) without success.

Any other ideas?

Thanks in advance for your help and best regards from Switzerland, 

Tobias Britz
ER Systems SA

-----Original Message-----
From: Campbell, Greg [mailto:greg.campbell@us.michelin.com] 
Sent: mardi, 15. novembre 2005 21:43
To: Tobias Britz
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Visual Studio 2005 not happy with postgresql

1. There is a lot going on with the pgODBC driver versions? You could
try a different version.
2. You could try Npgsql -- the .NET data provider for Postgresql.
3. It sounds like you do not have a default schema of public -- I think
that happened and/or was fixed in one of the very recent version of
pgODBC .


Tobias Britz wrote:

> Hi community!
>  
> Here is my problem:
> 
> *	Postgresql 8.1 installed on windows XP (machine 1) with DB up
> and running. I can access/change/see all my tables, etc with EMS
> Postgresql manager
> *	On Machine 2 (windows XP) I've installed the pg ODBC drivers
> 8.01.01 and created a System DSN to machine 1
> *	I tested this DSN with MS Access, and I could see my tables, add
> items, launch queries
> *	Now, I need to use Visual Studio 2005 (with .Net 2.0) for our
> project and would like to be able to create XSD files visually (using
> the VS2005 built-in tools). In VS2005 Server Explorer, I created a new
> Database Connection, using the Microsoft ODBC Data Source (ODBC) with
> the .Net ODBC Data Provider selected. Pointed the thing to my working
> ODBC DSN and tested the connection
> *	Connection works (says VS2005)
> *	Now I have a new Data Connection in the Server Explorer, with 3
> tree entries; Tables, Views, Procedures. My problem is that "Tables"
is
> empty, "Views" is empty but "Procedures" contains hundreds of postgres
> functions.
> *	I would like to see my tables and views!
> 
> Remark:
> 
> *	I tried OLEDB, whitout success either. VS2005 says that there
> where "some" errors and that "no work could be done"... cool he?!
> 
> Can someone please help me, as I've lost already 2 days figuring out
> what is going wrong here. I google nearly every forum about that..
>  
> Thanks in advance, 
>  
> Tobias Britz
> ER Systems SA
> 



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2005-11-16 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-15 15:07 Visual Studio 2005 not happy with postgresql Tobias Britz <tobias.britz@ersystems.ch>
2005-11-15 20:43 ` Campbell, Greg <greg.campbell@us.michelin.com>
2005-11-15 21:27 ` Leendert Paul Diterwich <paulditerwich@gmail.com>
2005-11-16 19:00 ` P.M <pmdanger@yahoo.com>
2005-11-16 08:08 Re: Visual Studio 2005 not happy with postgresql Tobias Britz <tobias.britz@ersystems.ch>

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