when i type declare it does not show in the intellisense list so i can select if

Skullptor 0 Reputation points
2024-05-13T14:23:59.52+00:00

I keep getting the error must declare scalar variable "@SerialNo". Doesn't make any sense because the variable is a txt variable. This is occuring while trying to save to a sql database - cmd.Parameters.AddWithValue("@txtSerialNnumber", txtSerialNo.Text);

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.