Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 19-11-2010, 08:32 AM   #1 (permalink)
Mad and Furious
 
redhat's Avatar
 
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
Default SQL databse query.


Hi friends, I would like to create a program with a MySQL DB at the back-end. Firstly can I do this and how? I know I can use MSSQL with VS2010 on the front-end but I couldn't understand how to use MySQL as the back-end.
Secondly, I want to know how I can deploy this standalone program to the end-user who does not have SQL Server installed on his PC.
__________________
My new Tech Blog : http://technewspaper.blogspot.com/
redhat is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-11-2010, 11:52 AM   #2 (permalink)
Broken In
 
Pratul_09's Avatar
 
Join Date: Sep 2007
Location: Navi Mumbai
Posts: 181
Smile Re: SQL databse query.

1> You will need MySQL ODBC drivers, that you need to install separately with MySQL installation.
checkout the sample at :
Connecting to MySQL Database using C# and .NET - CodeProject

2> You can use Inno Setup that is freeware to make a setup with your standalone program + database + ODBC drivers (you may require bat files for some automation).

3> If the end user does not have SQL server installed you can provide SQL Expess edition setups that are free to use and are excellent for small to medium databases
Pratul_09 is offline   Reply With Quote
Old 20-11-2010, 02:54 AM   #3 (permalink)
Mad and Furious
 
redhat's Avatar
 
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
Default Re: SQL databse query.

Thanks.. Ill try the first two solutions.
But for the third one, is there no other way than installing SQL Server express??
I would prefer if I can install the required software during the installation process for my app itself. I dont want to install the server separately. how can that be done?
__________________
My new Tech Blog : http://technewspaper.blogspot.com/
redhat is offline   Reply With Quote
Old 21-11-2010, 11:36 PM   #4 (permalink)
Broken In
 
Pratul_09's Avatar
 
Join Date: Sep 2007
Location: Navi Mumbai
Posts: 181
Default Re: SQL databse query.

can you explain yourself a bit more so that i can understand your problem better.
Pratul_09 is offline   Reply With Quote
Old 22-11-2010, 09:49 AM   #5 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: SQL databse query.

sql express quiet install:
How to: Install SQL Server 2008 R2 from the Command Prompt

mySQL quiet install
MySQL :: MySQL 5.0 Reference Manual :: 20.2.2.1 Installing Connector/NET on Windows
Quote:
You may also use the /quiet or /q command-line option with the msiexec tool to install the Connector/NET package automatically (using the default options) with no notification to the user. Using this method the user cannot select options. Additionally, no prompts, messages or dialog boxes will be displayed.

C:\> msiexec /package conector-net.msi /quiet

To provide a progress bar to the user during automatic installation, use the /passive option.
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 24-11-2010, 12:19 AM   #6 (permalink)
Mad and Furious
 
redhat's Avatar
 
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
Default Re: SQL databse query.

@Pratul_09: I was asked to develop a standalone app by a friend. He will need to deploy it on about 3-4 PC's. The said application needs a database on the back-end and I decided to use SQL since I am very comfortable using it. But I was stuck on how to deploy the said database. I am only a hobbyist programmer and have never actually deployed any of the applications I have made. So I wanted to know how to deploy the database and if I need to install SQL Server Express, I wanted to do it quietly something arpan pointed out very well.
So I guess, I can say Problem Solved.
@arpanmukherjee1: Thanks a lot!! I simply did not think of using the command line installer!! That solves the problem.. thanks people..

PROBLEM SOLVED
THREAD CLOSED
__________________
My new Tech Blog : http://technewspaper.blogspot.com/
redhat is offline   Reply With Quote
Old 24-11-2010, 11:50 AM   #7 (permalink)
Broken In
 
Pratul_09's Avatar
 
Join Date: Sep 2007
Location: Navi Mumbai
Posts: 181
Default Re: SQL databse query.

Happy you found your answer
Pratul_09 is offline   Reply With Quote
Old 25-11-2010, 05:29 PM   #8 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: SQL databse query.

Quote:
Originally Posted by redhat View Post
@arpanmukherjee1: Thanks a lot!! I simply did not think of using the command line installer!! That solves the problem.. thanks people..
ur welcome
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2