I am using SQL Server as database with VB.net to develop an application. Is there any way to embed the SQL db/table to the application so that client will not have to install SQL Server.
I think recent versions of SQL Server have a feature called 'LocalDB' which might fit your needs : https://msdn.microsoft.com/en-us/library/hh510202.aspx
Related
I have a spring batch application which reads data from SQL server. I would like to write an integration test against an embedded db which supports TSQL.
Exp: My main application has some queries which uses "for json path"
I am looking for an embedded db where I can test in memory.
PS: I tried H2 and looks like it does not support TSQL.
Please download this
https://www.microsoft.com/en-us/download/details.aspx?id=30709
Microsoft SQL Server Compact 4.0 is a free, embedded database that software developers can use for building ASP.NET websites and Windows desktop applications. SQL Server Compact 4.0 has a small footprint and supports private deployment of its binaries within the application folder, easy application development in Visual Studio and WebMatrix, and seamless migration of schema and data to SQL Server.
FYI -
Looks like Microsoft SQL Server JDBC Driver does not support connecting to SQL
Server Compact.
How to use SQL Server Compact Edition (CE) from Java?
https://social.msdn.microsoft.com/Forums/en-US/4d25a17f-6dda-4bec-8a92-f068594553ef/java-and-sql-server-compact-edition?forum=sqlce
Perhaps you can use SQL Server Express LocalDB.
I do not know about its technical details, however. I have personally not (yet) used it in a development project. Perhaps it cannot be considered to be an embedded database like SQL Server Compact Edition is. But a quick search on Internet does indicate that it could be accessed from/with Java.
Regarding managing LocalDB databases with SQL Server Management Studio... Contrary to what is stated in the official documentation, I did succeed to connect to LocalDB using SSMS (version 18.9.1). I only needed to enter (LocalDb)\MSSQLLocalDB as the server name in the connection dialog and use Windows Authentication.
I create an application and use SQL SERVER 2008 R2 as its database. How I will deploy my application in a standalone computer without attaching the database? Is it possible to do that ?
Incase you don't want to install sql server on client side,you need to change database to any document database.you may go for sqlite http://www.codeproject.com/Articles/22165/Using-SQLite-in-your-C-Application
started recently a WP8 project which uses LINQ to SQL as data layer. I've finished modeling the needed domain classes and would like to populate my testing database on the emulator. I managed to download the created SDF file (ISETool.exe) my problem now: How to open this file? Are there some GUI tools to read/write this SQL CE database?
I'm using Visual Studio 2012 Express for Windows Phone - if this info is necessary.
Any hint is appreciated!
You can use my SQL Server Compact Toolbox, supports import from csv and SQL Server. See my blog for walkthrough.
I've developed an application for my college project in Visual C# which uses SQL Server 2008 Express database. My application is desktop-based. But the problem now is deploying the application. Is it required that a SQL Server 2008 be installed on the client machine (with my tables and data inserted) or can I just have the .mdf file exported and everything works well?
Is there a way to escape the installation of SQL Server 2008 on the target machine?
Sorry, just found a duplicate: Does user need SQL 2008 Express Installed if I deploy app with .mdf file?
You can deploy SQL Server Express with your application. However, most of the time this is just the wrong thing to do. SQL Server Express is a server-class database, and likes to use up system resources as such. It also runs as service, which means it's using those resources even when your application isn't active.
Instead, you should choose a desktop (or in-process) class engine, like SQL Server Compact Edition, Sqlite, or even MS Access. In addition to being an all around better choice for your desktop program, these database will also generally be much easier to deploy.
My production is on full blown SQL Server 2008.
I would like to have integration tests with some light weight database that
doesn't have to be installed on the machine and
doesn't run as a service
...if at all possible.
I use LINQ to Entities in my code that probably makes this goal even more complicated.
Is it possible to use any lightweight DB to accomplish this goal? Do those DBs have LINQ providers or whatever they're called to translate LINQ to actual queries...
Anybody has any experience with LINQ to Entities with third party databases?
What about SQL Server 2008 Express? That's about as lightweight as a SQL Server 2008 compatible system gets. It's basically a light-weight workstation install for SQL Server - it's a server, it's a service in the background. http://www.microsoft.com/express/sql/default.aspx
There's also SQL Server Compact 3.5 which should be compatible with SQL Server 2008, but I don't know if it's supported by the Entity Framework as a store. This is just a bunch of DLLs you need to add to your project, and it stores all its data in a single .sdf file. http://www.microsoft.com/Sqlserver/2005/en/us/compact.aspx
Marc