Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,459 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,824 people online right now. Registration is fast and FREE... Join Now!




publish c#code with database

 
Reply to this topicStart new topic

publish c#code with database, including database in setup process

mehdin
2 Aug, 2008 - 02:59 AM
Post #1

New D.I.C Head
*

Joined: 2 Aug, 2008
Posts: 1

I have finished coding my program that uses a database using sql server 2005 express edition. However, i wanted to publish it in such a way that when the user installs it, it also installs a database to work with automatically. So how do i do this?
thanks
User is offlineProfile CardPM
+Quote Post

PixelCard
RE: Publish C#code With Database
2 Aug, 2008 - 05:42 AM
Post #2

D.I.C Head
Group Icon

Joined: 20 Jun, 2008
Posts: 139



Thanked: 3 times
Dream Kudos: 650
My Contributions
First, you must be sure, that the end-user will have the SQL Server installed. If so, then you just have to create a small piece of code, representing a query to create the database. Another solution is to set your application to connect to a remote SQL Server, where the database is located, but the problem is, that the remote machine must be always on, so the user can access it.
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Publish C#code With Database
2 Aug, 2008 - 11:45 PM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,993



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Here is an article that discusses this very topic and how to accomplish it. Happy reading smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:59PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month