Coding Thread, C#/SQL 2005 question in Coding and Web Development; Ok looking for info on how to go about storing the connection to a SQL 2005 server in an XML ...
-
19th May 2007, 04:00 PM #1 C#/SQL 2005 question
Ok looking for info on how to go about storing the connection to a SQL 2005 server in an XML file
Idea: (in Pseudocode)
if not exist xml_file
prompt for sql server info (dbserver, username, password)
else run app.
At present my app has the sql info hard-coded into the app, but that is kinda limiting.
-
-
IDG Tech News
-
19th May 2007, 04:56 PM #2
-
-
22nd May 2007, 08:16 AM #3 Re: C#/SQL 2005 question
What version of C#? 2005 has a Settings file that you can use for this kind of thing. Have a look at http://msdn2.microsoft.com/en-us/library/aa730869(vs.80).aspx
-
-
22nd May 2007, 01:06 PM #4 Re: C#/SQL 2005 question
It's 2005 yeah - will have a look cheers.
-
-
29th June 2007, 05:12 AM #5
- Rep Power
- 0
Re: C#/SQL 2005 question
Hi,
If You are developing a Windows application, use App.config file for storing connection string details. If web application, use Web.Config file.
Books for programmers
http://www.vkinfotek.com
-
SHARE:
Similar Threads
-
By hayjo86 in forum MIS Systems
Replies: 2
Last Post: 20th December 2007, 11:34 AM
-
By jcollings in forum MIS Systems
Replies: 12
Last Post: 22nd October 2007, 03:00 PM
-
By dezt in forum MIS Systems
Replies: 11
Last Post: 26th September 2007, 10:40 PM
-
By steve in forum MIS Systems
Replies: 54
Last Post: 20th August 2007, 01:35 PM
-
By Norphy in forum MIS Systems
Replies: 22
Last Post: 5th April 2007, 10:20 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules