Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
95413 Points
14106 Posts
Feb 25, 2012 08:06 AM|LINK
write one more select statement like 'select Id from tblUsers where CODe = strCode'...that will return you ID...and then you can use ExecuteScalar to catch the ID in C# - http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx
Thanks,
ramiramilu
All-Star
95413 Points
14106 Posts
Re: SQL update current ID of record?
Feb 25, 2012 08:06 AM|LINK
write one more select statement like 'select Id from tblUsers where CODe = strCode'...that will return you ID...and then you can use ExecuteScalar to catch the ID in C# - http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx
Thanks,
JumpStart