Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 28th, 2012, 02:41 AM
Authorized User
 
Join Date: May 2012
Posts: 24
Thanks: 5
Thanked 1 Time in 1 Post
Default page 413

Hi Sir,
i have implemented the exercise on page 412,413. Everything is good. But there is a query. When I put the filter LIKE'%rock%', then in my filter column LIKE'%rock% changes to LIKE N'%rock%'. And similarly in my SQL pane (Name LIKE N'%rock%') was written.
I don't understand why this word 'N' is written all though you don't mentioned any thing about it in the book.

Please guide.
 
Old May 28th, 2012, 03:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

VWD adds the N to mark the value that follows it as Unicode. Check out these links for more details:

LIKE N'%rock%' Chap 12 - Page 413, #6
'N' prefix in SQL statements ?
http://databases.aspfaq.com/general/...-n-prefix.html

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Using LIKE (p 413) jlransford BOOK: Beginning ASP.NET 4 : in C# and VB 1 December 20th, 2011 03:28 PM
LIKE N'%rock%' Chap 12 - Page 413, #6 jkoyle BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 6th, 2011 02:26 PM
PDF giving first page as blank if page count > 1 using xsl:fo srmxslca XSLT 14 May 5th, 2011 05:01 AM





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