Please Correct Me with the SQL Query

please correct me with the sql query

I think I got it.

Are you getting an error while trying to COMPILE the code, as opposed to running the SQL query?

I'm going to bet that you're using C#, and that you should do multi-line strings with an @-symbol before the "-symbol. Such as this:

string blabla = @"
hello
there
";

Then of course you need it also when you open up the string after branchId

sql query error incorrect syntax

SQL doesn't need the double equal signs.

SELECT ImageName FROM dbo.ProfilePic WHERE Username = @UserName


Related Topics



Leave a reply



Submit