Unix Technical Forum

Accessing PG/Linux from a Windows client

This is a discussion on Accessing PG/Linux from a Windows client within the pgsql Novice forums, part of the PostgreSQL category; --> Hello all, I've had some experience in accessing a PostgreSQL database, running on Linux, from remote clients with Perl ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:40 PM
Joao Miguel Ferreira
 
Posts: n/a
Default Accessing PG/Linux from a Windows client

Hello all,

I've had some experience in accessing a PostgreSQL database, running on
Linux, from remote clients with Perl (DBI, DBD), also on Linux. Only
Perl/Linux.

But know I need to know if it is possible to access PortgreSQL (running
on Linux) with the Microsoft Develpment Languages and API's on the
client side ????

.... is it possible to access PG (on Linux) from a Windows machine using
the 'traditional' Microsoft languages/API's (C#, VB, etc) ????

.... I really don't know the MS dev tools very well !!!... but I need to
help a student make some initial decisions on his project !!!


Thank you all.

Joao Ferreira




---------------------------(end of broadcast)---------------------------
TIP 1: 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:40 PM
Rolf Østvik
 
Posts: n/a
Default Re: Accessing PG/Linux from a Windows client

jmf@estg.ipvc.pt (Joao Miguel Ferreira) wrote in
news:1141747974.2340.142.camel@sandoval:

> Hello all,
>
> I've had some experience in accessing a PostgreSQL database, running on
> Linux, from remote clients with Perl (DBI, DBD), also on Linux. Only
> Perl/Linux.
>
> But know I need to know if it is possible to access PortgreSQL (running
> on Linux) with the Microsoft Develpment Languages and API's on the
> client side ????
>
> ... is it possible to access PG (on Linux) from a Windows machine using
> the 'traditional' Microsoft languages/API's (C#, VB, etc) ????


It should at least work with ODBC. I haven't familiarised myself with
..NET so i am not really shure what that is, but i guess there is some
possibilites there also.

Here is a list of interfaces
<http://www.postgresql.org/docs/interfaces>

I think the main page for ODBC is
<http://pgfoundry.org/projects/psqlodbc/> but have look at
<http://www.postgresql.org/ftp/odbc/> also.

E.g. Microsoft Access VBA
===========================
Dim tstODBC As Workspace
Dim conODBC As Connection
Dim rcs As Recordset
Dim ConStr as string

ConStr = "ODBC;" & _
"DRIVER={PostgreSQL};" & _
"SERVER=servername;" & _
"READONLY=0;" & _
"DATABASE=databasename;" & _
"UID=username;" & _
"PWD=password"
Set tstODBC = CreateWorkspace("", "", "", dbUseODBC)
Set conODBC = tstODBC.OpenConnection("", dbDriverNoPrompt, _
False, ConStr )

Set rcs_login = conODBC.OpenRecordset("select username",dbOpenSnapshot)
============================

--
Rolf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 10:40 PM
operationsengineer1@yahoo.com
 
Posts: n/a
Default Re: Accessing PG/Linux from a Windows client

--- Joao Miguel Ferreira <jmf@estg.ipvc.pt> wrote:

> Hello all,
>
> I've had some experience in accessing a PostgreSQL
> database, running on
> Linux, from remote clients with Perl (DBI, DBD),
> also on Linux. Only
> Perl/Linux.
>
> But know I need to know if it is possible to access
> PortgreSQL (running
> on Linux) with the Microsoft Develpment Languages
> and API's on the
> client side ????
>
> ... is it possible to access PG (on Linux) from a
> Windows machine using
> the 'traditional' Microsoft languages/API's (C#, VB,
> etc) ????
>
> ... I really don't know the MS dev tools very well
> !!!... but I need to
> help a student make some initial decisions on his
> project !!!
>
>
> Thank you all.
>
> Joao Ferreira


i have no experience here, but wanted to try and
answer your question. i woul dbe surprised if you
couldn't. i think ms dev tools support odbc - and i
think pgsql does, too.

you may find more information in the manual:

http://www.postgresql.org/docs/8.1/i...-accessdb.html

http://www.postgresql.org/docs/8.1/i...nterfaces.html

good luck.


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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com