SQL Server Compact/SQLite Toolbox

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.

(99) Review
Visual Studio
2013, 2012, 2010, 14
Download (362,329)
12/1/2014
4.1.0.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (99)
Q and A (64)
Sign in to write a review
Sort by:

by oeduran88 | Thu 6:35 PM

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

by Rick Strahl | January 28 2015

Microsoft has all but abandoned support for Sql Server Compact especially when it comes to the tooling, but this add-in makes up for that in spades. This tooling for SQL CE is miles above what Microsoft ever provided. I especially like the ability to import and export schema and data from a full SQL Server which is a huge time saver especially for testing components that support multiple providers.

Excellent.

by Hervé ANCHER | January 16 2015

From France, Very useful !

by SubramanyamRaju.B | January 09 2015

Thanks you so much.

by saramgsilva | January 08 2015

Really useful tool, thank you!

by SitzenPlatz | December 31 2014

Makes working with SQL CE so much easier and straight forward.

by Atif Rahman | December 21 2014

thank you

by chrrud | December 16 2014

This is a really great tool. It makes everything a lot easier!

by hardono | December 11 2014

Thank you for this powerful add-in Erik. Many kudos for saving the day. Without this tool many of us would have just skipped SQL Server Compact and forced to use SQL Server Express.

by Jeff.Bowman | December 05 2014

It has been with disappointment that we've had to watch as Microsoft over the years has slowly and step-by-step dismantled support for SQLCE in Visual Studio (and SSMS/E as well). Their excellent small-footprint, low-overhead, file-based database has lost their attention; it's gone the way of the venerable FoxPro.

Enter ErikEJ and his suite of tools. He has saved the day. We can confidently continue with our SQLCE-based projects.

It's got a few minor quirks here and there; it's not quite to the level of a commercial product, but then... it's not a commercial product.

Erik is very attentive to any topic surrounding SQLCE. He can be readily found frequenting any of the many SQLCE discussion forums. He's always available for support questions, is very helpful and he replies quickly.

Most projects of this nature require us to choose between support, documentation and quality. With SQL Server Compact/SQLite Toolbox we can have all three.

Thanks Erik, keep up the good work.

Jeff Bowman
Fairbanks, Alaska

by Kountree | December 02 2014

I have downloaded and used SQL Server Compact/SQLite add-in for Visual Studio. The tool picks up where our buddies in Redmond (Microsoft) left off. I found his tool to be very intuitivewith a dash of ingenuity. An example would be importing data from a Comma Seperated Value (csv). Initially, I had one column to import the data. The tool is intuitive where the selection is available by right clicking the table. The ingenuity is where the csv will have to be modified to be used by the tool. Here is an example:

My file contains
A,1
B,1
C,1
d,0

The table definition contain fields

(pk) TableID (indentity(1,1) not null
letter (varchar(25) not null
IsCapital (bit not null)

By modifying the file by placing the field names as a first row, helps with the import.

letter,IsCaptital
A,1
B,1
C,1
d,0


Great Job Erik. As we say in Ohio,USA "U are da Man." Translated "You did a wonderful job in developing this tool. Much kudos goes out."

by PwAtHexapod | November 30 2014

Very glad that there are people in the world that makes it easier for others ( like me ) to do software development. And they do it for free.
You Erik is one of them, thank you very much for a super product and quick feedback.

by ilyasnsk | November 20 2014

Erik, thank you for these very useful tools.

by Ahmed Abulwafa | November 16 2014

Helped me a lot with my Universal App project.
overall it's a great tool and a must-have.
Good job Erik!

by SilverSideDown | October 16 2014

This tool is a must-have, and I use it daily for project work. It's installed on all Windows dev machines. It's incredibly sad that MS won't support CE in their SQL Management Studio, so thank goodness for Erik's efforts in getting us the next best thing. Microsoft should be sending him checks for doing their work for them.

Also want to personally thank Erik for being responsive on Twitter and quickly posting a build with a bug fix that I needed (for long text fields & row height). I was blown away by the response time, thank you so much.

by ExGrip | October 07 2014

The SQL Server Compact/SQLite Toolbox is a tool EVERY Windows Developer should
have installed.

I made the experience that even if the download count is > 300K,
that many devs still don't know how to leverage the real
power (or potential) of the tool.

Maybe more tutorials (real world scenarios would help). Or just tweeting more
about blog-posts.

Thanks again Eric, great tool!

by mattilaj | September 04 2014

Great work! Needed to quickly create documentation for a database and the toolbox provided very nice autogenerated images and HTML. Thanks for the effort!

by Hultqvist | August 18 2014

Works as expected with no surprises.

I have been using the code generation for LINQ.
Compared to older DB techniques, automatic generated IDs are just there, no need to request it explicitly.

The tool is now the only one I use.

by Ed (DareDevil57) | August 14 2014

Thank you.

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


  • 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.
  • Large text display
    2 Posts | Last post September 29, 2014
    • Hello, I'm using VS 2013 and latest version of this extension. Have a problem with some of my tables. One of them contains NTEXT column with aprox 30kb of raw data in xml format. When I click 'Edit top 200 rows', addon hangs/works too slow, and I forced to kill devenv process to continue. This happens if table contains only few rows, so I'm confused. Any suggestions?
    • No sure there is a fix, bu suggest you report an issue https://sqlcetoolbox.codeplex.com/WorkItem/Create and attach a database file the has this issue
1 - 10 of 64 Items