Hello All,
I am using DEWizard.dll in my Existing Application for export data from MS SQL Server 2005.
I have used the dll version 3.6.1.3 and read the API Referance pdf and Try to export the data from MS SQL server 2005. But I have got the error that is
"Cannot get list of fields for table Error: SQLConnect Failed: IM002 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified."
I am used the following Code for the Export data.
DEWizardX1.ParseConnection = False
DEWizardX1.OperationType = otExport
'DEWizardX1.SourceConnectionEnabled = False
'DEWizardX1.TargetConnectionEnabled = False
'DEWizardX1.ShowSqlAfterPage = False
'DEWizardX1.ShowSqlBeforePage = False
DEWizardX1.ExportFileDelimeter = gDelimeter
DEWizardX1.ExportFileQualifier = gTextQualifier
With DEWizardX1
.ExportSourceType = dtSqlServer
.ExportSourceServerName = gServername
.ExportSourceDatabase = gDatabase
.ExportSourceUserName = gUserName
.ExportSourcePassword = gPassword
.ExportSourceTables = gTable
' .LoadFromFile (App.Path & "\myscript.txt")
.SqlBefore = "Select * from tblinvoice " & vbCrLf "go"
.SqlAfter = ""
.ExportDirectory = App.Path
.ExportFile = App.Path & "\myscript.txt"
.Execute
End With
But not export the data and GIve the Error which is written on the above.
Please Give me the step to export using the code. so i can used in my application.
Thanks