RSS Forums RSS

Using Select Statement to retrieve data from SQL Server 2005 database

Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Reply
Posts: 3
Reputation: Ugochukwu is an unknown quantity at this point 
Solved Threads: 0
Ugochukwu Ugochukwu is offline Offline
Newbie Poster

Using Select Statement to retrieve data from SQL Server 2005 database

  #1  
Nov 21st, 2008
Please friends am working on a project in which am trying to make it possible that when the first letter/alphabet of a name is keyed into a textbox linked to a search button and when the search button is pressed, all the names/rows begining with that first letter will appear in the Data Gridview provided for it.
Please i need the right SQL Select command statement to achieve this.You can also email me to brunosollozo42006@yahoo.com.Thank you!
AddThis Social Bookmark Button
Reply With Quote  
Posts: 240
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 22
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz in Training

Re: Using Select Statement to retrieve data from SQL Server 2005 database

  #2  
Nov 22nd, 2008
You will need to use the LIKE operator with the % wildcard. There's more information here:
http://www.techonthenet.com/sql/like.php
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the VB.NET Forum
Views: 852 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:52 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC