Unix Technical Forum

Set timezone in ODBC

This is a discussion on Set timezone in ODBC within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> We have just setup our first PostgreSQL system. We have a vendor product that connects via ODBC. That vendor ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 02:13 AM
Walker, Jed S
 
Posts: n/a
Default Set timezone in ODBC

We have just setup our first PostgreSQL system. We have a vendor product
that connects via ODBC. That vendor product needs to talk in a different
timezone than our database server is at. How can you specify a timezone
to use through ODBC?


Jed S. Walker

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 02:13 AM
Greg Campbell
 
Posts: n/a
Default Re: Set timezone in ODBC

Interesting question. It makes me wonder, is ODBC supposed to be a smart
pipe or a dumb pipe.

So I ask, it the timestamp being sent, a simple one, with no indication
of timezone.

The postgreSQL has a syntax for timestamps with timezones
hh:mm:ss+/-hh:mm eg (10:30:21-08:00, 09:35:17+05:00). see PostgreSQL
User's guide in the documentation as PDF - just look up datatypes Date
and Times.

Could the client do the translation to UTC/GMT, and that be what is
transmitted.

It seems that the areas DBMSs vary most are DDL (data definition
lanaguage) and DateTime signification.



Walker, Jed S wrote:

> We have just setup our first PostgreSQL system. We have a vendor product
> that connects via ODBC. That vendor product needs to talk in a different
> timezone than our database server is at. How can you specify a timezone
> to use through ODBC?
>
>
> Jed S. Walker
>



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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 02:13 AM
Greg Campbell
 
Posts: n/a
Default Re: Set timezone in ODBC

To configure a server for a default timezone, see the PostgreSQL admin
guide for the PostgreSql configuration file, the TIMEZONE parameter.



Walker, Jed S wrote:

> We have just setup our first PostgreSQL system. We have a vendor product
> that connects via ODBC. That vendor product needs to talk in a different
> timezone than our database server is at. How can you specify a timezone
> to use through ODBC?
>
>
> Jed S. Walker
>



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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 11:49 PM.


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