Hi
What's the best way to do something like this:
I have a database that I can access via ODBC, and want to copy all tables and all the data into SQL Server. DTS fails on many of the tables - I get "error in caching".
I was able to write a VB app that cycles through all tables in the ODBC database, and builds a copy of them in SQL (using ADO and DAO). So, the empty tables are there, but am not sure how to import the data.
I had to change the names of the tables slightly when I built them in SQL Server. Also, I had to make all fields nullable to prevent errors of nulls going into "no-nulls" fields.
Now, I would like to build a Stored Procedure type of thing to populate these tables... But am not sure how to go about this.
There are several hundred tables, so I'd like to automate it as much as possible... say for each table, put the value of each field into the same-named field in the SQL table.
Any suggestions?
Thank You
What's the best way to do something like this:
I have a database that I can access via ODBC, and want to copy all tables and all the data into SQL Server. DTS fails on many of the tables - I get "error in caching".
I was able to write a VB app that cycles through all tables in the ODBC database, and builds a copy of them in SQL (using ADO and DAO). So, the empty tables are there, but am not sure how to import the data.
I had to change the names of the tables slightly when I built them in SQL Server. Also, I had to make all fields nullable to prevent errors of nulls going into "no-nulls" fields.
Now, I would like to build a Stored Procedure type of thing to populate these tables... But am not sure how to go about this.
There are several hundred tables, so I'd like to automate it as much as possible... say for each table, put the value of each field into the same-named field in the SQL table.
Any suggestions?
Thank You