convert sql-server *.mdf file into sqlite file - sqlite

Just wondering if it is possible to convert sql-server *.mdf file into sqlite file ?

There's a C# utility to automatically do the conversion from SQL Server DB to SQLite DB on CodeProject

DBConvert for SQLite and MS SQL is a dependable bi-directional database converter which enables you to migrate data from SQLite to MS SQL server and from MS SQL to SQLite. DBConvert features: Unicode Support, Primary keys and Indexes conversion, Interactive multilingual (GUI) mode/command line mode, preverification of possible conversion errors, the ability to use MS SQL Dump if you don't have a direct access to MS SQL server, etc.
http://www.itshareware.com/prodview-code_65203--download-dbconvert-for-sqlite-and-mssql.htm
Couldnt find a free one for you!

Related

SQL MDF (extension file) to MariaDB - How to migrate SQL MDF File to MariaDB

I am having issues with MariaDB and cannot find resources on how to open a .MDF file (Contains SQL DB Data, correct me if I'm wrong) using MariaDB. I have found some third-party software such as https://www.rebasedata.com/convert-mdf-to-mariadb-online which converted the file, but you have to pay for the entire migration of data. I have also read the documentation for MariaDB and it seems to only support .CSV files, schemas aren't' supported in MariaDB, and alternate is doing a dump (not sure if this will work). I'm highly new with to SQL and MariaDB with practically no knowledge so please don't scold me, thanks!

a file-base FoxPro Database in asp.net issues

I have a collection of data stored in a FoxPro database in my local system . I want to use this data in my website . now I don't know what is the best way to use it .
1- to place the database itself in app_data and use VFP Oledb provider to extract data from ?
2- Or to use it as a linked server with my current sql server ?
3- or create a page that uploads VFP database then export it's records to a sql server database with the same schema ?
I can't answer these questions because :
I don't know how secure and scalable is a database placed in app_data /
is FoxPro database a good choice as a website backend data store /
exporting data from VPF to Sql database through code is not error proof ( I'm not sure if I lose records and FKs )
how often the data change? Do you need it real time? If yes, give it a try with linked servers:
http://support.microsoft.com/kb/199131
If you can have a X hours\minutes delay (that will depend on the size of your data), how about building SSIS packages to run on a regular basis to get the data from FoxPro and insert into a SQl Server database?
Visual FoxPro also has an upsizing wizard that will do the heavy lifting of converting your Visual Foxpro database to SQL Server including the table structures and data.

How to backup/store between sqlite memory database and file database in Qt?

What's the easiest way to backup/restore sqlite memory database to file database in Qt.
I think you will need to work with SQLite directly to do this. SQLite has an Online Backup API, the first example is backing up an in-memory database to a file database, so it should be possible to do what you need to do.
To get a sqlite3* database handle, get the driver (QSqlDatabase::driver) from the database then get the handle (QSqlDriver::handle). The example code in the Qt docs shows how to cast the QVariant into a sqlite3* handle.

How to map a SQLite database to another?

I need to export the data of a SQLite database and import this data to another SQLite database. But the two databases have different schemas.
Does exist an open source tool that can help me doing that job?
The only opensource tool that i know is opendbcopy that i'm using for migrate from a database server to another and also for a similar kind of job that you want to do with SQLite but i've done it with PostgreSQL.
However opendbcopy is JDBC compliant and can connect to every database that have a JDBC driver, so you can try, also if the schema is not the same you can use the column mapping feature :
In addition i know also a good commercial alternative (that is easier to use) that is ESF Database Migration Toolkit .

Exporting MS SQL Schema and Data

I'm used to MySQL and PHPMyAdmin - I had to switch over to MSSQL for an ASP.net project, and I'm having tons of trouble. I'm using the express version of SQL 2008, with SQL Server Management Studio. The following are 2 questions I've been struggling with for a while:
1) How do I export the DB schema for the database? The table structure, etc.?
2) How do I export all the data in the database?
Ideally I'd like to have a .sql file that can be run wherever I need the schema or data duplicated, for example a co-worker's computer for a shared project, or online when the project is being hosted.
Thanks!
1) How do I export the DB schema for the database? The table structure, etc.?
INFORMATION_SCHEMA is your friend
SELECT * FROM INFORMATION_SCHEMA.TABLES
http://www.mssqltips.com/tutorial.asp?tutorial=179
http://weblogs.asp.net/jgalloway/archive/2006/07/07/455797.aspx
http://preetul.wordpress.com/2009/06/09/sql-server-information_schema/
Otherwise, if you want something pretty looking, download the 14 day trial of SQL Doc (part of SQL Toolbelt) here:
http://www.red-gate.com/products/SQL_Professional_Toolbelt/index.htm
"2) How do I export all the data in the database?"
In what form? .bak files are typically the most useful. http://www.sqlteam.com/article/backup-and-restore-in-sql-server-full-backups
Or were you looking to move the data into MYSQL or Excel or some other program? If you want to move data to MYSQL check here: http://www.google.com/search?q=mssql+to+mysql

Resources