Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Raj Vasant Working With SqlParameter in .NET RE: Working With SqlParameter in .NET
pl-272086
SSC Journeyman
Points: 81
More actions
March 29, 2006 at 3:01 am
#629408
There is no need to separately instantiate SqlParameter, you can simply do this:
sqlCommand.Parameters.Add("@myID", SqlDbType.Int).Value = 1001;