Showing posts with label db2. Show all posts
Showing posts with label db2. Show all posts

Thursday, March 29, 2012

DTS from SQL Server to DB2

I tried to copy tables from SQL Server 2000 to DB2 UDB by using DTS
package through ODBC, but always got an error that says:

"The number of failing rows exceeds the maximum specified.
[IBM][CLI Driver] CLI0150E Driver not capable, SQLSTATE=S1C00"

However, I can copy tables inversely from DB2 to SQL Server without
problem, and I can also copy tables to other non DB2 databases through
DTS.

DB2 Client is properly installed on SQL Server side, and can access to
DB2 Database successfully.

When I run DTS package, it can talk to DB2 database, and create a target
table (i.e. no connection problem), but failed to add data into the
table.

The problem appears after we upgraded Windows 2000 Server Service Pack
from SP2 to SP4. According to the error message, it seems that DB2 CLI
Driver is not happy about something.

Can anybody shed some light on the issue?

Thanks a lot

Jian

--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORGI am having a similar problem.

When using DTS designer when I click on the destination tab of the
data pump I get this error:
Error Description: Unspecified error
[IBM][CLI Driver][DB2/AIX64] SQL1131N DARI (Stored Procedure) process
has been terminated abnormally. SQLSTATE=38503

But the DB2 table comes up fine.

Then when I run the dts package I get this error:
The number of failing rows exceeds the maximum specified. [IBM][CLI
Driver] CLI0150E Driver not capable. SQLSTATE=S1C00

Does anyone have any ideas how to resolve this?

Thanks,
Sarah Larson|||I have just completed a migration to a new SQL Server and this problem
has reared its ugly head. I can continue to import data to SQL Server
from DB2, I can run an 'Execute SQL Task' to delete data from a DB2
table, but any attempt to insert fails instantly with 'The number of
failing rows exceeds the maximum amount specified.

The 'old' server was at W2K Advanced Server SP2 with SQL Server 2000
Ent at SP3 and ran exports to DB2 without issue.

The new server is W2K Advanced Server SP4 with SQL Server 2000 Ent
also at SP3.

It does seem that the W2K SP4 could be the cause of the problem and if
anyone has a solution to this issue I should be very grateful to know.

Regards

Clare Hilditch|||I had the same issue and resolved it by changing the connection type in DTS from the regular ODBC driver to IBM OLE DB Provider for DB2. Everything worked after that change.

Thursday, March 22, 2012

DTS DB2 Dates 0001-01-01

Hi,

I am trying to transfer a table from DB2 to SQLServer 2000 through a DTS package. The DB2 table contains fields with default dates of "0001-01-01". The DTS package errors out whenever it reads this date as "invalid data value". In SQLServer 2000, the date fields are of type ShortDateTime. I have searched the Internet but did not find a workable solution. Please, can anyone help me find a solution?

Older applications sometimes used dates like '9999-12-31' or '0001-01-01' to signify that the date was either NULL, invalid or not-entered. If DB2 is using that date as a valid point in time then the following would not work. However if it is a sentinal value used to represent NULL then you could transform such dates into NULL on-the-fly as you extract them from DB2; in pseudocode:

SELECT

NullIf(theDate, '0001-01-01') as theDate, <other fields>

FROM theTable

(You would need to find out the equivalent function for NullIf in DB2 parlance) This would have the effect of leaving all dates alone except for '0001-01-01' which would be translated to NULL, which would keep SSIS happy.

If you translated it to NULL then you would have to be careful that you did not break other business rules.

|||Thanks but I don't have any control over the creation of DB2 tables hence I was looking for DTS to do the trick. Can DTS handle this?|||In the source component of your DTS package, use the SELECT statement and conversion functions as detailed in my previous reply.|||

Thanks.

I am rather new to DTS and am trying to get an example of creating a package using vbscript. I have looked at Books on line but the examples are a little confusing for me right now. Do you by chance have any sample code that shows how to do something similar like this ?

Appreciate your help.

Wednesday, March 21, 2012

DTS data from MS SQL 2000 to DB2 7.1 on OS/390

I am trying to move data from SQL server table to a table in DB2 on
Z/os. I keep getting a message that the function is not supported. How
can I move data from sql server 2000 to db2 on os/390
could anybody please help ?

ThanksWell, if you're not set on DTS, then you could just unload the data
into a file, then use db2's load or import on that file.

Depending on your connectivity, you might need to move it up to the
mainframe to perform the load/import, and that'll require a conversion
to EBCDIC.

Having done it both ways, I *much* prefer using a set of utilities and
simple languages (ruby, python, etc) than DTS...

DTS -Copy tables

Hi
I have a DB2 database server.It has 2000+ tables...And I have a MS SQL database server.It has got the same tables.With same schema...
I want to take all of that tables datas to MS Sql database's tables...
I try to use DTS Import Data Wİzard but it gace an erro which is Unknown Error!!!

Now;
I try to make a DTS which is capable with doing this mission...
I want to create one DTC package and the source table and destination table names will be changed dynamically...Probably i should use ActiveX Task or Dynamic PropertTask...
Despite i have searched from net very much i couldnt find any helpfull article or sample for 3 days...I have also checked this one;
http://www.sqldts.com/default.aspx?246

But it hasnt helped me too..

I really wish thatsomebody can help me...
Thank u all

Osman AYHANpersonally...I would set up unloads from DB2...then ftp the files to the server, where I would have several jobs wake up and do bcp's or bulk inserts into the tables...after truncating them

Is there RI on the SQL server database?|||Hi brett

i dont know whatz unloads which is in DB2...
What do u mean while saying ftp files to server?Which server and which files?
Also for BCP's or Bulk inserts i need a traverse betwwen all tables to do this programatically...
And last question whatz RI?

Sorry...
I was thinking i am good at MS SQl
but after your questions i feel myself poor|||what version of DB2 and what platform?

Are you the DB2 DBA?

And are you planning on doing a full replacement of the Data from DB2?|||The Version Of the DB2 is V 8.1
And i am not DBA.I am only software engineer...
The main goal of this project is taking back up of the main ERP system which is running on DB2 to MS SQL Server...
I wrote code for this project but it runs so slowly.Becouse of DTS is one of the inner programmes of MS SQL it runs faster and faster than my programme.So I decided to use DTS.For the biggest table which contains 6million row of data it took the datas from DB2 to MS SQL in 43 minutes.And this is an already accepted time manner.
SO i think if i can write an ActiveX on DTS or whatever instead of creating 2000+ DTS package (I have nearly 2000+ table) i may write a complex DTS which will handle this..
SO this is the problem..ANd in my company here is not any MS SQl DBA or DB2 DBA...I try to handle all of this with myself...

Best Regards...

Osman AYHAN|||Brett at last i wrote an ActiveX code for getting all table names in the source database...
Do u have any idea to lighten my road;
how can i send this table names for processing at the workflow...
Probably there should be a connection for Datasource 1 for destination and a ActiveX script..
I want to pass values from ActiveX to Datasource...sql

Sunday, March 11, 2012

DTS and Co Question?

How can i copy data from one db1 table a to db2 table b?
1) all new data should be inserted
2) all other data should be updated
(ID's should be the same in both db-tables)
thx, mfg Daniel
How do you want to update the data?
If want to update just by TSQL then First run Execute SQL Task to update
the data and then as next step run transform data task it will append
the data.
Regards
Amish
*** Sent via Developersdex http://www.codecomments.com ***

DTS and Co Question?

How can i copy data from one db1 table a to db2 table b?
1) all new data should be inserted
2) all other data should be updated
(ID's should be the same in both db-tables)
thx, mfg DanielHow do you want to update the data?
If want to update just by TSQL then First run Execute SQL Task to update
the data and then as next step run transform data task it will append
the data.
Regards
Amish
*** Sent via Developersdex http://www.developersdex.com ***

DTS and Co Question?

How can i copy data from one db1 table a to DB2 table b?
1) all new data should be inserted
2) all other data should be updated
(ID's should be the same in both db-tables)
thx, mfg DanielHow do you want to update the data?
If want to update just by TSQL then First run Execute SQL Task to update
the data and then as next step run transform data task it will append
the data.
Regards
Amish
*** Sent via Developersdex http://www.codecomments.com ***

Sunday, February 26, 2012

DTS

Hello Group,
I would like to know if DTS can be used to migrate data
from db2 to sqlserver2000.
Any pointers would be great!!
Thanks for the help,
Chris.See if this helps -
http://databasejournal.com/features/mssql/article.php/1444051 I would also
check sqldts.com
Ray Higdon MCSE, MCDBA, CCNA
--
"chris" <chris@.nospam.com> wrote in message
news:2QGPb.5113$ro4.79@.nwrdny02.gnilink.net...
> Hello Group,
> I would like to know if DTS can be used to migrate data
> from db2 to sqlserver2000.
> Any pointers would be great!!
> Thanks for the help,
> Chris.
>

Friday, February 24, 2012

DTS

Hello Group,
I would like to know if DTS can be used to migrate data
from DB2 to sqlserver2000.
Any pointers would be great!!
Thanks for the help,
Chris.See if this helps -
http://databasejournal.com/features...cle.php/1444051 I would also
check sqldts.com
Ray Higdon MCSE, MCDBA, CCNA
--
"chris" <chris@.nospam.com> wrote in message
news:2QGPb.5113$ro4.79@.nwrdny02.gnilink.net...
quote:

> Hello Group,
> I would like to know if DTS can be used to migrate data
> from DB2 to sqlserver2000.
> Any pointers would be great!!
> Thanks for the help,
> Chris.
>

Tuesday, February 14, 2012

DSN's do not display in ODBC Data Source Administrator

I'm currently having to create a raft of DB2 connections in a
reasonable hurry. In addition, this list has to be propogated to three
other workstations (ultimate goal is to have DBArtisan access the
servers, instances and databases in an identical manner without having
to spend days doing this manually.)
I've figured out that the registry keys
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
and
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
allow me to specify the System DSN's so that they can be picked up by
the ODBC Data Source Administration application.
Unfortuantely, I think that there's a hidden limit in how much data
the tool can handle. Somewhere around 155 of the 219 DSN's, one row
gets chopped.
Instead of a line that reads
server.instance.database IBM DB2 ODBC DRIVER
I get variants such as the latest:
server.insta <rest of line is blank>
Looks like a classic buffer reaches max-size, burp and do nothing but
continue running.
BTW, this is only the tip of the iceberg, not only are there going to
be 200+ DB2 databases, but we're also looking at Sybase, MS SQLServer,
Informix, and Oracle, plus a few other antique clangers and
boat-anchors.
A follow-up question, would shortening the name of the ODBC server have any
impact? (eg, just DB2)
Thanks in advance...
BruceHi Bruce,
Just wanted to ask if you have already installed the ODBC drivers for
all the other databases i.e. Sybase, SQL Server, Informix and Oracle?
Regards,
Ashok Rautela
"Byrocat" <strikemaster2000@.yahoo.ca> wrote in message news:<CM50c.68204$ee3.635958@.news20.
bellglobal.com>...
> I'm currently having to create a raft of DB2 connections in a
> reasonable hurry. In addition, this list has to be propogated to three
> other workstations (ultimate goal is to have DBArtisan access the
> servers, instances and databases in an identical manner without having
> to spend days doing this manually.)
> I've figured out that the registry keys
> HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
> and
> HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
> allow me to specify the System DSN's so that they can be picked up by
> the ODBC Data Source Administration application.
> Unfortuantely, I think that there's a hidden limit in how much data
> the tool can handle. Somewhere around 155 of the 219 DSN's, one row
> gets chopped.
> Instead of a line that reads
> server.instance.database IBM DB2 ODBC DRIVER
> I get variants such as the latest:
> server.insta <rest of line is blank>
> Looks like a classic buffer reaches max-size, burp and do nothing but
> continue running.
> BTW, this is only the tip of the iceberg, not only are there going to
> be 200+ DB2 databases, but we're also looking at Sybase, MS SQLServer,
> Informix, and Oracle, plus a few other antique clangers and
> boat-anchors.
> A follow-up question, would shortening the name of the ODBC server have an
y
> impact? (eg, just DB2)
> Thanks in advance...
> Bruce|||arautela@.openlinksw.co.uk (Ashok Rautela) wrote in message news:<f5f56ae7.0403020312.44da8d
0a@.posting.google.com>...
> Hi Bruce,
> Just wanted to ask if you have already installed the ODBC drivers for
> all the other databases i.e. Sybase, SQL Server, Informix and Oracle?
> Regards,
> Ashok Rautela
>
I definitely have DB2, Sybase and SQLServer ODBC drivers installed.
I don't think that that is the problem. I've played with the list
entries (having created and recreated the list via the Registry), and
can get the cut-off point to change locations.
Defintiely points to the buffer being hard-coded.
Did have an interesting suggestion... Could the MS ODBC Administrator
make use of a registry entry to determine the maximum size of its
buffer and can this be changed?|||I remember a posting from someone at Microsoft that the
limitation is the combined length of the DSNs cannot exceed
4096 characters. So if you have DSN names that are all 409
characters long, you can only have 10 of those that will
display in the ODBC Data Source Administrator. If you create
more DSNs after this, they won't show up in the
Administrator applet but will be written to the registry and
will be available for use by applications.
-Sue
On 2 Mar 2004 09:07:38 -0800, bdealhoy@.sympatico.ca
(Byrocat) wrote:

>I definitely have DB2, Sybase and SQLServer ODBC drivers installed.
>I don't think that that is the problem. I've played with the list
>entries (having created and recreated the list via the Registry), and
>can get the cut-off point to change locations.
>Defintiely points to the buffer being hard-coded.
>Did have an interesting suggestion... Could the MS ODBC Administrator
>make use of a registry entry to determine the maximum size of its
>buffer and can this be changed?