Re: How to use ADO fast?



Personally, on the web scenario I like using a Salted/Hashed password in
..config. I used to do the Registry thing but a lot of our clients don't
want us writing to the registry if at all possible. Most of the winforms
apps I work on use Remoting heavily so we are already doing a lot with
config files. by the time you throw in the application blocks, it's often a
good fit to throw in the connection manager as well in the config.

I'm not saying this way is the best by any means, just the one I prefer. If
you don't mind me asking, what are the primary benefits in your opinion to
coding it in the dll?
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:ugdFMyAAGHA.3372@xxxxxxxxxxxxxxxxxxxxxxx
> Miha,
>
>> Cor, hardcoding connection string is silly by any mean, trust us.
>
> Do you know a saver place than in a DLL in the Bin directory for a
> webserver for that.
> (Yes I know one the registry of such a server).
>
> However a lot of people use for ASPNET scripting .Net. In that case it is
> the worst place to put your connection string.
>
> Cor
>
> "Miha Markic [MVP C#]" <miha at rthand com> schreef in bericht
> news:eQGKm0$$FHA.360@xxxxxxxxxxxxxxxxxxxxxxx
>> Cor, hardcoding connection string is silly by any mean, trust us.
>>
>> --
>> Miha Markic [MVP C#]
>> RightHand .NET consulting & development www.rthand.com
>> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>>
>> "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
>> news:%23OvY4j%23$FHA.3140@xxxxxxxxxxxxxxxxxxxxxxx
>>> Bill,
>>>
>>> I let the windowsform text (sorry) I did mean a webform, in a windowform
>>> we agree. A webapplication is not something that you so often standard
>>> deploy in my opinion.
>>>
>>> Cor
>>>
>>
>>
>
>


.



Relevant Pages

  • RE: [Full-Disclosure] M$ - so what should they do?
    ... proprietary editor. ... file system API to open and display the config files. ... can you use any editor that uses the registry API to open and display the ...
    (Full-Disclosure)
  • RE: accessing membership DB from windows (not ASP) app
    ... The problem is that SqlRoleManager does not re-read the connection ... System.Configuration.Configuration config = ... the wrong connection string, it continues to use the first string. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: accessing membership DB from windows (not ASP) app
    ... Dominick Baier ... In your test was the original connection string to the wrong database? ... private static void ShowCS() ... private static NameValueCollection ReadConfig(string config) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: accessing membership DB from windows (not ASP) app
    ... In your test was the original connection string to the wrong database? ... SqlRoleProvider prov1 = GetProvider; ... private static void ShowCS() ... Configuration config = ConfigurationManager.OpenExeConfiguration; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Enterprise Library 3.1 - slow?
    ... Loading the class without the call to the database object simply loads ... My Config file is as follows: ... Post your .config file connection string information so the ...
    (microsoft.public.dotnet.languages.csharp)

Loading