Forum Replies Created

Viewing 15 posts - 601 through 615 (of 1,183 total)

  • RE: I've got burned by SQL Server 2008 CTP6

    CLASSIC !

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: What should be a simple query

    Martin (2/29/2008)


    Thanks so far, given me some ideas, though that last one didn't work only brought out records that have the startdate as today, but I need to get records...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Trigger with where clause

    Sure ....

    IF EXISTS (SELECT 1 FROM inserted WHERE yourField = 'yourTestValue')

    BEGIN

    -- your trigger code here

    END

    OPPS... EDITED!! I forgot ot add the...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Trigger with where clause

    Sure ....

    IF (SELECT 1 FROM inserted WHERE yourField = 'yourTestValue')

    BEGIN

    -- your trigger code here

    END

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: What should be a simple query

    Like John said ...

    SELECT DISTINCT

    REPLACE(StaffName,'''''',' ') AS StaffName

    ,OutReason

    ,OutStartDate

    ,OutEndDate

    ,OutStartTime

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: What should be a simple query

    First off, it looks like you need to swap the Staff List and out of office views around.

    select ... FROM StafList LEFT JOIN outOfOffice ...

    Secondly, can you post the...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Using IIF Condition in SSRS 2005

    =IIF(A.Value<B.Value,(A.Value/1000)*C.Value,C.Value)

    you can figure out the rest from here ... 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Sending a parameter string type to a sp

    My previous post should still work.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Sending a parameter string type to a sp

    You don't need to replace them.

    declare @representative varchar(255)

    set @representative= 'Victaulic'

    exec ('

    select me.Member_Id, UPPER(me.Member_Name)as Member_Name, me.Member_City, me.Member_State, me.Member_Fax

    from members me, Manufacturers m, Manufacturers_Categories mc, Categories c, Representations r

    where me.Member_Id =...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Management Studio scripting procedures using sp_executesql

    Thanks!

    Although that's really odd that the "Drop if exists" setting controls the scripting of the entire object. :hehe:

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Need to fix date overlaps in a Point-in-Time table

    How about this...?

    DECLARE @dates TABLE (pNo INT, val VARCHAR(10), effDate DATETIME, expDate DATETIME)

    INSERT @dates

    SELECT 1,'01','1/1/2006','3/31/2006' UNION

    SELECT 1,'01','2/1/2006','3/31/2006' UNION

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Help with COALESCE logic - is it the same as this query?

    In my understanding, they are functionally the same. The benefit I see is that it's easier to read using COALESCE.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Subscriptions from Reporting Services get unintelligable job names in SQL Server Agent

    There is a way, and someone emailed me a link to that article. I'll search for it tonight and post it once I find it.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Mystery Subscription jobs appearing

    This may or may not be your problem, but I'm guessing it is. When you rename the job it "breaks" the connection to Reporting Services. RS uses the GUID (job...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Data Driven Subscriptions

    http://www.sqlservercentral.com/articles/Development/2824/

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 601 through 615 (of 1,183 total)