Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Why is this query throwing an “Invalid Column Name” error? [closed]

Asked by Kunal Jha Aug 23, 2021 2.1K views 1 answer
Share

About this question

As i am trying to run a simple UPDATE query as follows:

UPDATE [TILL].[dbo].[appParameters] SET [TILL].[dbo].[appParameters].[ParameterValue] = "1" WHERE [TILL].[dbo].[appParameters].[ParameterName] = "StaffTablesRefreshed"

If the field [ParameterName] is the value "StaffTablesRefreshed", then set the value of [ParameterValue] to "1".

When executed, SQL Server throws an error:

Invalid column name 'StaffTablesRefreshed'

Both [ParameterName] and [ParameterValue] are nvarchar(255).

Am I missing something obvious here? Don’t know why getting an error SQL server invalid column name.


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.