Forum Replies Created

Viewing 15 posts - 226 through 240 (of 402 total)

  • RE: Reuse view?

    so please spare me the 'Post your SQL' spankings

    Not a good way to ask for help or advice!! 😉

    Just my two cents but I really don't like nesting views in...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Today, Tomorrow, This Week

    You can use these in your WHERE clause to change what is returned:

    SELECT

    DAY(DATEADD(dd,1,GETDATE())) --Tomorrow

    SELECT

    CAST(DATEADD(DAY , 7-DATEPART(WEEKDAY,GETDATE()),GETDATE()) AS DATE) --Last Day of the Week

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Today, Tomorrow, This Week

    so if time is now 12:31, you want to see ID 2 and 4?

    So based on your data above what would you like to be returned as Anthony asked?

    Are you...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Today, Tomorrow, This Week

    If you just want to show records that are due use GETDATE()

    SELECT *

    FROM YourTable

    WHERE

    DueDate > GETDATE()

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Qurery help

    Hi

    Does this help?

    CREATE TABLE #SAMPLE

    (

    SOURCE_FILE_ID INT,

    CYCLE_ID INT,

    TASK_ID INT ,

    TASK_STATE_DESC VARCHAR(100)

    )

    INSERT INTO #SAMPLE

    SELECT 22,1,1,'Valid' UNION ALL

    SELECT 22,1,2,'Error' UNION ALL

    SELECT 22,1,3,'Error' UNION ALL

    SELECT 22,1,4,'Setup Fail' UNION ALL

    SELECT 22,1,5,'Setup Fail' UNION ALL

    SELECT...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Booked 70-450

    anthony.green (5/28/2012)


    Right well tomorrow is going to be a scary day.

    Not only do I have my 70-450 exam in the morning, in the afternoon I also find out what sex...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: How to freez report column headers, when scrolling reports the column should not scroll only data ...

    Not sure sorry as I've not used 2005

    I can only suggest giving it a try and see if it produces the desired result?

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: How to freez report column headers, when scrolling reports the column should not scroll only data ...

    Do you mean is SSRS?

    If so yes.

    In VS look at the bottom right of the screen where your column groups are displayed, click on the small down arrow to...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Query Help

    Hi

    You can do all of this using SSIS packages

    This Stairway may help you

    http://www.sqlservercentral.com/stairway/72494/

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: Could not be bound...

    Hi

    You are trying to JOIN on a table that you havent defined yet:

    from GLDEFRLS

    INNER JOIN accropts AC

    ON AC.AccAccrOption = EM.EacAccrOption

    You are joining AC.AccAccrOption on EM.EacAccrOption but this...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: ssrs 2008 use stored procedure

    I may be misunderstanding but in the query designer enter:

    Exec YouRStoredProcedure (@Param1, @Param2)

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: SSIS Vs Linked Server with SQL Agent Jobs

    pawana.paul (5/11/2012)


    Good Question. This is required as there will be changes made to the columns at Source (adding or dropping columns). If we go with SSIS, we need to do...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: SSIS Vs Linked Server with SQL Agent Jobs

    Personally I would go with SSIS as it was created for this kind of work.

    There are many advantages of using SSIS to name but a few:

    - Good error handling possibilities

    -...

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: rows to columns

    What are you trying to achieve - what results are you expecting?

    Could you post some sample data?

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

  • RE: using left join and TOP

    I can go home now, right?

    Yep off you pop then 😀

    Glad to help 🙂

    Andy

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

Viewing 15 posts - 226 through 240 (of 402 total)