If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DATA FROM DB2 TO MS SQL Server - where clause is not working

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-04, 14:20
RKRAMESH RKRAMESH is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
DATA FROM DB2 TO MS SQL Server - where clause is not working

Hello,

I am coping data from DB2 to MS SQL server 2000, I am not getting the mathed rows. The issue is in SQL Server, it is coping all rows from DB2. My where clause in SQL is not working. I am using DTS and use Query to specify data transfer is my I have a column on DB2 with DATE as datatype and I am looking to load data from 2004. My SQL is,

SELECT * FROM TABLE
WHERE TABLENAME.COLUMN >= '2004-01-01'

My data is stored in DB2 as 'yyyy-mm-dd' format.
1. This where clause is not giving the matching rows instead it gives all the rows in the table. Any idea?

OR

2.Any idea if the data type in DB2 is packed (hexa decimal/ comp-3), how we can use the column value in SQL SERVER

Please help me on. Any thoughts or comments are appreciated!.

Ramesh.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On