User
is a reserved keyword, so you must use square brackets to make it explicit that you mean the object named “User” it, i.e. use [User]
instead of User
.
More Related Contents:
- What represents a double in sql server?
- Passing List to SQL Stored Procedure
- Generate class from database table
- Generating sql code programmatically
- How can I round a value in SQL
- How do I update a value in C# and SQL Server? [closed]
- How to pass an array into a SQL Server stored procedure
- How to get last inserted id?
- Execute Insert command and return inserted Id in Sql
- Adding multiple parameterized variables to a database in c#
- Getting return value from stored procedure in C#
- SQL WHERE clause matching values with trailing spaces
- Query extremely slow in code but fast in SSMS
- SqlBulkCopy from a List
- Code to validate SQL Scripts
- WHERE IN (array of IDs)
- SQLException : String or binary data would be truncated
- SQL: Update a row and returning a column value with 1 query
- SqlConnection.Close() inside using statement
- ALTER TABLE DROP COLUMN failed because one or more objects access this column
- When executing a stored procedure, what is the benefit of using CommandType.StoredProcedure versus using CommandType.Text?
- Can I use ADFS 2.0 to authenticate certain users against SQL Server?
- What is passing parameters to SQL and why do I need it?
- The variable name ‘@’ has already been declared. Variable names must be unique within a query batch or stored procedure
- How to pass a null variable to a SQL Stored Procedure from C#.net code
- How to insert data into SQL Server
- How do I calculate the equivalent to SQL Server (hashbytes(‘SHA1’,[ColumnName])) in C#?
- Use SQL Server time datatype in C#.NET application?
- How to give ADO.NET Parameters
- Is SqlConnection.Close() need inside a Using statement?