Reply to Re: not permitted in this context

Your name:

Reply:


Posted by blueghost73@yahoo.com on 07/19/06 04:20

Kivak wrote:
> Hi,
>
> I am having a SQL Server 2005 problem with my Insert statement. I am
> sending a command via my website to my database. It comes up with an
> error I'll put below. The code is here:
>
> "INSERT INTO tblUsers (userName) VALUES ( userNameTest)"
>
> This is the error I get:
>
> The name "userNameTest" is not permitted in this context. Valid
> expressions are constants, constant expressions, and (in some contexts)
> variables. Column names are not permitted.
>
> Now, userName is a varchar field in the database. What is wrong?
>
> Kivak

I'm no expert, so I'm just guessing here, but there are two things I'd
look for. First, is your userNameTest in quotes inside those
parentheses? Second, is there a column in the table that is called
userNameTest?

--Richard

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация