C# / SQL Error: There was an error parsing the query. [ Token line number = 1,Token line offset = 26,Token in error = user ] -
i can't mind around error. server error point out towards line:
<select name="selectusername"> @foreach(var row in db.query(selectquerystring)) { <option>@row.username</option> } </select>
where selectquerystring
defined as:
var selectquerystring = "select id, username user";
user reserved word in sql server. try:
from [user]
c# sql razor
No comments:
Post a Comment