Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Objectdatasource parameters

Started 1 month, 2 weeks ago by craigbtx
Can I paramterize the following query to show only the records that have col1 = NOT NULL OR Show all records regardles of col1 values OR to show only the records that have col2 = NOT NULL OR Show all records regardles of col2 values ? I only to filter the results for 1 column at a time. I was thinking SELECT ReadingDate, AvgFeedWaterTempF, AvgCondensateTempF FROM...
Site: Forums - ASP.NET Forums  Forums - ASP.NET Forums - site profile
Forum: Data Access and ObjectDataSource Control  Data Access and ObjectDataSource Control - forum profile
Total authors: 1 author
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: asp.net

Other posts in this thread:

craigbtx replied 1 month, 2 weeks ago
You could do this.. SELECT ReadingDate, AvgCondensateTempF, AvgFeedWaterTempF FROM BoilersTestDataSupplyWaterAveragesPerDay WHERE (SystemID = 33) AND (ISNULL(AvgCondensateTempF, 0) <> @CT) AND (ISNULL(AvgFeedWaterTempF, 0) <> @FW1) ONLY one parameter can be 0 at a time. You can use 0 or any number the column is not equal too like 999999999 or -1. the column with...

 

Top contributing authors

Name
Posts
craigbtx
2
user's latest post:
Objectdatasource parameters
Published (2009-11-13 19:43:15)
You could do this.. SELECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadingDate, AvgCondensateTempF, AvgFeedWaterTempF FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BoilersTestDataSupplyWaterAveragesPerDay WHERE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SystemID = 33) AND (ISNULL(AvgCondensateTempF, 0)...

Related threads on "Forums - ASP.NET Forums":

Related threads on other sites:

Thread profile page for "Objectdatasource parameters" on http://www.asp.net. This report page is a snippet summary view from a single thread "Objectdatasource parameters", located on the Message Board at http://www.asp.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity