PC Review


Reply
Thread Tools Rate Thread

Ado.net Dataset Select using COLLATE

 
 
Rob W
Guest
Posts: n/a
 
      4th Oct 2009
Greetings,

I want to count the rows where the login and password are the same.

The password is case sensitive, the login isn't as selected from a
pre-populated combo box and can never be changed.

I know I can set collation at table creation time but how do I apply it to
the sql statement below?

At the moment I get the syntax error Syntax error: Missing operand after
'COLLATE' operator.
Dim validuser As Integer = usersDS.Tables(0).Select("Name = '" &
cboLogin.SelectedValue.ToString & "' and password COLLATE
SQL_Latin1_General_CP1_CI_AS = '" & txtPassword.Text & "' ").Count

Thanks

Rob



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
select from dataset justanothernewbie804@yahoo.com Microsoft C# .NET 5 15th May 2007 12:20 PM
Word documents won't collate, even though collate box is checked. =?Utf-8?B?Ymxub3J3b29k?= Microsoft Word Document Management 1 30th Mar 2005 09:51 AM
Dataset XML Select =?Utf-8?B?UmVn?= Microsoft ADO .NET 3 10th Mar 2005 01:10 AM
Can't select a dataset in the IDE Henke Microsoft ASP .NET 0 29th Sep 2004 05:39 PM
DataSet.Select Nathan Microsoft ADO .NET 11 22nd Jan 2004 08:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 AM.