I've been having an issue with C# and SQL queries. I want to update a database entry on an active directory database table, like "domain\user.Account". However, every time I run
sqlCmd.CommandText = "UPDATE " + @"domain\user.Account" + " SET AccountStatus_id=3 WHERE Account_id=" + a.AccountId;"
It comes up with the error of "invalid syntax near '\'". I've tried escaping it through multiple ways, but it always displays the same error.
What can I do here?
Thank you in advance!