Showing posts with label deploying. Show all posts
Showing posts with label deploying. Show all posts

Wednesday, March 28, 2012

Installing/Deploying Windows App with SQL Server 2005 CE

I am a little bit confused about making an installer/deployer.

I have an application using SQL Server 2005 CE (I have just updated to the most recent version Jan 2007). It will run on a new desktop PC (windows XP) if I install the SQL CE runtime and then copy the .EXE and the .SDF database file. This is great but my client wants the whole thing to install as one operation. I thought click once could do this but it seems that is only for Pocket PC targets? Can anyone point me to a method to make an appropriate installer please?

Pete

I am using the following:
SQLServerCE31-EN.msi - installer for SQL CE server runtime
SSCE31VSTools-ENU.exe - installed over VS 2005 SP1.Have you tried publishing it? - I have no problem doing this for standard apps.

In Brian Noyes' book "Smart Client Deployment with ClickOnce' there are several small sections on how to deploy CE

P235 "An example is the SQL Server 2005 CE CTP that is available at the time of this writing. You can download the .msi file to do and install of SQL Compact and you can also download the Bootstrapper Manifest needed to add SQL Compact to your Bootstrapper. If you are provided the Bootstrapper files, all you need to do is place the files in the right location."

I can recommend this book - written in a logical straightforward manner. Also covered is Deploying a (sic CE) Client Database with your Application (starting P 167)

Here is the video link from Steve Lasker's blog on CE deployment http://blogs.msdn.com/stevelasker/archive/2006/07/06/SQLServerEverywhereDeploymentOptions.aspx|||If you use something like Inno Setup you can just have the installer copy the SQL Server Compact Edition dll files to the application's folder. Then you won't have to worry about using the MSI file. Check the SQL Server Compact Edition Books Online for more.

Or, (still using Inno Setup) add the MSI file to the setup project and run it with the necessary options to install it right before the installation ends.
|||Great responses guys! I'll try everything you suggest and feed back here.

Pete|||Ok, thanks for the references to Steve Laskers blog. The screencast of deployment options gave me the information I needed. I have ended up using the VS Setup project to install the SQL CE dlls into the app folder and the GAC. That is great for me (I didn't want publish/deploy). I am sure Inno would have done the same but I don't have time to learn another setup app now (I've used NCIS as well in the past). Anyway, kudos to all of you and Steve Lasker and the MS Virtual PC people without which I would need 2 PCs to test all this...

Pete|||I should mention that it looks like just copying SQL Server Compact Edition's DLLs is not a way to do it anymore. I remember seeing it in the SQL Server Everywhere Edition Books Online but it seems to have been removed from the SQL Server Compact Edition Books Online. Just thought I shouldd mention this for anyone else who reads this thread.

Installing/Deploying a .dtsx package

Hi,

I used to write DTS Scripts in SQL Server 2000 and schedule them as jobs with out problem.

This was normally done within SQL Server its self.

Now that I've moved to using SQL Server 2005 I've been learning how to use SSIS.

I've successfully developed a package and managed to create a .dtsx file. Now I have 2 large books on the subject of SSIS but none seem to go into any detail on what to do next.

So here’s my newbie question (I apologise if I sound dumb!):

I don't want to run my package manually as the books keep telling me how to do.

I need to have my package added into SQL Server 2005 somehow and then schedule it as a reoccurring job.

Can anyone point me in the right direction?

Thanks

Matt.

Have you tried this -

Deploying Integration Services Packages
(http://msdn2.microsoft.com/en-us/library/0f5fc7be-e37e-4ecd-ba99-697c8ae3436f.aspx)

In summary, there is the deployment "utility", which can be produced via the SSIS project in BIDS, or you can import packages to a server from within SQL Server Management Studio. For my money the best option is to just put the dtsx files on the server somewhere as files. How you do that is up to you, a manual copy for example, or perhaps get a bit clever and use an MSI.

To schedule the package, you can create a SQL Server Agent job in much the same way as before. Use SQL Server Management Studio, and create the job or write a T-SQL script. You can of course build the job in the tool and then script it too.

On point though is I much prefer to use a CmdExec job step type, and just call dtexec.exe with parameters over using the built in SSIS job step, as you can get better output from the former. So really you are just scheduling an exe.

Use DTExecUI.exe to help build the command line, but of course use DtExec.exe in the job itself.

This thread may also help -

Re: using sql server agent stored procedures to execute a package - MSDN Forums
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=646512&SiteID=1)

|||

Thanks,

I've read through the articles on those links with the most helpful being this package installation example :

http://msdn2.microsoft.com/en-us/library/ms365344.aspx

I also think using the command line method that you mentioned sounds like a very good idea and the whole process seems simple.

So I've gone to use the SQL Server Agent set up and schedule a job and low and behold that has completely changed from the SQL Server 2000 version too!

However it does look good but means I still need some more reading yet before I can add my job in.

Thanks very much for your help.

Matt.