Friday, March 30, 2012
How to Insert Summary Info in a table at midnight everyday?
Need to count the number of (STATUS =)'Opened', 'Testing', 'Closed' and
'Pending' from the Cases table and INSERT these values into the
'Summary' Table at 10:00 PM everyday.
How do I schedule an Auto INSERT? Any help will be greatly appriciated
You can simply schedule a job using the SQL Agent job scheduler. Look in
BooksOnLine for more details on scheduling or SQL Agent.
Andrew J. Kelly SQL MVP
"rabig" <rabig@.yahoo.com> wrote in message
news:1161137144.561928.202420@.i3g2000cwc.googlegro ups.com...
>I have to populate a summary table everyday.
> Need to count the number of (STATUS =)'Opened', 'Testing', 'Closed' and
> 'Pending' from the Cases table and INSERT these values into the
> 'Summary' Table at 10:00 PM everyday.
> How do I schedule an Auto INSERT? Any help will be greatly appriciated
>
sql
Wednesday, March 7, 2012
How to implement search function
I have a table search the record. The user can search by name, id, status, address and other information.
I want to make the search function more robust. For example, when the database has a record with name = "Michael Jackson", either typing any subset of the name will show this record.
I would like to know if there is any easy way to implement this with VS2005 and SQL2005 Express.
Thank you
Take a look at the LIKE command in SQL, some examples :http://www.techonthenet.com/sql/like.php ,Hope this helps or gives you some steer.
|||This thread contains some good tips on the SQL searching subject:http://forums.asp.net/thread/1529167.aspxFriday, February 24, 2012
How to ignore a dimension in MDX?
SurveyID ( --> Survey Dimesion)
GroupID( --> Group Dimension)
StatusID ( --> Status Dimension ... e.g. Complete, InProgress, New)
GroupCount (the actual measure)
How would I create a calculated member that would return the "overall" count for a specific group in a survey (e.g. ignore Status dimension) regardless if the user is slicing the data by Status or not?
Thanks again - wgpubs
Try this ("ignoring" the status dimension - your exact naming may differ):
CREATE MEMBER CURRENTCUBE.MyCount AS
'([Status].[StatusID].[All StatusID],[Measures].[GroupCount])';
|||tried this ... but if I include the ResponseStatus dimension in my slicer it still filters on ResponseStatus.In my slicer I got survey, group and response status ... the kind of report I'm trying to generate in SSRS needs to looks something like this:
Survey Group Count OverallCount
... where Count should use the ResponseStatus dimension (so that users can filter out certain statuses and what not thru a RS parameter) while OverallCount should not.|||My suggestion should work, if I understand you correctly. Please post your exact MDX query.|||Yah I thought it would too ... but no go. here is the query:
CREATE MEMBER CURRENTCUBE.[MEASURES].[Overall Group Count]
AS ([Response Status].[Response Status].[All], [Measures].[Group Count]),
VISIBLE = 1 ;