C
ChrisB
Hello:
I just completed reading "Best Practices for Using ADO.NET" in MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/h
tml/adonetbest.asp) and was surprised to find no discussion on ADO
parameters.
Specifically, I was wondering how much information should be provided when
instantiating a parameter. The simplest approach seems to work just fine:
SqlParameter sqlParameter = new SqlParameter("@ConsumerID", ConsumerID);
Under what circumstances should additional information such as parameter
datatype, size, etc. be included? Is there any benefit to including this
information?
Thanks for any input.
Chris
I just completed reading "Best Practices for Using ADO.NET" in MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/h
tml/adonetbest.asp) and was surprised to find no discussion on ADO
parameters.
Specifically, I was wondering how much information should be provided when
instantiating a parameter. The simplest approach seems to work just fine:
SqlParameter sqlParameter = new SqlParameter("@ConsumerID", ConsumerID);
Under what circumstances should additional information such as parameter
datatype, size, etc. be included? Is there any benefit to including this
information?
Thanks for any input.
Chris