Forum Replies Created

Viewing 15 posts - 51,811 through 51,825 (of 59,072 total)

  • RE: TempDB - very large

    The real users will show up at your desk in a panic... have the porkchops ready... 😀

  • RE: create temp view

    Folks, just to be clear, you might be able to create a permanent view on the fly and drop it at the end of the proc, but there is no...

  • RE: create temp view

    John Mitchell (3/13/2008)


    Jeff Moden (3/13/2008)


    No... no way to create a temp view. Creating a TempTable to hold what the TempView would have contained is the next best thing and...

  • RE: TempDB - very large

    Matt Miller (3/13/2008)


    the process requiring that space would have aborted.

    That would also make it easier to find... dummy that did it would scream out loud 😀

  • RE: Combining Columns into one output field?

    ... or, you can just use the power of UNION...

    SELECT customer1

    from yourtable

    where customer1 like 'sm%' UNION

    SELECT customer2

    from yourtable

    where customer2 like 'sm%' UNION

    SELECT customer3

    from yourtable

    where customer3 like 'sm%'

    Real key...

  • RE: Batch Cost & Actual Time

    Lynn Pettis (3/13/2008)


    Again, the cost is relative to the batch its self, and it is quite possible that the cost of the query (relative to the batch) is higher.

    I've found...

  • RE: Can a temporary table created with an execute statement survive that statement?

    Matt Miller (3/12/2008)


    Jeff Moden (3/10/2008)


    Giving away a fine "secret" here, but no one's ever heard of temporary stored procedures? Build it using dynamic SQL... execute it... it's all in...

  • RE: Can a temporary table created with an execute statement survive that statement?

    Yes... same problem as with Global Temp Tables... if same job runs more than once, BOOM on table creation or YECH on what happens to the data because more than...

  • RE: Renaming all tables in a Database

    Do a Google search for sp_MSForEachTable...

  • RE: Linking to the Previous Row

    Jack Corbett (3/13/2008)


    Nice article. I like the fact that is clearly takes you from start to finish and offers a solution to a commonly encountered problem.

    Agreed... and test data...

  • RE: Batch Cost & Actual Time

    I have sp2 installed and I noticed the same thing an a good number of queries that end up using a loop join...

    I've never trusted % if batch, anyway......

  • RE: Return value in stored procedure

    Wouldn't OUTPUT return the same data type as whatever column or variable appeared in the stored procedure?

  • RE: Performance tuning

    While it's true that there is some trickery you can perform to "Tune the hardware" and "Tune the database" and you can throw indexes at tables to make some queries...

  • RE: create temp view

    No... no way to create a temp view. Creating a TempTable to hold what the TempView would have contained is the next best thing and pretty darned fast to...

  • RE: SELECT certain number of rows

    Heh... LOL. I guess using TOP to overcome a double triangular join will do. 😀 I'll add it to my list of paging methods to test for...

Viewing 15 posts - 51,811 through 51,825 (of 59,072 total)