Forum Replies Created

Viewing 15 posts - 3,736 through 3,750 (of 6,486 total)

  • RE: Total records

    Todd Engen (4/8/2008)


    Here's one simple way to do that. Just copy-and-paste the results into another query window.

    USE MyDatabase

    SELECT 'SELECT COUNT(*), ''' + name + ''' FROM ' + name...

  • RE: Optimizing SQL Query

    Stanley Pagenel (4/8/2008)


    Can someone help me I would like to save the execution plan using SQL management studio. But I'm still having the error telling me that :

    Msg 195, Level...

  • RE: Why does these return different results?

    Jack Corbett (4/8/2008)


    Well, count this as one of the times I made a fool of myself. I actually looked up PatIndex in BOL expecting it to give an example...

  • RE: Why does these return different results?

    Jack Corbett (4/8/2008)


    PATINDEX does not use Regular Expression Syntax so your second example is matching on 'A', '-', 'Z' and so the only matches found are 'A' and 'Z'

    Then why...

  • RE: Reset Identity Specification

    Two rather straight forward ways. If the table has no foreign keys, and shouldn't have any data in it as of now, then TRUNCATE TABLE mytable would reset your identity.

    The...

  • RE: select records that contain capital letters

    Try something like this (the collation is key - you need to make sure the sure is case-sensitive:

    select *

    from mytable

    where patindex('%[ABCDEFGHIJKLMNOPQRSTUVWXYZ]%',mytable COLLATE Latin1_General_CS_AI)>0

    Now - this is going to cause scans,...

  • RE: Changed column width problems

    born2 -

    double check that SSIS isn't making any "stupid" guesses on the datasource properties (which also has column data widths set up). I find that it makes a...

  • RE: Finding Nth Smallest Values inside Cross Tab

    You're going to have to break it up. You need to the initial query to only return the 8 smallest values per grouping, and then send that to the...

  • RE: Calculate '"effective rate"

    Stefan Bengtsson (4/8/2008)


    Please, someone:-)

    If i have the rate 0.5597% and want the yearly effective rate

    How do i do that i t-sql

    I now the answer, i looked in excel. It should...

  • RE: Truncate can be rollbacked or not?

    GilaMonster (4/7/2008)


    I've read some articles that say that truncate is not logged, hence cannot be rolled back. The truth is that truncate is a partially-logged operation.

    The row 'deletions' are...

  • RE: Inside The Question of the Day

    GSquared (4/8/2008)


    I have a question on the Questions of the Day: Should I limit the complexity of the question by any arbitrary means? Like a specific word-count or anything...

  • RE: Updating All Rows

    For what it's worth - why not make that a computed column? That way you won't have to worry about fullname getting out of synch with last and and...

  • RE: Performance: Every nth item

    Jeff Moden (4/8/2008)


    Sure, you could sub RowNum for *... not sure it matters for performance here as it might in other places. * allows it to pick the best...

  • RE: Finding open records over time without loop

    For what it's worth - the solutions advanced implicitly answer the question of "open" as "how many cases are currently not ended at this moment". Anything that would open...

  • RE: SQLserver.com clock wrong?

    Steve Jones - Editor (4/8/2008)


    Hah! The UK is running a bit behind because of the shadow from the US! 😉

    All I want to know is - who do I call...

Viewing 15 posts - 3,736 through 3,750 (of 6,486 total)