Re: ADO.NET SQLConnection Best Practices



DJB-CT wrote:
I've opened a ticket with PSS regarding intermittant ADO.NET SQL
errors ( SRX080221600812).


There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic ADO newsgroup. ADO.Net bears
very little resemblance to classic ADO so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.adonet.


While reviewing our code, the PSS engineer stated that ADO.NET 2.0
SQLConnection objects at the class level are a bad idea and
SQLConnections should not be passed as method parameters, but I have
not been able to find whitepapers confirming the recommendations.

Are there whitepapers that explain where a SQLConnection, with code
samples?

Thanks in advance.

I think you should look at Data Access Application Block here:
http://msdn2.microsoft.com/en-us/library/aa480453.aspx

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • Re: How to use ADO.NET in vbs file called from command line?
    ... That's because you provided the connection string for a SQLConnection ... code: it is classic ADO. ... Please reply to the newsgroup. ...
    (microsoft.public.scripting.vbscript)
  • Re: Updating column property on table gives error
    ... in code instead of when the append happens. ... Please reply to the newsgroup. ... This email account is my spam trap so I ...
    (microsoft.public.data.ado)
  • Re: Multi-step OLE DB operation generated errors
    ... I think the reason it hasn't solved is that this database has the ... Doesinterbaseprovide a trace tool like MS SQL Server's Profiler? ... Please reply to the newsgroup. ... This email account is my spam trap so ...
    (microsoft.public.data.ado)
  • Re: I know Im close but Im getting a strange response
    ... > The XML file can be ruled out because it acts as a datasource. ... > The XSL file only acts as a template for the results. ... >> Please reply to the newsgroup. ... >> header is my spam trap, so I don't check it very often. ...
    (microsoft.public.scripting.jscript)
  • Re: Search Date and Time
    ... in a single Date/Time field. ... Microsoft MVP - ASP/ASP.NET ... Please reply to the newsgroup. ... This email account is my spam trap ...
    (microsoft.public.access.queries)

Loading