• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 823
  • Last Modified:

error Invalid column name

I am getting the following

Microsoft OLE DB Provider for SQL Server error '80040e14'

Invalid column name 'aharrison'.

/webpublishing/publishing/Admins/unassigned_tasks_c.asp, line 151


from this, I know that User_Name is valid and it is passing the name of the publisher what am I doing wrong

strSQLstmt2 = "Select * From WebPublishing.dbo.Users where User_Name =" &  strPublisher



0
garthpyper
Asked:
garthpyper
1 Solution
 
yirehCommented:
Try to change the sql statement;

strSQLstmt2 = "Select * From WebPublishing.dbo.Users where User_Name = '" &  strPublisher & "'"
0
 
aprestoCommented:
are you using a third party app to connect to the database?

why the webpublishing.dbo.users - is this the name of the table?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now