Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

Packaging a SQL2005 application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ryan Langton - 18 Mar 2008 14:22 GMT
I've created quite a few .Net apps we use locally and I generally just
publish them as ClickOnce applications to a network drive.  Now I'm being
asked to make my app portable to other networks/companies.  So I want to
create a setup program on CD/DVD.  The hurdle here is that my apps are often
database driven and use SQL2005 as the backend.  I'm not sure how to go
about doing this and just looking for a point in the right direction.  I'm
currently using Visual Studio 2008 (Visual Basic), SQL 2005, and most of the
apps were created with .Net2.0.

Thanks,
Ryan
RobinS - 19 Mar 2008 03:58 GMT
SQL2005, not SQLServer Express or SQLServerCE? (Just checking).

RobinS.
GoldMail.com

> I've created quite a few .Net apps we use locally and I generally just
> publish them as ClickOnce applications to a network drive.  Now I'm being
[quoted text clipped - 7 lines]
> Thanks,
> Ryan
Ryan Langton - 19 Mar 2008 14:41 GMT
We're using SQL 2005, not express.  That could be one of the issues that
other companies may not have SQL 2005 or a dedicated database server.  Would
SQL Express be a viable solution for networked applications with say 5-10 or
possibly more users?  I've created a SQL query to create the database and
tables, is there any way to package this query in the Install setup?

Thanks,
Ryan

> SQL2005, not SQLServer Express or SQLServerCE? (Just checking).
>
[quoted text clipped - 12 lines]
>> Thanks,
>> Ryan
Aaron Smith - 19 Mar 2008 20:07 GMT
> We're using SQL 2005, not express.  That could be one of the issues that
> other companies may not have SQL 2005 or a dedicated database server.
[quoted text clipped - 5 lines]
> Thanks,
> Ryan

Ryan,

There is a way to put the query in a regular Setup and Deployment package.
It all depends on how you want to do it.

The way I did it is outlined (a little too simply) in this post:
http://thecodemonk.com/2007/10/25/windows-installer-sql-server-installation-issu
es-and-a-solution/


What you will want to do, is skip the SQL Express stuff I mentioned and just
create a Installer Class that you can call from a setup and deployment
project. You will need to prompt the user for the server, username, and
password and then use that information to execute your scripts.

I am 100% sure there are more elegant ways to do this. We were on a limited
budget in order to get this application out the door. Now that it is, we
will probably explore "pay for" options to do this in our next product.

Aaron

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.