Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > dblinks
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3469 of 3797
Post > Topic >>

dblinks

by sumaya@[EMAIL PROTECTED] May 17, 2008 at 10:58 PM

----=_vm_0011_W6447414777_12610_1211065120
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Hi,

I am accessing data across different databases using dblinks but the dates
are getting messed up:
table: mytable
columns: my_id int
my_date date
values: 1
2008-04-09

When retrieving data from the table in the relevant database the date is
returned correctly: 2008-04-09
but when retrieving across dblinks using statement below, I get the
following error:
statement looks like

select * from mytable@[EMAIL PROTECTED]
 error refers to the datestyle setting and shows the date as
'2008-09-04'

Please advise if there is a way around this.

Thanks,
Sumaya



----=_vm_0011_W6447414777_12610_1211065120
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><body  bgcolor=3D"#ffffff"><DIV><FONT face=3DVerdana size=3D2>Hi,</=
FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I am accessing data across different databases using =
dblinks but the dates are getting messed up:</FONT></DIV>
<DIV><FONT size=3D2>table: mytable</FONT></DIV>
<DIV><FONT size=3D2>columns: my_id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;int</FONT></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=3D2>my_date&nbsp;&nbsp;&nbsp;&nbsp=
;date</FONT></DIV>
<DIV><FONT size=3D2>values:&nbsp;&nbsp;&nbsp;&nbsp;1</FONT></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=3D2>2008-04-09</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>When&nbsp;retrieving data from the table in the relev=
ant database the date is returned correctly: 2008-04-09</FONT></DIV>
<DIV><FONT size=3D2>but when retrieving across dblinks using statement be=
low,&nbsp;I get the following error:</FONT></DIV>
<DIV><FONT size=3D2>statement looks like</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>select * from <A href=3D"mailto:mytable@[EMAIL PROTECTED]
">myt=
able@[EMAIL PROTECTED]
>;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>the error refers to the datestyle setting and shows t=
he date as '2008-09-04'</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Please advise if there is a way around this.</FONT></=
DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks,</FONT></DIV>
<DIV><FONT size=3D2>Sumaya</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV></body></html>

----=_vm_0011_W6447414777_12610_1211065120--
 




 2 Posts in Topic:
dblinks
sumaya@[EMAIL PROTECTED]   2008-05-17 22:58:40 
Re: dblinks
jonah.harris@[EMAIL PROTE  2008-05-17 19:31:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 11:15:06 CST 2008.