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
dave.baldwin
SSC Journeyman
Points: 88
More actions
November 9, 2007 at 6:41 am
#749822
The first line in the second example isn't legal without an explicit conversion or cast.
I'm pretty sure Raj meant to write...
string myID = "1001";
instead of...
int myID = "1001"; // this is an obvious compiler error