B
Bamse
Hello all,
the job is the following:
given 2 databases I must recreate a table from one DB to another;
right now i'm using .getTableSchema, get a datatable with schema, loop
through all it's rows and build a "create table..." statement;
but the problems apear:
converting .NET types to sql types, column length mismatch (sql.text.16 ->
..Net.System.String.2147483647) which throws an exception.
Is there an elegant way of conversion?
Thank you,
Daniel
the job is the following:
given 2 databases I must recreate a table from one DB to another;
right now i'm using .getTableSchema, get a datatable with schema, loop
through all it's rows and build a "create table..." statement;
but the problems apear:
converting .NET types to sql types, column length mismatch (sql.text.16 ->
..Net.System.String.2147483647) which throws an exception.
Is there an elegant way of conversion?
Thank you,
Daniel