Unix Technical Forum

datatable select

This is a discussion on datatable select within the SQL Server forums, part of the Microsoft SQL Server category; --> how to uppercase a table columen in datatable select //dt is a Datatable i Need to uppercase control.text and ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-16-2008, 12:13 PM
daveL
 
Posts: n/a
Default datatable select

how to uppercase a table columen in datatable select
//dt is a Datatable
i Need to uppercase control.text and table column data
i dont know how to set loginname to upper case
if (dt.Select("loginname='"+this.txLoginName.Text.ToU pper()+"'").Length>)
{
// Do Somthing
}

DaveL


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-16-2008, 12:13 PM
Plamen Ratchev
 
Posts: n/a
Default Re: datatable select

If you mean to make the value of a column uppercase, then that is done
via the UPPER function, like UPPER(loginname). However, unless you have
case sensitive collation, there is no need to do that to compare column
values.

--
Plamen Ratchev
http://www.SQLStudio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-20-2008, 06:14 PM
Philipp Post
 
Posts: n/a
Default Re: datatable select

Dave,

If you are facing casing issues with the DataTable.Select in .NET, you
should check that you have set

dt.CaseSensitive = false

what should be the default as far as I am aware.

brgds

Philipp Post


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: datatable select

Thread Thread Starter Forum Replies Last Post
Trying to set Column width for datatable(h:dataTable) usingcolumnclassess rathaiah.jammula@hhsc.state.tx.us Websphere Portal Server 0 06-06-2008 08:19 AM
Sorting in <hx:datatable> in JSF Portlets sruthi Websphere Portal Server 0 06-06-2008 07:45 AM
Re: jsf datatable row selection yurykats Websphere Portal Server 4 06-06-2008 06:40 AM
jsf datatable row selection Websphere Portal Server 4 06-06-2008 06:40 AM
Stored Procedures on SQL 2000 compared to dotnet's Datatable.select nandan SQL Server 3 02-29-2008 04:48 AM


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com