Forum Replies Created

Viewing 15 posts - 196 through 210 (of 1,183 total)

  • RE: Why does this union add so much time?

    A UNION tells SQL Server to exclude any duplicate rows, which in turn requires grouping internally.

    If you are 100% sure no duplicates will occur, then use UNION ALL.

    ______________________________________________________________________

    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: Iif parameter not working...why?

    tacy.highland (12/1/2011)


    I'm using an expression for the dataset in a SSRS report so that I can parameterize a variable. It worked for an older report in our repository so...

    ______________________________________________________________________

    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: strange issue with group by and order by after insert

    GilaMonster (12/1/2011)


    Tables, by definition, don't have an order. The only thing that order by on an insert will do is control how identity values are assigned. If you want a...

    ______________________________________________________________________

    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: SSRS 2005 Subscription Schedule (Integrated Mode)

    This might help. 🙂

    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
  • RE: strange issue with group by and order by after insert

    SQL doesn't store the data in any "ORDER". The engine determines the best place/way to store the data on it's own. Regardless of how you insert it.

    It would only...

    ______________________________________________________________________

    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: Synchronisation between different database structures.

    Also, you could have an SSIS package set to handle the synching run nightly. Setting up linked servers and jobs to synch them. There are many possibile approaches. 🙂

    ______________________________________________________________________

    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: Synchronisation between different database structures.

    bumping this thread. I made an edit after your post and not sure if you'd be notified. 🙂

    ______________________________________________________________________

    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: Synchronisation between different database structures.

    What are the time constraints for keeping the data in synch. How stale can the data be in the dependant databases?

    Have you thought about Replication of the employee table, then...

    ______________________________________________________________________

    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 Updated

    cgrammont (11/29/2011)


    @emailBODY = 'first

    <br /><br /><br />

    second

    <br /><br /><br />

    third'

    Just to be clear, there is no need for the actual line breaks. So this should work fine..

    @emailBODY = 'first<br...

    ______________________________________________________________________

    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 Updated

    dguthrie_2010 (11/29/2011)


    Hi All,

    Thank you Jason for this article, it has been very helpful.

    We are having a similar problem to the one JayK described on 8/16/2011 regarding formatting the body of...

    ______________________________________________________________________

    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: Querying Multiple Bit Columns Dynamically

    Sean Lange (11/29/2011)


    You are welcome. The query Jason put together is probably the same thing I would have come up with but I figured that the article was worth a...

    ______________________________________________________________________

    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: Querying Multiple Bit Columns Dynamically

    Daniel H (11/29/2011)


    Errr, that seemed really simple! Here I am thinking functions and dynamical SQL...

    Let me test that code out

    It's that old saying "You can't see the forest for 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: Querying Multiple Bit Columns Dynamically

    So if the flag is 0, then do not check that column... correct?

    Then ...

    SELECT *

    FROM Features

    WHERE

    (Flag1 = @Flag1 OR @Flag1 = 0) and

    ...

    ______________________________________________________________________

    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: Logic for Stored Proc for selecting multiple comma separated values in parameter?

    1. Search the SPLIT function on this site.

    2. Read up on Dynamic SQL.

    ______________________________________________________________________

    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: ANSI_PADDING affects storage but not QUERIES <OR> Trailing spaces ignored in WHERE clause

    Sorry, I think I had a minor issue with the code. This illustrates my question more appropriately.

    PRINT 'Testing with ANSI_PADDING ON'

    SET ANSI_PADDING ON;

    GO

    CREATE TABLE t1 (

    charcol CHAR(16)...

    ______________________________________________________________________

    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 - 196 through 210 (of 1,183 total)