You are here: Linked Server Time Difference « MsSQL Server « IT news, forums, messages
Linked Server Time Difference

Posted by MartyP on 05/31/06 12:45

I am using SQL 2000 and/or SQL 2005 to link to an Oracle Db using
OPENQUERY.
The SQL 2000 box is SP4 on Win2000.

I can run a query thru Q.A. for SQL 2000 or I can run an Oracle query
thru SQL-Plus to see the data. But, if I run a date-query using the
linked server then SQL Server returns a TIME that is off by 4 hours.

SQL Query:
SELECT * FROM OPENQUERY( ORASERVER, 'SELECT MYDATE FROM MYTABLE')

Oracle Query:
'SELECT MYDATE FROM MYTABLE'

Oracle results:
04/16/2006 01:07:00

SQL 2000 result:
04/16/2006 05:07:00

Has anyone seen this before? Is there a fix?
I have searched the newsgroups and MS Kb but can not find an answer.

Thanks,
Marty

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация