Forum Replies Created

Viewing 15 posts - 6,301 through 6,315 (of 7,164 total)

  • RE: random select

    The method using NEWID works well.

    TABLESAMPLE is pretty handy too:

    http://technet.microsoft.com/en-us/library/ms189108.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Fragmented index

    john 50727 (5/27/2011)


    Can you modify the table? Where I work, I have complete control of the database. I would separate the key out to three different fields and use a...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Joining dynamic tables

    I was just curious if there was a different way to handle it.

    Yes, there is:

    Build a module/screen/class/whatever-its-called-in-the-middle-tier-or-front-end-language of your maintenance application that applies to each reference table to allow users...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Current job name from within scheduled job

    You're welcome 😀

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Joining dynamic tables

    tshad (5/26/2011)


    What I am trying to do is try to return the values in certain reference tables. I don't know what the name of the tables are - this...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Joining dynamic tables

    tshad (5/26/2011)


    I am trying to write a stored procedure that joins a table or does unions that has the table name in another table:

    ie, CREATE TABLE tables

    (

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: parallelism

    john jin (5/26/2011)


    Similar things happened to us. It helped a lot after we did configuration changes as you said.

    Why not have a try?

    Sorry, but this is an irresponsible comment and...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Current job name from within scheduled job

    Good news, you can!

    Have a look at SQL Agent Tokens:

    http://msdn.microsoft.com/en-us/library/ms175575.aspx

    I don't remember if name is available straight away, but job ID is and you can look up the name in...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Executing a BCP command and see the following error: SQLState = 08001, NativeError = 0

    Sounds like a resource contention issue...those are fun to figure out 🙂

    >Are there network congestion issues in your environment?

    >What else is running on the app server at the time...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Importing 3 different flat files into a datamart

    Your question is very general for a forum setting...Google/Bing for "ssis tutorial" and "import text file" and start experimenting. If you get stuck on a technical detail trying to get...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Learning sql 2008

    It all depends on how you are built to learn...do you learn better by reading text independently? do you learn by doing? do you learn best via dialogue with a...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Is there a way to do this?

    In your "after insert" trigger on Table A a MERGE statement could be used to update data in Table A from data in Table B.

    MERGE BOL article: http://technet.microsoft.com/en-us/library/bb510625.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Powershell job run through SQL agent doesn't write output

    Judy Scheinuk (5/26/2011)


    I can't wait to try this. I have to wait until the job which is running now gets to a good stopping place which may be a...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    OK, had to add another layer in the form of a iTVF and then use CROSS APPLY. See if this setup works for you:

    IF EXISTS ( SELECT *

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    What is the expected result from this new set of test data please?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,301 through 6,315 (of 7,164 total)