Mu query is write or wrong
SELECT @inverd_id=invrd_id FROM Dispatch_Master where (dis_id =@dis_id)
error created
Error in SELECT clause: expression near '='.
Unable to parse query text.
Query
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Dec 19, 2014, 4:10 AM EST
SELECT invrd_id FROM Dispatch_Master WHERE dis_id = @dis_id AND invrd_id = @invrd_id
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 19, 2014, 2:10 AM EST
No problem in this query it will work on sql server , only problem might be data type is mismatching check you are associating correct data type or not.
Michal HabalcikRank #902 · 2.3K reputationPosted Dec 19, 2014, 2:25 AM EST
String.Format("SELECT {0}=invrd_id FROM Dispatch_Master where (dis_id =@dis_id)",
inverd_id)
Najim MullaRank #2,088 · 689 reputationPosted Dec 19, 2014, 8:05 PM EST