473,836 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

make setup with SQL database in installshield

18 New Member
Hello
i want make a setup for C# program with SQL data base
but i can not . i use installshield but i have error in connection to database in
execution program.
please tell me about step of make setup in installshield
Apr 20 '13
33 13241
imanjan
18 New Member
Hey imanjan, so SQL Server database and Your C# application aren't in same machine?

\\\\\\\\\\\\\\\ \\\\\\\
we have one machine for install package that contain SQL and my App
\\\\\\\\\\\\\\\ \\\\\\
Expand|Select|Wrap|Line Numbers
  1. Why you're asking?
maybe we talk better
Apr 23 '13 #11
vijay6
158 New Member
we have one machine for install package that contain SQL and my App
Hey imanjan, so you want to run your application in the same machine where SQL Server was installed or from the different machine(s) or both?
Apr 23 '13 #12
imanjan
18 New Member
run application in the same machine where SQL Server was installed.
Apr 23 '13 #13
vijay6
158 New Member
Hey imanjan, is your program working (successfully connecting your database) before creating an installer using InstallShield?

Did you used your connection string with the following format?

Expand|Select|Wrap|Line Numbers
  1. SqlConnection con = new SqlConnection("Server=YourServerName\YourInstanceName; Database=YourDataBase; User Id=YourUsername;
  2. Password=YourPassword;");

Still if you've error means next time post the error message...
Apr 24 '13 #14
imanjan
18 New Member
Hey imanjan, is your program working (successfully connecting your database) before creating an installer using InstallShield?

yes it work correctly

/////////////
Did you used your connection string with the following format?

yes I used it

//////////////////
when I install my insstalshield package in Customer machine(contain SQL Express & my App) and then execute it, I have This error
error message :

unhandeled exception has occurred in your application

A transport-level error has occurred when sending the request to the server.
(provider : TCP provider,error: 0 - An existing connection was
forcibly closed by the remote host).
Apr 24 '13 #15
vijay6
158 New Member
when I install my insstalshield package in Customer machine(contain SQL Express & my App) and then execute it, I have This error error message :
Hey imanjan, its because the connection string which you wrote inside your program was to connect your SQL Server Database not your customer machine's SQL Server Database. If you run your program in other machine means you have to specify that machine's connection string in your program like as follows.

Expand|Select|Wrap|Line Numbers
  1. SqlConnection con = new SqlConnection("Server=Your_Customer_Machine_ServerName\Your_Customer_Machine_InstanceName; Database=Your_Customer_Machine_DataBaseName; User Id=Your_Customer_Machine_Username;
  2. Password=Your_Customer_Machine_Password;");
Apr 24 '13 #16
imanjan
18 New Member
yes I understand .
and thank for your attention.
but I do not Know how to create a setup that can work in all
machines
Apr 24 '13 #17
vijay6
158 New Member
I do not Know how to create a setup that can work in all
machines
Hey imanjan, you're developing an application with installer in your computer but you want to run that application in other computers which will connect the SQL Server database in that computer?
Apr 25 '13 #18
imanjan
18 New Member
yes .
that is right .
Apr 25 '13 #19
vijay6
158 New Member
Hey imanjan, one way is use local database. Another way is don't store your connection string details (Server name, Database name, User ID, Password) inside your program because it may different from one computer to another computer. Instead of this store Server name, Database name, User ID and Password it in your application settings. And use it in your connection string.
Apr 25 '13 #20

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2330
by: ndsoumah | last post by:
hi all How can I make a database connection available to all the pages in my application? I tried doing it with session but it doesn't seem to work. here's what a did: start_session();
2
1650
by: Job Lot | last post by:
How can I make my setup program create folders with specific name while installing application? I want to create these folders in application folder. Thanks
5
1614
by: COHENMARVIN | last post by:
I have a sql server database hosted by an ISP. It has credit card fields. I want to make the database secure. My asp.net pages refer to the database as follows: strConnection = ConfigurationSettings.AppSettings; Which means they get the connectionstring for the database from a web.config file. The web.config file has the following tags: <appSettings> <add key="ConnectionInformation"
0
1665
by: balaki | last post by:
Hi All, I have a Multilingual VB6 application, which rightnow supports French language. When I debug the code, it works in French, by changing the regional settings - locale to French(France). When I create an installation setup using Install Shield (version 3.5), and installed the application. It shows only english strings. I tried installing the application in a Windows XP with support for French language. It works fine. I want this...
1
2172
by: rshivaraman | last post by:
Hi All: I need to make my database unavailable when i am loading the db. This happens daily and the db is not connected to any online app, to make the app unavailable. It is queried thru an Access and hence available all the time. The load happens daily for an hour in the morning. Is there anyway to make it inaccessible to users while loading data and then make it accessible
2
3782
by: nizargermany | last post by:
Hello, i would like to create a setup file for my VB.net application. my application contain a DataSocket from National Instrument. so I must install the NI Software befor using the DataSocket. what should i do to install all required Software and also my application in one Setup file (with VS2005)? thanks!
1
5024
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
I have a .sql script that holds the configuration of a local sql express database needed for my C# .net forms app. I would like the script to run. Right now, I have a install_db.cmd file that basically just runs the sql script from the command line. I made a console app that runs the install_db.cmd I added that console app to the application folder and then ran that as a custom action. The command windows pops up real quick, but then...
3
1827
by: Elliot | last post by:
I have written a C# program and then make the setup project. I specify the prerequisite (.NET Framework 3.5) to be downloaded as the same location as my location. However, I find that my project built has almost 200MB because the folder DotNetFX35 occupies 194MB already. How can I make it smaller? I don't want the user download .NET Framework 3.5 on Microsoft's website. Thanks for any idea in advance.
2
2024
ram09
by: ram09 | last post by:
i want to make a master server and a slave for my database ...do anyone have an idea on how i can setup a database replication on two different servers please???thanks^^
7
1446
by: gina farrow | last post by:
Hello, I need to know what would be the best way to make a database that allows only 4 users to go into the form section, and click on the forms. once the database form is open, on the side of the form(or some where on the form) there is a check box with the four users names. They have to be able to check there name on the form and the form then goes to the next user to check and they put there check mark on the form. And so...
0
9816
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10840
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10546
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6978
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5647
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3112
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.