Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 28th, 2010, 11:24 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default 'N' prefix in SQL statements ?

Hello,

I am at the page 413 of your book Imar. At the number 6. You tell us to write LIKE '%ROCK%' in the Filter case in the criteria pane.

When im writting this ... VWD add an 'N' before '%ROCK%' which result into LIKE N'%ROCK%'.. you don'T seem to mention anything regarding this N letter appearing.. even if i remove it.. it still re-add it to the filter LIKE statement. I can only correct this in the SQL Pane.

Just wondering what going on ?

Thanks.
Reply With Quote
The Following User Says Thank You to Rushino For This Useful Post:
Sleette (June 19th, 2010)
  #2 (permalink)  
Old April 28th, 2010, 11:37 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Rushino,

The n prefix makes the text following it Unicode. The query designer does this by default.

For more info: http://databases.aspfaq.com/general/...-n-prefix.html

In most cases, you can safely ignore it....


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!
Reply With Quote
The Following 2 Users Say Thank You to Imar For This Useful Post:
Rushino (April 28th, 2010), Sleette (June 19th, 2010)
  #3 (permalink)  
Old April 28th, 2010, 12:01 PM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

Thanks! :)
Reply With Quote
  #4 (permalink)  
Old June 19th, 2010, 05:15 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Yeah, thanks.. this was bugging me as well.
Reply With Quote
  #5 (permalink)  
Old September 25th, 2012, 06:01 AM
Authorized User
Points: 100, Level: 1
Points: 100, Level: 1 Points: 100, Level: 1 Points: 100, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

Same here, Thank you ^_^
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i use asp within sql statements knight Classic ASP Databases 43 May 24th, 2007 09:32 AM
CASE Statements in T-SQL atcs2152 SQL Server 2000 3 April 28th, 2006 10:53 AM
Plz Help - Nested SQL Statements? esemerda SQL Language 2 February 28th, 2005 06:41 AM
How I Can N' Switch In My SQL Query In ADO.NET yoord ADO.NET 7 June 13th, 2004 02:39 AM
SQL Statements marmer Classic ASP Basics 3 November 13th, 2003 01:42 AM



All times are GMT -4. The time now is 10:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.