Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any tool to convert SQLite database to sql server? [closed]

DBConvert is one such tool I know. Any open source or any other product?

like image 983
Aseem Gautam Avatar asked Apr 07 '10 16:04

Aseem Gautam


People also ask

How do I open a .DB file in SQL Server?

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.

How do I switch from SQLite to MySQL?

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.

Can SQL open .DB files?

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.


2 Answers

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.

like image 101
Erikk Ross Avatar answered Sep 17 '22 00:09

Erikk Ross


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.

like image 35
Daniel B Avatar answered Sep 19 '22 00:09

Daniel B