Is there a tool to migrate an SQLite database to SQL Server (both the structure and data)?
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- NOT DISTINCT query in mySQL
相关文章
- SQLite不能创建表
- 小型数据库(SQLite,Derby,H2)可以存储多少数据?
- sqlite char数据类型 长度问题
- Entity Framework 4.3.1 failing to create (/open) a
- Code for inserting data into SQL Server database u
- Sqlite: How do I reset all database tables?
- Connection pooling vs persist connection mysqli
- Delete Every Alternate Row in SQL
I know that this is old thread, but I think that this solution should be also here.
Then in SQL Server run under sysadmin
Then you can run your queries as normal user e.g.
or you can use something like this for larger tables.
A idea is do some thing like this: - View squema in sql lite and get the CREATE TABLE command. - Execute, parsing sql, in SQL SERVER - Travel data creating a INSERT statment for each row. (parsing sql too)
This code is beta, because no detect type data, and no use @parameter and command object, but run.
(You need insert reference and install System.Data.SQLite;)
c#: Insert this code (or neccesari) in head cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.SQLite;
using System.Threading;
using System.Text.RegularExpressions;
using System.IO;
using log4net;
using System.Net;
The SQLite
.dump
command will output the entire contents of the database as an ASCII text file. This file is in standard SQL format, so it can be imported into any SQL database. More details on this page: sqlite3sqlite-manager, firefox add-on: allows you to export an SQLite database in a SQL script.
Data Base>Export Database>Export to file
(Correction firefox 35 bugg obliged to correct the extension code as indicate to the following web page: How to fix your optional sqlite manager module to work)
Command line :
exports the sqlite database in a SQL script.
From url : http://doc.ubuntu-fr.org/sqlite.
SQLite does have a .dump option to run at the command line. Though I prefer to use the SQLite Database Browser application for managing SQLite databases. You can export the structure and contents to a .sql file that can be read by just about anything. File > Export > Database to SQL file.
For Android.