Click here to Skip to main content
15,899,313 members

Comments by Member 10272815 (Top 11 by date)

Member 10272815 11-Jun-14 12:26pm View    
Sounds like your asp:Button is the problem then - they're submit buttons and when clicked post the page back to the server. You need to cancel the form submission by either returning false or the result of $("#dialog").dialog (assuming it returns a true/false) from your click function.
Member 10272815 11-Jun-14 9:44am View    
That will result in the count being up to three times greater than expected. For every row that at least one column matches the keyword it will count any of the three columns that are not NULL, not just the ones that match.
Member 10272815 11-Jun-14 9:39am View    
Count(*) is actually faster than count(Column_Name), because SQL will just get a row count for the first, while the second it has to verify that Column_Name is not null before counting the row. So if you're already removing NULLs by your where clause, count(*) is the way to go.

Have you tried breaking your query up in to smaller pieces and seeing where the slow down is?

Try executing
select @totalCount=count(*) from TableName where (Column1 Like '%[YourTestKeywordHere]%')

select @totalCount=count(*) from TableName where (Column2 Like '%[YourTestKeywordHere]%')

select @totalCount=count(*) from TableName where (Column3 Like '%[YourTestKeywordHere]%')

individually and seeing how long they take.
Member 10272815 4-Jun-14 10:22am View    
That only covers one of three potential overlaps. New start time can fall inside an existing appointment, new end time can fall inside an existing appointment, or the new appointment can entirely encompass an existing appointment.

If new start time is before existing end time, and new end time is after existing start time then you should find all conflicts.
Member 10272815 28-May-14 12:54pm View    
How (and where) are you setting imageSize?