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.

(165) Review
Visual Studio
2015, 2013, 2012, 2010, 15
Download (514,354)
4/19/2016
4.5.0.2
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (165)
Q and A (99)
Sign in to write a review
Sort by:

by Ed Kaufmann | April 28 2016

As a retired hobby developer this is the tool I would miss most.
I use the offline tool since years - the most amazing thing: it does everything it promises!
The integration in VS is flawless as well.

And, last but not least, I've never experienced a better support.
Erik thanks a lot!
ed

by Rdogmartin | April 25 2016

Fantastic little tool for quickly editing a SQL CE database. We recommend the stand-alone version to our customers any time they need to edit their Gallery Server database.

Roger Martin
Founder and Lead Developer
Gallery Server
Digital Asset Management and Web Gallery
galleryserverpro.com

by SirWernich | April 25 2016

it doesn't quite fit in with the "dark" theme, but it works pretty darn well, which is brilliant because sql server management studio doesn't do
sql CE anymore.
(i'm using this in vs2013)

by Peter Vrenken | April 19 2016

Great tool!

A must-have for everyone that uses SQL Server Compact and/or SQLite.

by Giarko | April 13 2016

It's a fantastic tool, it does exactly what it promises! Thank you very much.

by JJPuua | April 07 2016

ErikEJ April 07 2016
| Edit |
Delete

How can I make it better?

by clarewang | April 01 2016

ErikEJ April 01 2016
| Edit |
Delete

What could I do to make it 5 stars?

by rkamarowski | March 25 2016

First class package.

by Respiro | March 16 2016

perfect and intuitive tool with lot of usefull features

by Maxumus | March 15 2016

Excellent! Use it all the time, very well done.

by tj881024 | March 13 2016

很好用,赞一个,中国网友发来贺

ErikEJ March 14 2016
| Edit |
Delete

謝謝 :-)

by Francois Rossello | March 10 2016

Merci !

by Win_sky | March 07 2016

Great tool, only error I receive is when trying to create a report using the report wizard. When creating a data source you would get "error occurred while retrieving the information from the database" or won't even attempt to connect. Any help with that?

ErikEJ March 07 2016
| Edit |
Delete

I will be happy to provide support, but please provide more details about your issue here: https://github.com/ErikEJ/SqlCeToolbox/issues/new

by Gianluca Maria Marcilli | March 06 2016

Very good tool. Hope for updates concerning integration of DB in asp.net applications.

ErikEJ March 07 2016
| Edit |
Delete

Hi, could you please explain what "updates concerning integration of DB in asp.net applications" means here: https://github.com/ErikEJ/SqlCeToolbox/issues/new then I will look into it

by bkboggy | March 02 2016

Absolutely incredible. A lot of fantastic options, works without any hick-ups (thus far) and just makes my work that much easier. My only complaint would be that it does not display data types for SQLite, but rather generic db types. I would much rather choose from types listed on https://www.sqlite.org/datatype3.html .

ErikEJ March 02 2016
| Edit |
Delete

Thanks for the review, pls log an issue on github with details about where you see these data types... (screenshot, maybe)

by infoset | March 01 2016

I really appreciate your commitment to the file-databases commmunity and keeping things alive despite Visual Studio team politics. Please keep up your fantastic work.

by Karthick snkl | February 24 2016

thank you

ErikEJ February 24 2016
| Edit |
Delete

How can I make it 5 stars?

by GeroZinkDev | February 21 2016

Excellent Toolbox! Thanks!

by Busta4Sure | February 19 2016

This tool is perfect for what I need. Glad to see some SQL Compact support in VS again! Thanks Erik.

by Murti_x | February 17 2016

İt's really good tool.But deleting or editing rows is not working sometimes.

Thanks.

ErikEJ February 17 2016
| Edit |
Delete

Thanks for the kind Words. If you have issues, could you please post detailed steps to reproduce on Github

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


  • Instalation Issue VS2015 Community
    6 Posts | Last post November 12, 2015
    • Hi Erik,
      
      Is this Toolbox compatible with VS2015 Community?
      I tried to install it with VS2013 Express and get informed that it´s not compatible with that version. So, i installed VS2015 Community and tried to install the toolbox, but nothing happens, no errors, no messages...
      
      Thanks
    • Of course it is, I currently use VS 2015 Community to develop it! How did you install? Is it not installed already? Check the Extensions and Updates dialog
    • I have just downloaded and executed the file to do the install.
      Now, with your suggestion, i checked the Extensions and Updates dialog, added the extension and it´s working fine.
      Thanks a lot!
    • how did you add the extension?  I don't see anything, only form for servers
    • i tried to add folder with extension to this list. now i get message that access  to the path is denied
    • Amalgamsky: I do not understand your issues, pls log an issue here with clear description and screenshots, thanks: https://sqlcetoolbox.codeplex.com/workitem/list/basic 
  • Scroll problem!
    14 Posts | Last post November 11, 2015
    • Hi
      When I have many tables, The toolbox will show vertical scroll bar, but I can't scroll with middle mouse button!
      Please, check and fix it...
      Thanks
    • Hi, could you try the latest build here, and let me knwo if that fixes the issue: https://sqlcetoolbox.codeplex.com/releases/view/618303 (Uninstall first, then download and run)
    • Hi again,
      Yes! that's OK, I've installed version 4.4.0.5
      Thanks a lot...
      I have a suggestion too! May you create a standalone (portable) version of this toolbox, please? Some times we need it without visual studio...
      Thanks
    • Great, and thanks for reporting. Standalone version are already available: https://sqlcetoolbox.codeplex.com/releases/view/104096 
    • Thank you...
      May you update this standalone to the latest version, please?
      This is not 4.4.0.5 ! So, we have scroll problem and there is no design edit tools like VS-version (such as Add column, Edit column, ...)
      Thank you very much
    • Since VS Community is now free for all, I have decided to spend my (limited) resources with the VS extension. But the software is open source, and I do accept pull requests!
    • OK! Thanks...
      And sorry, but I found another bug!
      When we open an edit window for a table (Edit Top 200 Rows) and main toolbox anchored window will be minimize (hide), then the tables list will close! We must open tree node and search table again!
      Thanks again...
    • I would be grateful if you could report any bugs here: https://sqlcetoolbox.codeplex.com/WorkItem/Create and describe the steps to reproduce, and possibly with screenshots (I am not sure I understand the issue)
    • OK...
      1: Set your SQL toolbox window to auto hide
      2: Open tables tree node
      3: Select a table (now, the tables tree is open and a table is selected)
      4: Click every where of VS-window (out of toolbox window) to close toolbox (autoHide)
      5: Back agian to toolbox (open it), Now, tables tree is closed and nothing is selected
      Thanks
    • Thnaks, I have logged an issue here: https://sqlcetoolbox.codeplex.com/workitem/12260 
    • Hi, could you try the latest build here, and let me knwo if that fixes the autohide issue: https://sqlcetoolbox.codeplex.com/releases/view/618303 (Uninstall first, then download and run)
    • Hello Erik,
      
      Great job! Thanks for this tool. It is just amazing. Quick question. Is there an API (DLL) so that the Script generation of SQL Server Database Schema and Data to SQLite can be called inside a C# code? 
      
      Patrick M.
    • Yes! That's OK...
      Thank you very much...
      I hope that you find enough time to update standalone version....
      Thanks again
    • Hi, you are welcome - re the standalone edition: Would be helpful if you could list what you are missing in the standalone edition by submitting a list on the CodePlex issue tracker 
  • Windows 10 universal app and SQL server compact database
    5 Posts | Last post October 27, 2015
    • Is it possible to access to a SQL server compact 4.0 database from VB or C++ in an universal app ? Previously, I used the reference System.Data.SqlServerCe and made SQL queries in the code by means of SqlCeResultSet.
      Now, how to do ? And why Microsoft doesn't propose the tool you have created ?
    • You cannot, but you can use SQLite
    • I can open my SQLite db in VS2015 with the toolbox 'SQL Server Compact/SQLite toolbox' and see the tables and fields. I'm trying to open the db in VB with:
      Dim db As SQLiteConnection = New SQLiteConnection(dbpathstring)
      I get an error 'could not open database file'.
      How to open a SQLite db then make queries in the Universal app environment ?
    • See my blog post here: http://erikej.blogspot.dk/2014/10/database-first-with-sqlite-in-universal.html
    • I followed these instructions since I was able to open the db from the toolbox.
      
      But I have found at the moment the cause of the problem: it is due to the db path which must be equal to this one:
      Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "MyDb.db")
      
      Because of Windows Store app, the database cannot be put elsewhere.
      
      In addition, the db has to be included in the project in order to be copied in this special folder. So, its settings in the project must be: 'content' (build action) and 'copy always'.
      I also tried the folder "ms-appdata:///local/" as recommended somewhere but that didn't work.
      
      I got this information here:
      https://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1
  • Could not find SqlMetal location in registry
    7 Posts | Last post October 10, 2015
    • Hi, Erik, 
      
      I'm trying to create a Linq2Sql DataContext on a SqlCe 4.0 database, but I'm getting an error stating 'Could not find SqlMetal location in registry'. I have verified that SqlMetal exists in the following location:
      
      C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
      
      so I'm guessing I must be missing a key entry, but I have no idea what I would need to enter into the registry to resolve this issue. Any thoughts?
      
      thanks!
    • Update: 
      So I've been digging through the registry looking for the keys that I think the toolkit is looking for and I've verified the existence of the following keys:
      
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MicrosoftSDKs\Windows\v7.0a
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MicrosoftSDKs\Windows\v7.1a
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MicrosoftSDKs\Windows\v8.0a
      
      each of which has an InstallationFolder value that points to a folder in which I have verified taht there is a copy of SqlMetal.exe appears.
      
      So I'm guessing there is a key that the toolkit 
      
      I'm using VS2012 pro if that's important. 
    • I fixed some issues relating to sqlmetal detection in the latest refresh, could you try to remove the extension, and reinstalle from the gallery, so you get version 4,3,0,2
    • I did an uninstall and updated to 4.3.0.2, but to no avail - still unable to locate the SQLMetal in the registry. 
      
      I checked my path variable and made sure that all three of the folders I listed above were specified, just in case that was the issue, but with no success. 
    • Hi JW, it was a bug - fixed in the latest daily here: https://sqlcetoolbox.codeplex.com/releases/view/616898
    • Success. Thanks so much for all your quick help on this!
    • Great worked for me as well - good work
      
  • FormatException for DateTime type
    4 Posts | Last post October 02, 2015
    • Hello,
      
      Trying to open Top 200 Rows I got FormatException: String was not recognized as valid DateTime at ErikEJ.SqlCeToolbox.ToolWindows.ResultesetGrid.LoadData(String sqlText)
      
      The connection string has DateTime Kind=Utc option. (The ServerVersion  is 3.8.10.2)
      
      Anyway thanks, I discover the extension just recently and I like it.
      Br,
      Mojmir.
    • I think it means that one of your rows contain data that cannot be converted to a DateTime object
    • Hello Erik, 
      Thanks for your answer.
      
      I did a more experiments with it. SQLiteStudio showed the raw values - it seems to be stored in unix format and somehow wrongly (I can’t  figure why  it is caused  by infrastructure -  I am using SQlite-net, SqLitePCL.raw dlls got through Nuget as the infrastructure, SQLiteConnection is constructed with storeDateTimeAsTicks = true as default setting.) . (e.g. stored 622159416000000000 value is interpreted as 18.7.1972 22:00:00 by the infrastructure).
      
      Then I experimented with SQLiteStudio, to figure out the SQLite Toolbox is able to show date time stored as correct unix format. I cloned the original table structure to a different table, then insert one row through SQL INSERT statement and  using function strftime('%s', 'now'.) Then using function Datetime(MyDateTypeColumn, 'unixepoch') in SQL SELECT statement showed it correctly. And of course the SQLiteStudio showed the value in raw format in the grid  – an integer number (even for the original case, which was quite valuable for me).
      I looked at  SQLite Toolbox, Edit top 200 Rows, View Data as Report, Script as SELECT execution all raised the exception.  Only using replacing MyDateTypeColumn  Datetime (MyDateTypeColumn, 'unixepoch') in , Script as SELECT  was  successful.
      
      Question (or kind of suggestion)from that all:  What do you think, if  the  SQLite Toolbox, Edit top 200 Rows, View Data as Report, Script as SELECT execution shows raw values in grid for Datetime SQLite type by default (not doing any date time conversion) , like SQLiteStudio seems to do? (Or if  have some setting which kind of implicit date time conversion is used for that  with possibility of no conversion?)
      I tried to use SQLite very recently, so I might miss something important. Then please excuse me if the suggestion sounds stupid to you.
      
      Br,
      Mojmir.
      
    • Hi, let us continue the discussion here: https://sqlcetoolbox.codeplex.com/workitem/12224 - have you tried setting the DataTimeFormat to UnixEpoch in the connection string?
  • Possible issues
    3 Posts | Last post October 01, 2015
    • 1. Right click some table in the toolbox, and choose one of the "Script as..." menu items, and a new tab pops up with default script to get you started. I usually type "ctrl a" to select all, and then immediately type "s" because I plan to type "select foo from bar etc..." But what happens is it pops up the save-as dialog box. You need to close it and then it also hijacks the uppercase/lowercase "s" and "S" for some reason, so you need to close the tab and try again.
      
      2. In VS tool windows, I don't have the "Properties" tool window open ever. I always close it because it takes up space and I don't use it. When I open VS (this only happens once, when you first open VS), I go to the tool window for the sqlce toolbox, I click the "+" to expand my db, click the "+" to expand the "Tables" node, it then automatically opens the "Properties" tool window, and switches to it. I just close it and forget about it, but it happens every time. Wonder why?
    • Thanks for reporting this, suggest you use this link for error reports: https://sqlcetoolbox.codeplex.com/WorkItem/Create - I have logged issue 1. Re 2 - you can disable this via the Settings dialog (DisplayObjectProperties)
    • 1. ok will do in the future, 2. that works thanks
  • Feature request for "new" button
    7 Posts | Last post September 30, 2015
    • In the next version, please consider adding a button "New" to the menu - the one which has open, save, save as, execute, execute + plan, etc...
      
      Right now when I need a new window I must go into the toolbox, and right click something, and clear out the automatic stuff in the new window, and so on.
      
      Would be easier with just a "new" button for a new blank window! :-)
      
      Loving this!
    • Thanks for the great suggestion, this will be in the next daily (and release) - there already is a menu item to do this, but only on the database level named "Open SQL editor" - but I will add it to the Table context menu
    • Oh then maybe I'm doing something wrong? All I have in my menu is:
      
      open, save, save as, execute, execute + plan, estimated plan, parse, search, ignore ddl errors...
      
      I am referring to that menu that shows at the top of the editing tab. It has icons and text.
      
      But there is no "new" window/tab button in there?
    • Got it! I have added an issue to get this done: https://sqlcetoolbox.codeplex.com/workitem/12220 
    • awesome :)
    • This is now available in the latest "daily" - https://sqlcetoolbox.codeplex.com/releases/edit/616898 
    • I just tried the alpha it and it works for me... Thanks, this is such a useful addition!! I have some "bug reports" (maybe it's just me?) I will put separately... And I love the new icons.
  • FOREIGN KEY
    2 Posts | Last post September 08, 2015
    • How can I create a foreign key using 2 columns and refering to a 2 columns primary key ?
      I use sqlce 4 and visual studio community 2015
    • You can do that using SQL script currently, support for it in the UI is pending, planned for NeXT release: https://sqlcetoolbox.codeplex.com/workitem/11501 
  • How to expand tables of a database
    3 Posts | Last post September 06, 2015
    • Hi, I installed the tool, but cannot expand the database to see the tables, etc.
      I'm using VS 2015 Community and created a database in toolbox and after created tables with code first. The database is there, but I cannot expand it and see the tables of the database.
    • I am guessing you are looking at the wrong database file. Suggest you post an issue on CodePlex with reproduction steps
    • You were right! I've created the DB through the toolbox and when the solution was built it created other DB in Debug folder, but until now I didn't know that. Now I pointed the toolbox to the correct .sdf file and all is OK.
      Thanks very much for your hint!!!
  • Unable to add datasource
    6 Posts | Last post August 22, 2015
    • Hello,
      I tried creating a project to test your tool. First, when I display the about box, I notice a bunch of 'no' (see http://i58.tinypic.com/2dv5p4k.jpg). I've already pressed 'Register DDEX Providers' button. Second, when I try to add a new datasource in my project to access a sqlite db file, your tool doesn't show up in the 'Choose provider' window. How to fix that ?
    • My tool does not provide features for adding a sqlite dataSource, you must install the SQLIte VS tools, as described here: http://erikej.blogspot.dk/2014/11/using-sqlite-with-entity-framework-6.html 
    • OK. I've downloaded and installed the file mentioned but I get an error ('An unexpected error occured in the .NET Framework data provider...'), although the connection test succeeded.
    • Hello again,
      trying to get rid of my problem, I get an error, this time from YOUR tool: I chose Script Database from the menu and then Script Database schema. See http://i59.tinypic.com/2lsxgxs.jpg for the error. The db is a valid one though, it's been created by a video game and can be opened with any sqlite browser tool...
    • Please try to uninstall and reinstall so you have the latest refresh, version 4,3,0,2. Please let me know if that fixes the issue for you.
    • No error with the latest version! Thank you! ;)
11 - 20 of 99 Items