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
How to Find the Last Modified Date, Modified User of an Stored Procedure in SQL Server 2008
Informix 7.3 Isql Insert Statement - Text/Blob/Clob Field Insert Error
Fewest Number of Buckets to Bag Elements in Bigquery
Stored Procedure with Variable Number of Parameters
SQL 2005 Force Table Rename That Has Dependencies
How to Get Use Text Columns in a Trigger
SQL Delete Records Within a Specific Range
Ansi_Nulls and Quoted_Identifier Killed Things. What Are They For
Postgresql - View Schema Privileges
How to Enforce Set-Like Uniqueness Between Multiple Columns
Pivot a Table on a Value But Group the Data on One Line by Another
Query SQL to Subtract Two Fields
Change a Primary Key from Nonclustered to Clustered
A Select Query Selecting a Select Statement
How to Show Blank Record in SQL If Duplicate Rows Exists
How to Extract Year and Month from Date in Postgresql Without Using To_Char() Function
SQL Query to Add a New Column After an Existing Column in SQL Server 2005