I
use the SSMS SQL Server-Import/Export-Assistant to
export a table of an MSSQL Server to a local paradox bde file (.DB).
The Goal is to export the slected table columns to a bde file. I need the database in this format for a specific Software applcation that only accepts paradox databases.
I use the following Connection string acoording to my ODBC Driver Settings:
"Driver={Microsoft Paradox Driver (*.db )};driverid=538;defaultdir=c:\basytec\organisation\;dbq=c:\basytec\organisation\;collatingsequence=ASCII;readonly=false"
I simply use this SQL string to select the Input value:
"select [NumberFormatted] from dbo.TXQV_Tests where Status < 8 and ProductType = 'Cell' and LabFieldIdent = 27"
for the Export I use the create function as follows. this should create a .db file and fill in the in Import selected table:
"CREATE TABLE "Abfrage" ("NumberFormatted" AlphaNumeric(48)
The process doesn't work as expected. The created bde file is empty with existing headers but no content. This is the error Code in german: roughly translated: the operation Needs to use an updateable query.
-
Es wird kopiert in ""Abfrage"" (Error) Messages Fehler 0xc020844b: 1-Datenflusstask: Ausnahme beim Einfügen von Daten. Die vom Anbieter zurückgegebene Meldung lautet: ERROR [HY000] [Microsoft][ODBC Paradox Driver] Operation muss eine aktualisierbare
Abfrage verwenden. (SQL Server-Import/Export-Assistent) Fehler 0xc0047022: 1-Datenflusstask: SSIS-Fehlercode "DTS_E_PROCESSINPUTFAILED". Fehler bei der ProcessInput-Methode in der Komponente "Ziel - Abfrage" (19) mit dem Fehlercode 0xC020844B
beim Verarbeiten der Eingabe "Destination Input" (22). Die identifizierte Komponente hat einen Fehler von der ProcessInput-Methode zurückgegeben. Der Fehler ist komponentenspezifisch. Es handelt sich jedoch um einen schwerwiegenden Fehler, sodass
die Ausführung des Datenflusstasks unterbrochen wird. Möglicherweise wurden bereits Fehlermeldungen veröffentlicht, die weitere Fehlerinformationen beinhalten. (SQL Server-Import/Export-Assistent)
I know, that there is an index definition missing. But any Version of CONSTRAINT z PRIMARY KEY doesn't work such as:
CREATETABLE"Abfrage"("NumberFormatted" AlphaNumeric(48),PRIMARYKEY("NumerFormatted"))
This only brings up another error: the databasemodule can't find the index 'Index_6994414E_8E0F_44DF'
Fehler 0xc002f210: 1-SQL-Task "Vorbereitung": Fehler beim Ausführen der Abfrage "CREATE TABLE "Abfrage" ( "NumberFormatted" AlphaN...": "ERROR [42000] [Microsoft][ODBC Paradox Driver] Das Datenbankmodul kann 'Index_6994414E_8E0F_44DF'
nicht finden. Stellen Sie sicher, dass es sich um einen gültigen Parameter oder Alias-Namen handelt, der keine ungültigen Zeichen oder falsche Zeichensetzung enthält und dessen Name nicht zu lang ist.". Mögliche Ursachen sind folgende: Probleme bei der
Abfrage, nicht richtig festgelegte ResultSet-Eigenschaft, nicht richtig festgelegte Parameter oder nicht richtig hergestellte Verbindung.
Does anyone have an idea, how to deal with this problem?