dbTalk Databases Forums  

Issue with date move from Sql 6.5 to Sql 2000 using bcp

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Issue with date move from Sql 6.5 to Sql 2000 using bcp in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM






just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #22  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM






just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #23  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #24  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #25  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #26  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #27  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #28  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Issue with date move from Sql 6.5 to Sql 2000 using bcp - 06-20-2008 , 05:38 PM



just55 (hvmallick (AT) gmail (DOT) com) writes:
Quote:
The table does not have any sysname datatype. I tried BCP from sql 6.5
to Sql 2000 with the native mode as you suggested, but got the
following error:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right
truncation
SQLState = 22001, NativeError = 0

I checked that both the source and target tables have the same
columns, datatypes and lengths.
Not sure here about the error.
Hm, it was many years ago since we upgraded our customers to SQL 6.5,
but I remember that we used native format, because we were hit by that
sysname thing I mentioned. So I don't really know what this may be due
to.

Ah, I know! It's a collation issue! We have had similar errors when we
bulk-copied between SQL 2005 machines with different collations.

In any case, I think you need to move to plan B:

Quote:
You suggested the second alternative for BCP 2000 to get the data from
SQL 6.5..
Would you please elaborate how this can be achieved..
You simply run BCP on the SQL 2000 machine against the 6.5 server. You
can try character format, or you can try native format. If you use
native format, use the format option of BCP to create a format file.
The format file will include a collation name, which should deal with
any collation issues.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.