14

I have a database with more than 32 million records, I have to migrate it from SQL Server to Sqlite.

I have tried SSIS (SQL Server Integration Services) with the help of this article http://dbauman.blogspot.com/2009/03/connecting-to-sqlite-through-ssis.html

but the process is very very slow, how can I migrate this data?

4
  • How much time does it take for you to dump the data into Sqlite using SSIS ? By enhancing the performance of DFT ,you can some how increase the speed Commented Jun 9, 2012 at 11:17
  • 1
    In the article ODBC is used, which usually is a poor choice if you have performance in mind; it just adds another abstraction layer. I found SQLite to be quite fast (I don't have any statistics at hand) when executing loads of prepared INSERT commands within a transaction, I never worked with SSIS unfortunately. Commented Jun 9, 2012 at 11:23
  • 10000 records takes mote than 30 minutes Commented Jun 9, 2012 at 11:29
  • 2
    Just give a try :-If you have indexes in your sqlite table then try to drop them and load the data and then rebuilt it again Commented Jun 9, 2012 at 11:36

2 Answers 2

21

There is a C# utility to automatically do conversion from a SQL Server DB to a SQLite DB by liron.

Here is the code project article.

Sign up to request clarification or add additional context in comments.

Comments

1

I suggest to use transactions in SQLite, else the Indices are built with every new record added, not when one block of work is done.

As i don't know about the structure of your data, it is hard to give concrete advice, but writing a small application that can read from SQLServer and write to SQLite is often a practical start for migration. With the bonus of having a full wrapper after migration, which you can use in future.

1 Comment

As @Damith mentioned the solution in this article: codeproject.com/Articles/26932/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.