If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Microsoft ASp.NET Web Matrix - Bugs?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-05, 20:29
kennyharrill kennyharrill is offline
Registered User
 
Join Date: Aug 2005
Posts: 24
Microsoft ASp.NET Web Matrix - Bugs?

Hi. I'm developing some tables in a database using Web Matrix in an effort to update a website I do, and am experiencing some problems. One of my tables is called "areadining". The column headings are CODE, CITYCATEGORY, NAME, ADDRESS, CITY, STATE, ZIP, and PHONE. The records I'm using under CITYCATEGORY are Montezuma, Oglethorpe, and Ellaville. When I run a Test Query, I'm using SELECT * FROM areadining WHERE CITYCATEGORY = "MONTEZUMA". I've also tried running:

SELECT * FROM areadining WHERE CITYCATEGORY = "Montezuma"

When I try to run the test query, I get an error, Invalid Column=Montezuma. Montezuma is NOT of my column headings. What gives?

Any help will be appreciated.

Ken
Reply With Quote
  #2 (permalink)  
Old 10-13-05, 11:43
odamsr odamsr is offline
Registered User
 
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 58
I am sure that you should wrap Montezuma in single quotes. It should look like this:

SELECT * FROM areadining WHERE CITYCATEGORY = 'Montezuma'

Shannon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On