473,883 Members | 1,697 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 13244
imanjan
18 New Member
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.

//////////////////////////////
I do this for my C# program and change connection string whit XML file that copy to customer machine with my App.

but I install SQL Express with my App. and it has not any login
and I don't Know How to create new login(with my username & password) and attach my database to SQL express

and other Question :
How find server name of customer machine ?
Apr 26 '13 #21
vijay6
158 New Member
How find server name of customer machine ?

Hey imanjan, you get server name (by default SQL Server name will be his/her computer name) by using the following code...

Expand|Select|Wrap|Line Numbers
  1. System.Net.Dns.GetHostName();

You chose which option?
Apr 26 '13 #22
imanjan
18 New Member
You chose which option?

for what ?
Apr 26 '13 #23
vijay6
158 New Member
You chose which option?

for what ?

Hey imanjan, for database connection... i.e., Local SQL database or SQL database.
Apr 26 '13 #24
imanjan
18 New Member
I make my Data base in SQL.
what is the Local Data base ?
Apr 26 '13 #25
vijay6
158 New Member
Hey imanjan, if you choose database in SQL Server means then you need to install SQL Server in all customer system but if you choose Local database then there is no need to install SQL Server in all customer systems. You can create that local database inside your Visual Studio and attach database to your application then send that database along with your application to your customers.
Apr 26 '13 #26
imanjan
18 New Member
so how I must create that local database inside my Visual Studio and attach database to my application ?
Apr 26 '13 #27
vijay6
158 New Member
so how I must create that local database inside my Visual Studio and attach database to my application ?
Hey imanjan, its your wish.
Apr 26 '13 #28
imanjan
18 New Member
I must make a database in SERVER Explorer in Visual Studio and then make new connection there for my username & password

is it true ?
Apr 26 '13 #29
vijay6
158 New Member
Hey imanjan, first load your project in Visual Studio, go to Solution Explorer window, Right your project -> Add -> New Item -> Serive-based database then add. You can find the connection string in app.config file. While making the installer attach this database file along with your application (so there is no need to install SQL Server in customer machines).
Apr 27 '13 #30

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
1652
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
1616
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
1667
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
2173
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
3785
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
5027
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
1829
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
2025
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
1447
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
9933
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
9781
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
10734
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...
1
10836
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10407
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7960
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
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
5982
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3230
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.