|
-
Jun 17th, 2005, 12:33 PM
#8
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
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
|