There is a project I'm off to start and thinking of using SQL CE to keep resources small and anyway the data would be simple enough.
I was thinking and "heard" that there is a way that u can make your app play with SQL CE without installing the runtime, with adding some dlls and voila.
I would like to start using EF4 so it would be EF4 on SQL CE.
Any points, thought?
You can just deploy the binaries that can be found in the installed directory on your development PC - meaning anyone using your app doesn't need to run an MSI for it.
http://msdn.microsoft.com/en-us/library/aa983326(VS.80).aspx
I don't know much about EF4 and SQL-CE, but I spotted this after a short search:
http://thedatafarm.com/blog/data-access/a-few-sql-server-ce-and-entity-framework-gotchas/
Related
Bit newbie to this but, I am trying to develop an application with vb.net and sqlexpress. My application works perfect it connects to database and shows data on datagrids and all. Now, i wanted to install this application on another computer..... so i added .net freamework and sql express 2012 in prerequisites and have added set up project to main project as well. when i built setup and used on another computer, installing process works with no errors but it does not install sql express at all. thus application does not work. I have seen lots of pages related to one click install with prerequisites and applied solutions but it seems it just does not work.
Any help is greatly appreciated.
I tried to install MS SQL server, yesterday on my Windows 7 Home Premium 64 bit OS machine, following the instructions provided in a PDF by a company that has done it before.
Everything seemed to say it installed ok. However it didn't seem to install SQL Server Management Studio which is used for a lot of the exercises I am required to do and quite useful in general.
Has this happened to anybody else. Has anyone got any advice for what I can do to fix this.
I did notice that my machine seems to have MS SQL Server 2008 for some reason, I think it must have already been there and is conflicting, perhaps I should uninstall it. What do you think?
I hope you's can help.
Thanks
KR
Sharpie
I'm guessing you downloaded and installed only the db, and not the one with "Tools". The Tools is the one that includes SSMS. No worries you can go here https://www.microsoft.com/en-us/download/details.aspx?id=29062 and download the Tools separately and install it. Expanded the "Details" of the page and this will let you know about the different files you can download.
As in title I'm having problem with my VB project when I change its .NET Framework from 4.5.1 in which I have application written to v4 which is supported on windowsXP. When I make the change and try to compile my program database could not be found. Should I make any extra changes in project properties or why database could not be found?
Thank you for help!
The Jet engine is not supported on 64bit machines. I know it is crazy but it's true. Not sure what MS Access uses on 64Bit, must be something else.
Jet on 64Bit
Some places say it's not going to be supported, others say it is part of Office 2010 install and you can download a seperate driver.
I ran into this when deploying a web app to our 64Bit server and just found a way around using MS Access for our report server. Got luck.
The scenario:
I have written a software application that includes an installer, that is to be used by Mr Layman to install the system on to a single computer.
The system is a simple C# winforms application with an SQL Express database. The target machine would be a standard installation of Windows XP with SQL Express and .NET 3.5 installed.
I am able to create the installer for the winforms app, that would check the version, create all the directories and copy over all the necessary executable's etc. I have also an SQL script that will create the database and populate it with the necessary data. However I do not know how to go about creating a stand alone installer for the database on the target machine.
I have an SQL script that will create the database etc, but how do I make the installer run this script? I've had a google and I don't really know what I'm looking for, can someone point me in the right direction please.
Thank you in advance.
Create a custom action in the installer project that will take your SQL script and run it against the database. Here's an MSDN link that covers the basics.
An installer which runs SQL scripts can be created in 2 ways:
The very hard way:
create an installation with custom dialogs which retrieve the SQL connection information
save that information somehow (in an MSI package you can use installer properties)
write a custom action which uses that information to connect to SQL Server and run your script
The easy way:
use a setup authoring tool which supports SQL scripts
If you want a free solution, I recommend WiX. It has a steep learning curve, but it does what you need.
Basic Question -
I have installed SQL Server Express 2008 with integrated SP1. This is the database engine alone.
I realise now that I also need the express studio in order to perform a few tasks. I have installed it, however I know that it was the original installer from before SP1 was released.
I have tried it and it appears to work fine but should I install SP1 / could something unforeseen happen in the future?
Some background! -
I wrote out the question and just realised that people probably don't care, so I just summed it up above!
After reading many different sites and guides, the install order for Visual Studio 2008 really confused me.
I really wanted to install SQL Server Express 2008 with advanced services, however on my other machine I had so many problems with it not being detected with Visual Studio, I just wanted an easy life!
I found the download from Microsoft that had SQL Server Express 2008 with SP1 integrated, however it was only the basic engine without any addons. (At the end of the day, as much as I wouldn't mind reporting services, I doubt I will need to use it any time soon).
I installed this, and after applying the hotfix (for x64 sql) my Visual studio can detect and use it no problem.
Now, I want to use Management Studio Express to write a few SQL scripts. The installer is obviously the original one. It seems to work fine, but I cannot find out any information - do I need to install SP1 for it?
Just install it, if its found something it can update - it will, if not... it won't....
Thanks to the wonder of Windows Installer (and I don't mean "I wonder why it's doing that?"--I mean like "This is wonderful!") it is unlikely that you have caused any big issues by running the older version afterwards.
So, yeah, you can probably just install the SQL 2008 Express Management Tools with no worries. If you want to be sure, afterwards just run the SP1 installer and it will make sure everything's up-to-date.
I always make sure to apply patches to client tools as well as server services. There is no reason to take the chance that your client tools have fallen behind in servicing.