I am trying to insert records in a SQL table from Excel sheet with VBA code.
Data contains of a range with all the rows to be inserted.
I am using below code for the same.
Insert INTO [odbc;Driver={SQL Server};Server=myserver;Database=mydb;Uid=abc;PWD=abc].DPR Select * FROM [TempRange]
I am getting error as above.
Various columns in data range is exactly as per the sql table col names.
I am using Excel 2007 with SQL2012.
Kindly help to resolve this error.
Regards,
Madiya