Friday, March 30, 2012
How to Schedule Reports and How to use File Share Suscription
Wednesday, March 28, 2012
How to schedule a Stored Procedure to run nightly in SQL Server
What is the easiest way to schedule a stored procedure to run nightly at a
specified time ?
Thanks in advance.Creating a job (sp_add_job) and scheduling it (sp_add_jobschedule). You can
use EM to do this. Open the server group, locate the server, open it, go to
management, right click on jobs and select "New job".
AMB
"Dave Pylatuk" wrote:
> Hello.
> What is the easiest way to schedule a stored procedure to run nightly at a
> specified time ?
> Thanks in advance.|||Thanks very much. It is so simple I feel silly.
"Alejandro Mesa" wrote:
> Creating a job (sp_add_job) and scheduling it (sp_add_jobschedule). You can
> use EM to do this. Open the server group, locate the server, open it, go to
> management, right click on jobs and select "New job".
>
> AMB
> "Dave Pylatuk" wrote:
> > Hello.
> >
> > What is the easiest way to schedule a stored procedure to run nightly at a
> > specified time ?
> >
> > Thanks in advance.
Monday, March 12, 2012
How to return sets by filtering those tuples with null values in a MDX statement?
Hi, dear friends,
How can we return the result by filtering tuples with null values? (e.g. I want to return the result for tuples specified by dimention DimA, measures B,C. therefore I want to filter the result with nulls values of B,C for DimA).
Hope it is clear for your help.
And I am looking forward to hearing from you shortly for your help.
Thanks a lot.
With kind regards,
Yours sincerely,
It depends what you mean by "filter" - do you want the null values included or excluded?
And what does B,C mean? Do you mean if either is null or both?
The following is one solution if you want to return members from DimA where both measures are empty (null).
Filter(DimA.members, IsEmtpy(Measures.B) AND IsEmpty(Measures.C)
but I would expect somthing like this could be faster as it could use block computation instead of cell-by-cell evaluation.
INTERSECT(NonEmpty(DimA.Members, Measures.B),NonEmpty(DimA.members, Measures.C))
|||Hi, Darren,
Thanks a lot for your help.
With kind regards,
Yours sincerely,
How to return sets by filtering those tuples with null values in a MDX statement?
Hi, dear friends,
How can we return the result by filtering tuples with null values? (e.g. I want to return the result for tuples specified by dimention DimA, measures B,C. therefore I want to filter the result with nulls values of B,C for DimA).
Hope it is clear for your help.
And I am looking forward to hearing from you shortly for your help.
Thanks a lot.
With kind regards,
Yours sincerely,
It depends what you mean by "filter" - do you want the null values included or excluded?
And what does B,C mean? Do you mean if either is null or both?
The following is one solution if you want to return members from DimA where both measures are empty (null).
Filter(DimA.members, IsEmtpy(Measures.B) AND IsEmpty(Measures.C)
but I would expect somthing like this could be faster as it could use block computation instead of cell-by-cell evaluation.
INTERSECT(NonEmpty(DimA.Members, Measures.B),NonEmpty(DimA.members, Measures.C))
|||Hi, Darren,
Thanks a lot for your help.
With kind regards,
Yours sincerely,
Friday, March 9, 2012
How to return a range of rows?
rows? For example:
-- tblContact
-- (
-- SSN char(9),
-- FirstName varchar(50),
-- LastName varchar(50)
-- )
-- This table contains 500 rows.
Select * from tblContact -- Return only rows 5 through 10
Thanks"Briniken" <briniken@.yahoo.com> wrote in message
news:68dae6d3.0311012131.6f9faf26@.posting.google.c om...
> How can a SQL statement be written to return a specified range of
> rows? For example:
> -- tblContact
> -- (
> -- SSN char(9),
> -- FirstName varchar(50),
> -- LastName varchar(50)
> -- )
> -- This table contains 500 rows.
> Select * from tblContact -- Return only rows 5 through 10
> Thanks
Data in tables doesn't have any order, so you have to decide how to say
which are the 'first' 10 rows. Assuming that you want rows 5 to 10 when
ordered by LastName, then this is one possible solution:
select top 5 * from
(
select top 10 *
from tblContact
order by LastName asc) dt
order by LastName desc
Alternatively, you can look at the first example in this KB article:
http://support.microsoft.com/defaul...kb;en-us;186133
If you add "having count(*) between 5 and 10" to the query, you should also
get the results you want.
Simon|||Hi
There is not equivalent of a row number in SQL Server, therefore you need to
be able to order the values, but something like
SELECT TOP 5 SSN. FirstName, LastName FROM
( SELECT TOP 10 SSN. FirstName, LastName FROM tblContact ORDER BY SSN ASC )
A
ORDER BY SSN DESC
Will give you the rows, but not in order!
Also check out the solution in the following thread
http://groups.google.com/groups?hl=...Newsposts%2BTOP
John
"Briniken" <briniken@.yahoo.com> wrote in message
news:68dae6d3.0311012131.6f9faf26@.posting.google.c om...
> How can a SQL statement be written to return a specified range of
> rows? For example:
> -- tblContact
> -- (
> -- SSN char(9),
> -- FirstName varchar(50),
> -- LastName varchar(50)
> -- )
> -- This table contains 500 rows.
> Select * from tblContact -- Return only rows 5 through 10
> Thanks