|
-
Jun 17th, 2005, 12:33 PM
#1
Re: Storing SQL Con String settings
I think because its easier in code to read in values from it because there are built in functions to obtain data from the app.config file.
like
Dim MyConnString as string = ConfigurationSettings.AppSettings("SQLConnString")
where the app.config looks something like this
<appSettings>
<add key="SQLConnString" value="ConnectionStringHere"/>
</appSettings>
I wrote all that freehand.. so it might take some modification to actually work.. but u should get the idea zak
-
Jun 17th, 2005, 12:45 PM
#2
Re: Storing SQL Con String settings
 Originally Posted by kleinma
I think because its easier in code to read in values from it because there are built in functions to obtain data from the app.config file.
like
Dim MyConnString as string = ConfigurationSettings.AppSettings("SQLConnString")
where the app.config looks something like this
<appSettings>
<add key="SQLConnString" value="ConnectionStringHere"/>
</appSettings>
I wrote all that freehand.. so it might take some modification to actually work.. but u should get the idea zak
Yeah i catch the idea.... it might be easier to read it, but not to write in it, Writing in XML via DataSet is much more easier, and reading form it is not really a big problem too...
Anyways .. everybody might have is own idea on that ... my 0.02¢
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
|
Click Here to Expand Forum to Full Width
|