Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
Here is a file to write the content of a QVD into an MS SQL database with minimum amount of coding.
The script uses bulk insert function in SQL and inserts 1,000 rows at a time.
(A few changes on the Qlik side, please refer to the Help File here for server configuration or here in a discussion post.)
There are instructions/assumptions in the front-end of the app.
Tentative stats are: (a) Writes 1,000 rows (one insert) every 1.63 seconds for a table 7 columns deep; (b) Writes 45,637 rows in 58 seconds for a table 10 columns deep.
Hope you find this useful.
A video tutorial here: Qlik Bulk INSERT into SQL table - YouTube
Have fun,
C ;o)
Good work !
Cheerio. Hope it helps. Of course, in general, I wouldn't suggest using Qlik to write to database as many things can potentially go wrong, but amm hoping the 'cleanse' of special characters within the data will take care of that.
Have fun.
Great post!
The script is great and it worked as a charm for me. Thanks for your help!
does this work in qlikview server?
Hola,
Cuando lo ejecuto me da un error.
Connector reply error: ErrorSource: Microsoft OLE DB Provider for ODBC Drivers, ErrorMsg: [MySQL][ODBC 5.3(w) Driver][mysqld-5.7.12]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
Sabeis porque me puede pasar?
Gracias