Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2013, 12:31 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default This makes no sense

Why is it that when I run the following query against your database in the SQL Server management studio:

Code:
select * from Genre 
where Name Like "Pop"
I get the following error:
Msg 207, Level 16, State 1, Line 2
Invalid column name 'Pop'.
I get the same error message with the following query as well.
Code:
select Id from Genre 
where Name like "Pop%"
Isn't that the way a that like statement is supposed to look like??? Am I missing something here???!!! I am noting short of super confused on this one like you wouldn't believe. Any help on this would be so greatly appreciated.
 
Old May 21st, 2013, 02:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Take another look at the section "Filtering data" on page 429; you're using the wrong type of quotes.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 21st, 2013, 08:08 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by Imar View Post
Take another look at the section "Filtering data" on page 429; you're using the wrong type of quotes.

Cheers,

Imar
Yeah I know. I using a book that for Transact SQL that was published in 1997, and it showed the like phrase being used with the "" quotes. It wasn't until I looked at an example in your book that it finally worked. But it was really a head scratcher for a while for sure. I have been using LINQ with entity framework for so long that I have gotten totally out of practice with just using plain ole standard SQL queries. So with that being the case, do you think that standard SQL queries will become a thing of the past in .NET application development of the future?
 
Old May 21st, 2013, 01:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

No, I don't think so. I think there will be room for both....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
intelli-sense sometimes works and sometimes doesn't folly BOOK: Ivor Horton's Beginning Visual C++ 2010 13 January 17th, 2013 07:17 PM
How to sense mouse clicks & other user input while app is busy mike123abc Pro VB.NET 2002/2003 1 December 7th, 2009 09:55 AM
Excel makes extra files rtr1900 Excel VBA 3 April 29th, 2009 06:15 AM
Making sense of of PHP/SQL C/M/R lord_midnight Beginning PHP 0 November 23rd, 2008 05:50 PM
Does this question have any sense prashar SQL Language 2 October 24th, 2005 01:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.