Forum Replies Created

Viewing 15 posts - 16 through 30 (of 57 total)

  • RE: Many-to-Many Sanity Check

    TomThomson (9/28/2015)


    Calling something by different names in different places, as you have done here, leads to crazy things like holding the same thing twice with two column names in one...

  • RE: SQL Job Timeline (Graphical)

    Very Nice with some useful tweaks in the thread.

    Thanks

  • RE: Legal/illegal characters in table name

    MyDoggieJessie (4/7/2015)


    This assumes that you have a schema in the database named "tmp" otherwise it fails because the schema does not exist.

    +1

    Guessed correctly that that important piece was omitted...

  • RE: Remove data from tables

    Hany Helmy (3/5/2015)


    Jostein Saethern (3/4/2015)


    The "delete table BBB;" statement in d) will fail.

    Its just a typo.

    I hate having to guess what was a typo and what is intentionally incorrect

  • RE: Duplicates

    matthew.flower (2/4/2015)


    ... I would argue that none of the queries will help you because they only return the Editor Names, and deleting by LName alone will delete all the records...

  • RE: Lists

    DrKiller (12/23/2014)


    wow what a complex way of doing it.

    I'm usually just doing this 🙂

    DECLARE @tmpString VARCHAR(MAX)

    SELECT @tmpString = COALESCE(@tmpString + ', ' + productname, productname) FROM Header

    SELECT @tmpString

    +1 -- Very...

  • RE: Trace Flags

    SQLRNNR (11/18/2014)


    Sadly the question posed can lead to confusion and a low correct answer rate due to the availability of four correct answers.

    The correct answers listed are only for trace...

  • RE: BCP results

    Sean Pearce (7/28/2014)


    Your question is version specific. From SQL Server 2012 the file will be created.

    Thanks Sean for providing a much better explanation

    Using 2012, I had empty file

    +1

  • RE: Restore

    HanShi (6/6/2014)


    I was in doubt, because I found it difficult to get the intention of the question (perhaps because I'm not native English speaking). Did I need to take the...

  • RE: Stairway to Advanced T-SQL Level 5: Storing Data in Temporary Tables

    As to explicitly dropping Temp Tables as soon as they are no longer needed goes, "It Depends". Dropping Temp Tables in a batch oriented stored procedure will probably be...

  • RE: Getting the grid back

    happycat59 (5/15/2014)


    Yes, the documentation does say CTRL + Shift + D however, as far as I can tell, this does nothing when using SSMS 2012. CTRL + D does...

  • RE: Upgrading cardinality

    Eirikur Eiriksson (5/14/2014)


    Good question, thanks!

    I got it wrong:ermm: or did I:w00t:

    Note, on Microsoft Support there is an article; Enable plan-affecting SQL Server query optimizer behavior that can be controlled by...

  • RE: Find database where table is located

    By inserting into the table variable and querying it you effectively do that...

    One more change to only search user created tables (if you happen to search for a word in...

  • RE: Find database where table is located

    Try something like

    sp_msforeachdb 'select "?" AS db, schema_name(schema_id) as [schema_name], name as table_name from [?].sys.tables where name like "%SOME_TABLE_NAME%"'

    Cheers

  • RE: Divide and Conquer - Performance Tuning

    A little off topic...However....

    How does one get SQLPrep or is it even available for public consumption?

    I do not see a link at http://www.csqls.com/

    Thanks

Viewing 15 posts - 16 through 30 (of 57 total)