DBConvert is one such tool I know. Any open source or any other product?
Open SQL Server Management Studio. Connect to an instance of the SQL Server Database Engine or localhost. Expand Databases, right-click a database (test in the example below), point to Tasks, and click Import Flat File above Import Data.
The quickest and easiest way to convert SQLite to MySQL is by exporting an SQL Database to a Dump File, and then importing the SQLite Dump into MySQL Database. You can export an SQLite Database to Dump File using the . dump command.
Generally, mobile devices store . db files in SQL database format. These are not meant to be opened and tinkered with, as they contain very important data. SQLite can be used to open these files.
You could try the SQLite Manager for Firefox add-on
It's got the ability to export your SQLite db to a .sql file which you could then run in SQL Server. Might not be perfect, but it is free.
For me it was n't that much complicated to convert in notepad++ by replacing:
number -> int
text -> [varchar] (1000)
GUID -> UNIQUEIDENTIFIER
Bool -> bit
autoincrement -> IDENTITY (1,1)
long -> int
double -> float
create table Delivery ( Id INT not null, primary key (Id) }
->
create table Delivery ( Id INT not null primary key clustered, -- primary key (Id) }
and at the end I checked constraints, pk, column type and size in a SQL diagram.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With