Taylor
2009-10-13 11:52:18 UTC
I got two questions. Thanks in advance.
1. Is there any SQL that can list the tables'name and size in a
database? It's impossible to use sp_spaceused on each table since
there are two many tables.
2. I used ASE12.5.3 bcp out a table's data and tried to use
ASE15.0.3's bcp to bcp into ASE15.0.3 table and got following error.
Starting copy...
CSLIB Message: - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/
operation was stopped due to a syntax error in the source field.
CSLIB Message: - L0/O0/S0/N36/1/0:
cs_convert: cslib user api layer: common library error: The result is
truncated because the conversion/operation resulted in overflow.
CSLIB Message: - L0/O0/S0/N24/1/0:
But I used a tool to convert the data in the table to insert sql
statements and it runned successfully on the target database. What's
the reason of this bcp failure? Any difference between the two
versions?
Thanks again for your advice.
1. Is there any SQL that can list the tables'name and size in a
database? It's impossible to use sp_spaceused on each table since
there are two many tables.
2. I used ASE12.5.3 bcp out a table's data and tried to use
ASE15.0.3's bcp to bcp into ASE15.0.3 table and got following error.
Starting copy...
CSLIB Message: - L0/O0/S0/N24/1/0:
cs_convert: cslib user api layer: common library error: The conversion/
operation was stopped due to a syntax error in the source field.
CSLIB Message: - L0/O0/S0/N36/1/0:
cs_convert: cslib user api layer: common library error: The result is
truncated because the conversion/operation resulted in overflow.
CSLIB Message: - L0/O0/S0/N24/1/0:
But I used a tool to convert the data in the table to insert sql
statements and it runned successfully on the target database. What's
the reason of this bcp failure? Any difference between the two
versions?
Thanks again for your advice.