<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SQLite2CE Wiki Rss Feed</title><link>http://sqlite2ce.codeplex.com/</link><description>SQLite2CE Wiki Rss Description</description><item><title>Updated Wiki: Documentation</title><link>http://sqlite2ce.codeplex.com/documentation?version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;[ Main documentation resides on the Microsoft Interop Team Windows Phone &lt;a href="http://windowsphone.interoperabilitybridges.com/articles/sqlite-to-sql-server-compact-converter"&gt;
app migration site&lt;/a&gt;]&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
&lt;strong&gt;Introduction&lt;/strong&gt; &lt;br&gt;
With the release of Windows Phone Mango and its new support for relational databases through Microsoft SQL Server Compact Edition (SQL CE) we decided to create a tool to aid developers in porting their mobile applications to Windows Phone from other platforms.
 Differences in data types between various database platforms can make the manual migration of your data a daunting and frustrating task. SQLite2CE is a tool developed to make this process simple by converting a SQLite database into SQL CE while simultaneously
 creating all the classes needed to easily incorporate the new database into your Windows Phone application.
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Prerequisites&lt;/strong&gt; &lt;br&gt;
In order for the SQLite2CECmd tool to function correctly you’ll need to have the following packages installed on your system prior to use:
&lt;br&gt;
• Microsoft .NET Framework 4.0, which comes with the Windows Phone SDK (http://create.msdn.com/en-us/home/getting_started )
&lt;br&gt;
• Microsoft SQL Server Compact 3.5 SP2 http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=5783
&lt;br&gt;
(Do not install SQL Server Compact 4.0) &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Description and Settings&lt;/strong&gt; &lt;br&gt;
Download the SQLite2CE package and extract the archive to a location on your system. Within the SQLite2CEBin directory you’ll find SQLite2CECmd.exe, this is the command-line tool for converting your SQLite database to SQL CE.
&lt;br&gt;
Open a command prompt and navigate to the directory you just extracted. Run SQLite2CECmd.exe and you’ll be presented with usage documentation as shown here:
&lt;br&gt;
&lt;br&gt;
Usage: &lt;br&gt;
SQLite2CECmd &lt;a href="/wikipage?title=--v&amp;referringTitle=Documentation"&gt;--v&lt;/a&gt; &lt;a href="/wikipage?title=--f&amp;referringTitle=Documentation"&gt;
--f&lt;/a&gt; &lt;a href="/wikipage?title=--sv&amp;referringTitle=Documentation"&gt;--sv&lt;/a&gt; &lt;a href="/wikipage?title=--st&amp;referringTitle=Documentation"&gt;
--st&lt;/a&gt; &lt;a href="/wikipage?title=--sd&amp;referringTitle=Documentation"&gt;--sd&lt;/a&gt; -i=&amp;lt;input db file&amp;gt; -o=&amp;lt;output db file&amp;gt;
&lt;a href="/wikipage?title=-r%3d%3creport%20file%3e&amp;referringTitle=Documentation"&gt;-r=&amp;lt;report file&amp;gt;&lt;/a&gt;
&lt;a href="/wikipage?title=-s%3d%3csettings%20file%3e&amp;referringTitle=Documentation"&gt;
-s=&amp;lt;settings file&amp;gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;
where &lt;br&gt;
--v: Produce verbose output report &lt;br&gt;
--f: Overwrite output database if it already exists &lt;br&gt;
--sv: skip views i.e. do not convert any views that may exist in the database &lt;br&gt;
--st: skip triggers i.e. do not convert any triggers that may exist in the database
&lt;br&gt;
--sd: skip data i.e. do not convert any data that may exist in the database &lt;br&gt;
-i: full path to input database file (SQLite database) &lt;br&gt;
-o: full path to output database file (SQL CE database) &lt;br&gt;
-r: full path to output report file &lt;br&gt;
-s: full path to input settings &lt;br&gt;
Only the -i and -o parameters are mandatory. Rest of the parameters are optional.
&lt;br&gt;
e.g. SQLite2CECmd --f -i=c:\test\test.sqlite -o=c:\test\test.sdf &lt;br&gt;
&lt;br&gt;
As described above, operation of the tool is simple in that all it requires is a path to the original SQLite database and a path in which to create the new SQL CE database. However, you have the option of being more involved in how your database migrates various
 data types and the level of detail returned during the migration process. &lt;br&gt;
Within the SQLite2CEBin directory there exists a file named “settings.xml” that can be altered to indicate how certain SQLite data types are mapped in SQL CE. Opening this settings file will reveal default values which are a limit on the maximum number of NChar
 characters (500), a mapping from integer (SQLite) to bigint (SQL CE), and a default data type mapping of image (SQL CE) if no other mapping is deemed appropriate by the tool. These three settings are user configurable should your database require mapping other
 than the recommended default. To use alternate settings, make the changes within the settings.xml file and then, when running the tool, specify the path to your altered settings file using the –s flag.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KNOWN ISSUES:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. &lt;a href="http://sqlite2ce.codeplex.com/workitem/11634"&gt;From Issue 11634&lt;/a&gt; It is known that conversion of database with a composite key with nullable column may fail.
&lt;/p&gt;
&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SQLite DLL identifies such a column in a composite key as not null. This is related to
&lt;a href="http://www.sqlite.org/faq.html#q26"&gt;different interpretations&lt;/a&gt; for UNIQUE constraint for nullable columns in SQLite and Microsoft SQL server.&amp;#160;
&lt;/p&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>abub</author><pubDate>Sat, 25 Feb 2012 02:56:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20120225025650A</guid></item><item><title>Updated Wiki: Home</title><link>http://sqlite2ce.codeplex.com/wikipage?version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;&lt;strong&gt;Greetings from the Interop Team at Microsoft!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With the release of Windows Phone Mango and its new support for relational databases through SQL CE 3.5.2 (Microsoft SQL Server Compact Edition) we decided to create a tool to aid developers in porting their mobile applications to Windows Phone from other
 platforms. &lt;strong&gt;Presenting two usefull tools for your Mobile DB migration needs:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1- SQLite2CE &lt;/strong&gt;is a tool that converts a SQLite database into SQL CE while simultaneously creating the default data represtnation classes needed to easily incorporate the new database into your Windows Phone application. The tool migrates
 the Schema, Table Data, and Views ( but not triggers). The tool handles the differences in data types and does an appropiate mgiration that is configurable in the settings.xml.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2- SQLiteQuery2LINQ &lt;/strong&gt;a utility tool designed to aid developers in converting their SQL queries to LINQ while simultaneously helping them to learn the new query language. Simply connect to you SQLIte DB, enter your SQLLite SQL statements and
 get fully functional LINQ code snippets that doe sthe same!&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the documentation for this project, hosted at the interop's team App Migration section for iPohone and Android developers&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://windowsphone.interoperabilitybridges.com/articles/sqlite2ce-install-setup-guide"&gt;Installation&amp;amp; Set-up&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://windowsphone.interoperabilitybridges.com/articles/sqlite2ce-migration-example"&gt;How to use the Converter, with a simple sample database and application&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://windowsphone.interoperabilitybridges.com/articles/sql-to-linq-converter"&gt;How to use the SQL to LINQ Converter&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>abub</author><pubDate>Mon, 10 Oct 2011 17:25:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20111010052557P</guid></item></channel></rss>