SQL Server Compact/SQLite Toolbox

VSIP Partner Free

SQL Server Compact/SQLite Toolbox add-in for Visual Studio. This add-in adds several features to help your embedded database development efforts: Scripting of tables and data, import from SQL Server and CSV files and much, much more.

(117) Review
Visual Studio
2015, 2013, 2012, 2010
Download (399,653)
5/30/2015
4.2.0.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (117)
Q and A (75)
Sign in to write a review
Sort by:

by engenious | June 18 2015

Thank you so much for that great toolbox.

by RandyTheBear | June 18 2015

This toolbox is great! When I got tasked with creating an embedded
database for a tablet app using SQL Compact, I had never done it before.
This toolbox and Erik's blog made it simple. I recommend it to everyone.
I have used it on several applications since then.

by port_al | June 03 2015

Great and professional tool!
Looks and works like native VS toolboxes.
That was like life saving when i found it because at the moment i was nervously thinking of what to do in order to develop and maintain SQLite database under Windows Runtime platform on Windows Phone 8.1.
Other tools i tried are not comparable. I might not try them that many but as soon as you find this one you don't want to be searching for a tool further.
Thank you very much!

by Can Altunöz | May 17 2015

Its very powerfull tool for SQLCE. Simple and easy to use. Tyvm for a great work

by Hammer510 | May 12 2015

You read my mind in regards to what SQLite in Visual Studio was missing. Thank you so much for your effort!

ErikEJ May 12 2015
| Edit |
Delete

Thanks,Hammer. Let me know if you miss anything or Things don't work as expected :-)

by Hfzusama | April 27 2015

It is extremely excellent tool for databases such as sqlite which is very difficult for me but with this tool I can easily create and use my sqlite database in my projects. I am very thankful to you for this tool

by RaymondChan95032 | April 23 2015

I have used the SqlCe35Toolbox.exe and SqlCeCmd.exe from Mr Jensen to analyze/dump Windows Mobile SDF database files. The tools are easier to use and very helpful. Mr Jensen is also very quick to respond to my questions and issues. Highly recommended !

by Vladimír Klaus | April 22 2015

I use this excelent tool several years. It helps me a lot - for example when Webmatrix had broken DB functionality.
Now I use it inside VS 2013 and it is still beter and better. Especially new function for connection renaming is fantastic since I have more the 15 databases with the same filename Data.sdf.

by Bill Drago | April 17 2015

This is an excellent tool for working with SQLite and Visual Studio. It's one of those things that you once you start using it, you don't know how you lived without it.

by AshRoller | April 16 2015

Very useful, thanks

by efhilton | April 13 2015

Beautifully written. Extremely useful. Thank you!

by Benoit P | April 09 2015

A great and necessary tool for VS2013 users, simple yet powerful. Thank you very much for all your work. Benoit

by SandroR | April 09 2015

This tool is an ESSENTIAL part of Visual Studio since Microsoft
removed from Sql management Studio the support of SqlCE.
Its value is unbelievable and we have only to thank Erik for his remarkable job.
Thank you!

by Matthias Dieter Wallnöfer | April 03 2015

by RandomlyKnighted2 | March 16 2015

This is a fantastic extension. This has helped me several times in the past with migrating databases and with the added ability to migrate SQLite databases I can now do so much more with it. This extension also has the added benefit of being created by the very dedicated ErikEJ who is willing to work with his users to figure out any problem they may be having and to extend the extensions functionality to its full potential.

ErikEJ March 31 2015
| Edit |
Delete

Thanks, and thanks for your help with SQLite => SQL Server export

by Tonazzi-M | March 10 2015

This is the best tool for working with SQLite and SQL Compact databases.
Very quick responses from the helpful developer, many thanks for you great work Erik!

ErikEJ March 10 2015
| Edit |
Delete

Thanks, and thanks for your debugging help!

by Jc1984 | March 07 2015

Hello to everyone, there is a way to change de result set as grid, I appreciate your help...

Thanks...

ErikEJ March 08 2015
| Edit |
Delete

Of course, just go into options and enable result set a grid!

by tmksoft | March 05 2015

Really nice tool.

I use it for editing the database in my Umbraco installations.

by oeduran88 | February 26 2015

Thank you very much for such useful tool. It helped me do some things I wasn't able in Webmatrix.

by Yatajga | February 20 2015

1 - 20 of 117 Items   
Sign in to start a discussion


  • Entity Framework class generation missing tables
    5 Posts | Last post March 05, 2015
    • Greate work on the sql ce toolbox! It's has proven to be very useful. I recently used the "Add Entity Model to the current project" which seems to have generated all the classes associated with the database but it seems to have overlooked two tables. DO you know of any conditions that might cause that to happen?
    • I did notice that the db version is (4.0.8482.1) while the version installed with NuGet is (4.0.8876.1). Do you think the conflict might be there?
    • Thanks for the kind Words, feel free to post a review here! The version installed with the EntityFramework.SqlServerCompact package is 4.0 SP1, and you should also install that in GAC. The reason why some tables are not generated would be that they do not have any primary key. 
    • Erik, I installed the tools and on installation i accidently closes the liscence agreement dialog.  Now I cannot reinstall or find in add in manager in visual studio 2013.  Is this handled.  Will I have to Sysrestore?
      
    • Trickbox: pls provide more details using the codeplex issue tracker
  • Antivirus Scan on virustotal
    9 Posts | Last post February 17, 2015
    • Hello there,
      
      a scan of the ZIP file on virustotal showed me three virus hints:
      
      DrWeb:                 Trojan.SteamBurglar.793  
      NANO-Antivirus:        Trojan.Win32.Bladabindi.dbqyyh  
      TrendMicro-HouseCall:  Suspicious_GEN.F47V0204  
      
      Is there any explanation for these warnings?
      
      Thank you & Greetings
      
    • What zip file? And what is virustotal? MS is hosting this file, and would most likely let me know of any issues
    • I think he means the downloadable vsix-file from https://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9-6e74d369f7a1/file/29445/72/SqlCeToolbox.vsix
      
      Please take a look at: https://www.virustotal.com/de/file/a55bfdfdb05ffba7ce30115d7f8b0fa304875bfad653df88b241f800aa22e3b1/analysis/1423666820/
      
      A week ago the scanner found 2 infections, today 3...
    • That is odd, since the file was uploaded to Microsoft on Jan 12. And all other virus scanners seem to not detect anything.
    • If people haven't figured it out already, VirusTotal is a handy website that allows you to upload a file and have it scanned by a multitude of anti-virus engines.
      
      False positives aren't unusual, and a detection ratio of 3/57 is generally pretty safe. Though, usually with false positives, it will be detected as Generic / Suspicious, like TrendMicro-Housecall's detection, so it's a little concerning that DrWeb and NANO detect it specifically as 'Steam Burglar' / keylogger.
      Old scan of an older version detected as keylogger: https://www.virustotal.com/en/file/a8aa7d9391bdc0c2a43c57d6ced6bb72d99364fabf07a0e9fb213b19e2ca6125/analysis/
      
      But, as mentioned, 3/57 is quite low, and aside from Trend, which I don't put a lot of trust in, I've personally never heard of DrWeb or NANO-Antivirus. A quick google search found results reporting that NANO-Antivirus was actually scareware, though I doubt VirusTotal would use it if that was the case.
      
      Ultimately, people will just need to make their own judgement calls.
      I suppose you could try rebuilding the vsix file, testing on virustotal, and re-uploading / updating the download if it passes.
    • Lol...
      I created this account years ago, and apparently wasn't in the mood to provide personal information.
      I'm going to have to see if I can change my name...
    • Hi Erik,
      
      the scanner DrWeb identifies the DLL System.Data.SQLite.dll as threat. After downloading the nuget package with the same dll version from https://www.nuget.org/api/v2/package/System.Data.SQLite.x86/1.0.94.1 linked from https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki, I checked the dll of that package again with virustotal: https://www.virustotal.com/de/file/da1ac4c57e70cf55a79e7932c3e0487baffca7331f006dfd51597337fb1fa150/analysis/1423822619/
      
      Now DrWeb did not found any threats. But the dlls are slightly different, though both have the same version (1.0.94.0)? Both the size and the content of the dll's are different. Maybe you can explain the difference? 
      
      Would you mind to check this and if necessary replace the affected dll?
      Thx!
    • I am using this one (as I need the .NET 4.0 compatible file): sqlite-netFx40-static-binary-bundle-Win32-2010-1.0.94.0.zip - And the file in this is exactly the same as in the visx, I also did a virustotal analysis, which resulted in no viruses found: https://www.virustotal.com/da/file/fcc7e33dfd62572451fe54b99649daafdb96e674dc65a524495e540c6705303e/analysis/1423912657/ - not sure what other actions to take!
    • Hello Erik,
      
      thx for your feedback!
      Obviously one of the scanner updated its virus definition files. A few days before DrWeb found a trojaner: https://www.virustotal.com/de/file/fcc7e33dfd62572451fe54b99649daafdb96e674dc65a524495e540c6705303e/analysis/1423818824/
      In the meantime: https://www.virustotal.com/de/file/fcc7e33dfd62572451fe54b99649daafdb96e674dc65a524495e540c6705303e/analysis/1424185573/
      
      NANO and TrendMicro still found issues. But the download version of the "online scanner" found at http://housecall.trendmicro.com/de/ didn't found issues! Maybe the scanner engine at virustotal is working with older definition files!
      
      NANO's online scanner is out of service at the moment.
      
      I realized that there is a new version in the pipeline: https://www.virustotal.com/de/file/333c72871bb659efec017c9ee86e1b6766c2291fd353650d4415a7967e046889/analysis/
      
      I checked both packages. Only two files seems to be different:
      SqlCeToolbox.dll & SQLiteScripting.dll
      Scan of newer SQLiteScripting.dll: https://www.virustotal.com/de/file/096c1f3f6f0624241dfe7443d57d03cad4a08b220acf2c61a5a01fb4d7d36a2b/analysis/1424188702/
      
      Seems to me the problem is going to solve it on its own :-P
      
      
  • DDEX provider still not working
    4 Posts | Last post February 07, 2015
    • Hi Erik,
      you did a great job with this plugin. I have SQL CE 4.0 db and using EF 5. I need to add a new entity to the model but when I run "Generate Database from model" I get the error DDEX provider not installed for SQL CE 4.0...
      I am using Visual Studio 2013.
      
      Thanks in advance
      Armando
    • Did you connect to the database file via the Toolbox? Does it appear in Server Explorer? Try to re-install the ddex provider in the about dialog, restart vs, and check status in about dialog.
    • Thanks Erik,
      it works fine now.
    • Dear Mr.ErikEJ
      thanks for your replay,
      after searching I find that the issue is that my SQLite database not having primary Key"Only FK"
      that is why the sql server will not accepting tho run the script.
      with best regard
  • Cannot choose Server Compact 3.5
    5 Posts | Last post February 07, 2015
    • I have a problem with creating a Server Compact 3.5 connection, which I need for a database for Windows Phone 8.1 . Is this a general problem, or is it me who is missing something ?
    • You are missing the 3.5 runtime, see this: http://sqlcetoolbox.codeplex.com/wikipage?title=Known%20Issues&referringTitle=Documentation
    • Thanks. Now I can make a 3.5 connection.. But it gives me an error when I try to "Add Windows Phone DataContext To Current Project". It says:
      
      - SQL Server Compact/SQLite Toolbox
      - The selected project type does not support Windows Phone 7.1/8.0 - wrong TargetFrameworkMoniker: .NETCore, Version=v4.5.1
      
      And it says this right after I click that button - I dont even get to enter the namespace, or anything.
    • You are crating a Windows Phone 8.1 project, and that project type does not support SQL CE, you must create a Windows Phone 68 Silverlight project for SQL CE support, or use SQLite
    • Dear Mr.ErikEJ
      thanks for your replay,
      after searching I find that the issue is that my SQLite database not having primary Key"Only FK"
      that is why the sql server will not accepting tho run the script.
      with best regard
       
  • Can I export the SQLite Schema to SQL Server
    3 Posts | Last post February 06, 2015
    • I can script as but the file generated is not working "due to FK" in Sql server
      
    • I have a database in Sqlite ...
      But I want to migrate to Sql server..
      I migrate the tables,data but I need to migrate the Key because I have 100 table.. So it is hard to reconnect and script again..
      
      regards 
    • Suggest you create an issue on the codeplex issue tracker, and attach the database and script, then I can have a look at it.
  • Basic Usage in windows phone 8.1 using vs2013
    2 Posts | Last post January 14, 2015
    • I was wondering how this works for windows phone 8.1? I need SQL application code to be called from a dll file in my windows phone 8.1 application. I have not used linq to sql before but have used SQLCE directly in a windows 7 application. How difficult would it be to extract data from it using linq? 
    • No entirely sure what you are asking, but yes: http://erikej.blogspot.dk/2013/04/generate-windows-phone-8-local-database.html (Must be SilverLight app) - WinRT (8.1) apps only support SQLite, not SQLCE
  • This extension is not installable on any currently installed products.
    2 Posts | Last post January 11, 2015
    • Downloaded the SqlCeToolbox.vsix which is marked with a Type of Microsoft Visual Studio Extension in Windows Explorer. When I doubleclick the file I get an error, shown above in the title, from the VSIX installer. Tried to search for the Add-In using the Extensions and Updates manager (Online) in Visual Studio but I was unable to find it.
      
      I'm wondering if it's because I'm using Microsoft Visual Studio Express 2013 for Windows Desktop. Any thoughts?
      
      Thank you!
    • You are right, VS Express does not allow any extensions to be installed. But the good news are, that a full featured free edition is now available, VS 2013 Community Edition http://www.visualstudio.com/products/visual-studio-community-vs 
  • Saving script
    7 Posts | Last post November 30, 2014
    • It is already version 4, and when I want to save changes in my script, the Toolbox still opens Save File dialog, where I point to the same file and confirm overwriting. Very annoying...
    • Yes, I know this already - one 1 vote though https://sqlcetoolbox.codeplex.com/workitem/10521 - do you feel like contributing a fix?
    • Shouldn't it be the "obvious thing" from the start?
      - "Hey, you don't have a "Open Project" menu item in File menu!"
      - "Oh, guys, never mind! It will appear after 10 years, and for now you have to do all your work without saving!"
    • As you can see from the single vote for this, and from the feedback I have heard, not many users consider it an issue, but please vote and feel free to contribute to this free Tool. I think many users simply use the editor as a "scratch pad", then include  queries in their source code.
    • If you see this editor as "scratch pad", then why would I use it? I'd then us Notepad or VS Editor. But because editor is connected to the database in context and operates with the database in context, then I expect it to behave as SQL Server Management Studio - edit and save, but not as edit, save as, overwrite over and over again. I like your tool but this "behavior" just irritates me. Well, I guess it ain't that hard to realize that? I'd appreciate it. Thanks.
    • I will consider it for a future release, feel free to contribute a fix.
    • Initial implementation available for preview here: https://sqlcetoolbox.codeplex.com/releases/view/151574 - pls provide feedback
  • Getting started with Sql Server Compact 4.0 in VS 2013
    2 Posts | Last post November 03, 2014
    • Is there a step by step tutorial for getting all of the pieces in place to create a complete Sql Server Compact4.0 database in VS 2013? I have installed your toolbox in my VS 2013 Professional and copied the MyDB.sdf file from the toolbox to the Solution Explorer but the table I created with the toolbox is not recognized by Solution Explored or any thing else. 
      
      I have successfully created a nice contacts DB with SqlCe 4.0 using VS 2012 so I understand that process but of course using VS 2013 is different I think. Is it necessary to use scripts to get the table created and moved to the Solution Explorer? If so how is this done?
      
      I apologize for my inexperience but I hope you can help me. Thanks in advance.
    • Hi, no changes in VS 2013 expect less support built in for 4.0 in Server Explorer. But have you looked in the bin/debug folder for at copy of your database with data/tables in it?
  • Duplicate Records
    4 Posts | Last post September 29, 2014
    • Hi, I'm using LinQ to SQL, I have this simple BD:
      Tables
      Facturas
      Depositos
      Pagos
      
      Relations are like this:
      Depositos One to Many Pagos
      Facturas One to Many Pagos
      
      This is for Initialize DataContext
      <code>
      Private Function dbConnection() As SqlServerCe.SqlCeConnection
              Dim Path As String = Application.StartupPath
              Dim ConnStr As String = "Data Source=" + IO.Path.Combine(Path, "FacturasDB.sdf") + ";Max Database Size=4091;"
      
              Dim conn As New SqlServerCe.SqlCeConnection(ConnStr)
      
              Return conn
      End Function
      
      Private Function InicializaDataContext() As FacturasDBContext
      	Return New FacturasDBContext(dbConnection)
      End Function
      </code>
      
      This is the "Insert Deposito" function
      <code>
      Public Function DepositoGuarda(ByVal _d As Deposito, ByVal _PagosList As List(Of Pago)) As Boolean
      	db = InicializaDataContext()
      	Dim _result As Boolean = False
      
      	db.Depositos.InsertOnSubmit(_d)
      	db.SubmitChanges()
      	
      	PagosGuarda(_d.IdDeposito, _PagosList)
      
      	Return  _result
      End Function
      </code>
      
      And this for Insert Pagos
      <code>
      Private Sub PagosGuarda(ByVal _IdDepo As Integer, ByVal _PagosList As List(Of Pago))
              Try
                  Dim _currDep As Deposito = db.Depositos.FirstOrDefault(Function(x) x.IdDeposito.Equals(_IdDepo))
                  For Each p As Pago In _PagosList
                      p.Deposito = _currDep
                  Next
      
                  db.Pagos.InsertAllOnSubmit(_PagosList)
                  db.SubmitChanges()
      
              Catch ex As Exception
                  MsgBox(ex.Message)
              End Try
      End Sub
      </code>
      
      And Every time I Insert a deposito with it's Pagos, it inserts as many Facturas as Pagos, I don't know why, there is no code for insert Facturas, any help?
    • Oops! This is the Inser Deposito Function, I missed the _result = True
      
      Public Function DepositoGuarda(ByVal _d As Deposito, ByVal _PagosList As List(Of Pago)) As Boolean
      
      	Try
              db = InicializaDataContext()
      
      	Dim _result As Boolean = False
      
      
      
      	db.Depositos.InsertOnSubmit(_d)
      
      	db.SubmitChanges()
      
      	
      
      	PagosGuarda(_d.IdDeposito, _PagosList)
              _result = True
      
              Catch (ex as Exception)
                  Msgbox(ex.Message)
              End Try
      
      	Return  _result
      End Function
      
    • Hi, this format is not good for code based issues, that do not really relate to the Toolbox. Suggest you ask in the msdn forum instead
    • Ok, I'll ask in the msdn forum but I think it's a bug because I have to do this in "Old Style" using ADO Net, with SqlCeConnection, SqlCeCommand, etc, and doesn't presented this issue.
11 - 20 of 75 Items