Forum Replies Created

Viewing 15 posts - 5,986 through 6,000 (of 6,041 total)

  • RE: how much time it will take to get the records from a large table

    David Portas (5/13/2010)


    That's different to your original question. Take a look at the execution plan. See if your query is taking advantage of indexes on your tables and consider creating...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Select that runs out of disk space.

    - You said that drive C: is 68 GB, but how much disk space was free before running the stored procedure?

    - Have you used Sysinternals FileMon or Process Monitor to...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: how much time it will take to get the records from a large table

    Nowadays 30,000,000 is only somewhat big.

    If you join a table that large, you'll want to return only the columns you need, and insure that lat least there is an...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Subroutines in TSQL

    When working with Microsoft development tools, if you find yourself struggling or spending a great deal of time implementing some repetitive task, then you're probably just doing it wrong and...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Subroutines in TSQL

    I think that T-SQL could use something similar to HTML's #include server side include directive for inserting repetitively used blocks of code like error handling, auditing, or variable declarations.

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: I am not a Schema

    shannonjk (5/12/2010)


    ...

    I was just curious if there was any sort of intuitive file/filegroup structure one should follow if designing a complex database schema system.

    This MSDN article describes some of the...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: I am not a Schema

    shannonjk (5/12/2010)


    How would you handle best practices as far as database file structure if you merged databases to one and used multiple Schemas? For instance if I put 2 databases...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: INDEX ON TABLES

    GilaMonster (5/12/2010)


    Do not, please, ever do that and run the run the generated script as-is. Or, if you do, let me know so that I can send you a proposal...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: INDEX ON TABLES

    satya.sakamuri (5/12/2010)

    ...

    if i run the above script inmy sql query with selecting perticular database ....will the data in tables effect?becaz those are production live tables in that database.

    could you plese...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: INDEX ON TABLES

    Grant Fritchey (5/11/2010)


    Whether the DBA knows it or not, that data can get changed by circumstances. It's best that you know that fact in order to gauge best whether or...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: INDEX ON TABLES

    GilaMonster (5/11/2010)


    ...

    As for the index usage, it's flushed when the DB is closed. Shutdown, restore, detach, offline. There's no way I know of to manually flush it. Eric, you said...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: INDEX ON TABLES

    The sys.dm_db_index_usage_stats view exposes statistics about the usage of indexes. I don't know for certain, but I suspect this is part of what the DTA uses behind the scenes to...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: problem importing data from a huge xml file 1g

    You never stated what the error message is or what about the large file doesn't work.

    I'm just thinking that when dealing with 1 GB sizes XML files, if you...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: update statement multiple fields

    field1 will be set to whatever (field1 + field2 + field3 - field4) equals when the UPDATE statement initially starts.

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Comparing two rows in one table for changes in column

    Dobermann (5/11/2010)


    Stumped. I need to find out when the value in Col3 (Dose) changes from the previous date (col5):

    ...

    ...

    ... I only want to see rows 1, 2 & 3...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

Viewing 15 posts - 5,986 through 6,000 (of 6,041 total)