Quantcast
Channel: DataView RowFilter vs SQL WHERE
Browsing all 12 articles
Browse latest View live

Re: DataView RowFilter vs SQL WHERE

Just thinking out loud here: can you programatically add to a regex match collection, similar to List.Add?Or write the Regex Match Collection groups to a list. Can a list store multiple 'parts':List...

View Article



Re: DataView RowFilter vs SQL WHERE

Hi,If I remember it could be that date literal shouldn't be expressed the same way in a RowFilter selection (so it's perhaps does a string comparison rather than a data comparison). Check the doc for...

View Article

Image may be NSFW.
Clik here to view.

Re: DataView RowFilter vs SQL WHERE

I figured it out. In my switch statement I have the same thing twice, so the later call was overwriting the earlier call.The switch is inside a Regex Matches collection:switch (ColName.ToLower()) {...

View Article

Re: DataView RowFilter vs SQL WHERE

Yeah I know. I've got a lot of nested repeaters so direct to SQL is too slow. I store all the resultsets in a DataSet and do the nesting there.

View Article

Re: DataView RowFilter vs SQL WHERE

I'd just like to say that given the choice you should opt for the SQL where. It's more optimal because it's less chaty.

View Article


Re: DataView RowFilter vs SQL WHERE

Yeah I didn't think it was that.The StartDate and EndDate properties are actually in App_Code folder because I need them on multiple pages. The dvRowFilter posted is in the actual pages code behind...

View Article

Re: DataView RowFilter vs SQL WHERE

ldoodle It works as expected as well! So StringBuilder definitely not liking properties!That's not it, you have a bug somewhere in the code outside what's posted.

View Article

Re: DataView RowFilter vs SQL WHERE

If I initialize a new datetime object called today:private DateTime Today = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day); ... ... ......

View Article


Re: DataView RowFilter vs SQL WHERE

For some reason, this line does not like the StartDate and EndDate properties being used:dvRowFilter.Append(String.Concat("(", ColName, " >= '", StartDate, "' and ", ColName, " < '", EndDate,...

View Article


Re: DataView RowFilter vs SQL WHERE

I am using proper types. The 2 dates are made up of a StartDate and EndDate:private DateTime _StartDate, _EndDate;... public DateTime StartDate { get { return _StartDate; } set { _StartDate = value; }...

View Article

Re: DataView RowFilter vs SQL WHERE

SQL server will automatically cast '01/01/0001 00:00:00' to a date.  Where as, I'm pretty sure, the .NET language is comparing strings.  You should always use proper types in .NET being that .NET is a...

View Article

DataView RowFilter vs SQL WHERE

Hey,Does a RowFilter require some 'extras' to get it to work the same as a direct SQL WHERE clause.This statement returns massively different result sets:((ref like 'joe b%' or (due >= '01/01/0001...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images