Create destination table automatically when using the SQL SERVER 2008 R2 Import and Export Data (64-bit) program

Hi all.

I want to be able to create destination table automatically when using the SQL SERVER 2008 R2 Import and Export Data (64-bit) program. When I go through the wizard and get to the "Select Source Tables and Views" window it I select the "Source" table and it automatically populates the "Destination" table with the same name. This is good, because I haven't created the destination table yet. But when I click the Next button it gives me an error:

"Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."

In SQL Server 2000 I used to be able to create the table in the same wizard when copying. How can I do this now?

Thank you in advance.
printmediaAsked:
Who is Participating?
 
printmediaAuthor Commented:
I figured out the problem, it is with our ERP software ODBC driver. It does not return the fully qualified column name (i.e. [dbo].[TableName]). I have to write a SQL query to import the data instead.

Thank you anyways.
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
After choosing the source and destination table click on Edit Mappings... button an verify if all source columns has a correct destination column.
0
 
printmediaAuthor Commented:
Thank you for your reply.

When I click the "Edit Mappings..." button I get the error:

Column information for the source and destination data could not be retrieved.
"myTable" -> [dbo.].[myTable]:
- Index was outside the bounds of the array.

Additional Information: Index was outside the bounds of the array. (Microsoft.DataTransformationServices.Controls)

FYI: The source is a DSN "data source: .Net Framework Data Provider for Odbc." to our ERP software.
0
 
printmediaAuthor Commented:
Figured it out on my own.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.