Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 5,685 total)

  • RE: Multiple IF EXISTS blocks

    SQLSeTTeR (11/8/2012)


    That is what I'm looking for. Not thinking. Thank you very much.

    Heheh, I've had those days. 😀 Glad I could help.

  • RE: Multiple IF EXISTS blocks

    SQLSeTTeR (11/8/2012)


    How do I write multiple IF statements but only one BEGIN block? In other words, I would love to have an OR statement between the IF statements but...

  • RE: Help with a "simple" XML example, please

    An alternative, which will allow you to more easily see how you're connecting up the different node connections, is as follows.

    I've left a note in the code, but the big...

  • RE: rebuild on clustered index

    GilaMonster (11/8/2012)


    Not RID. uniqeifier.

    Yes, the cluster plus uniquifier is in the NC index. The uniquifier does not change upon rebuild, hence the NC indexes don't need updating. It did and...

  • RE: rebuild on clustered index

    From the same MSDN article:

    Rebuilding an index drops the index and creates a new one. In doing this, fragmentation is removed, disk space is reclaimed by compacting the pages using...

  • RE: rebuild on clustered index

    Rebuilding a clustered index is basically a drop/create and resets the internal additional RIDs for the index rows on the clustered, forcing all non-clustered indexes to be updated so they...

  • RE: Text To Decimal Values

    AndrewSQLDBA (11/8/2012)


    I just saw some of the data as only 3 digits. So 499 would need to be converted to 499.00 etc.....

    This particular component is going to take this...

  • RE: Static values for a table that currently doesn't have that value.

    Short form: What you're looking for is to adjust your query with what's called an OUTER JOIN, in this case most likely a LEFT Join.

    Basically, your select query should base...

  • RE: Creating Index question

    What you're seeing is most likely the primary key, which is both.

    The Primary Key is a specific type of index that is also a constraint, and is created as such...

  • RE: Want to add Recordcount in Flat File output

    It's annoying but doable. Annoying at the levels of if Jeff has a way to easily attach it via BCP do that.

    However, the answer, in shorthand.

    First, create a second...

  • RE: Query to long time running........

    If you take a look in my signature for the link regarding indexes/tuning, we can help you further.

    The like is SARGable, no big deal. As is the date. ...

  • RE: Does it make sense store measures in a dimension table?

    Paul,

    In a case like this I would look towards chaining fact tables. I don't know the proper term, I'm not a warehouse expert, I just build 'em.

    What it would...

  • RE: Read each line of file and do something

    Matt,

    What kind of value tests are you looking to do against the rows? As mentioned above, you can do things with lookup tests and the like to test for...

  • RE: Add minus symbol in sql query

    The - symbol usually denotes a negative value, so that's probably right. Hard to tell with the limited information.

    What in particular is the concern? You want it to...

  • RE: Reduce the index size

    Um, errr, hrm.

    You do realize we can't see your tables, your usage history, or your heuristics to make that kind of broad recommendation in either direction, correct?

    Including columns in an...

Viewing 15 posts - 1,006 through 1,020 (of 5,685 total)