Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 5,103 total)

  • RE: Query puzzle

    I do think that there are ambiguities in the results you expect but here is something to help you define better what you really need:

    -- create table data (sequence_number int,...


    * Noel

  • RE: speed up LEN(RTRIM(LTRIM(ERR))) > 0????

    Just create a calculated column on the table and then set an index on it

    your query will end up been like:

    select ...... calculated_column > 0

    Cheers,


    * Noel

  • RE: Query puzzle

    What do you mean that you can't specify an order on stored data?

    Example: select * from statement_report order by sequence_number

    That order, is on the retrieved data not on the the...


    * Noel

  • RE: Query puzzle

    I second Sergiy opinion you can't specify an order on stored data. Please post DDL and we may be able to help you.

     


    * Noel

  • RE: update table A with Table B''''s table.status value

    UPDATE m

    set status = mb.status

    FROM master m

         join mastermasterbackup mb

          on m.number = mb.number

     


    * Noel

  • RE: Registring Local SQL server (SQL 2000)

    Standard Edition is only supported on SERVER platforms Windows XP is a DESKTOP platform. If you want to install SQL Server locally on Windows XP use the DEVELOPER EDITION


    * Noel

  • RE: Avoid Dirty Reads

    Make sure you have an index in

    FILE_NAME  and  FIELD_NAME

     


    * Noel

  • RE: Search by Stored Procedure size

    I am pretty sure that is not the order by is the JOIN TYPE!!! Can you post the query plan you are getting? Merge joins require ordered input or at...


    * Noel

  • RE: Create Table from another''''s definition

    Isn't that what I just posted ?

     


    * Noel

  • RE: Search by Stored Procedure size

    try appending ... OPTION(ROBUST PLAN) ... to the query

    I don't have sp4. This error tends to happen with "text" columns and merge joins!!

     

    Cheers,

     


    * Noel

  • RE: Search by Stored Procedure size

    Sorry for the delay Yes I goofed when writing the post but it si  easy to fix:

     

    select object_name(id) n, sum(datalengh(text)) char_cnt

    from syscomments

    group by object_name(id)

    order by...


    * Noel

  • RE: Search by Stored Procedure size

    This works for me:

    select object_name(id) n, sum(datalengh(text)) char_cnt

    from syscomments

    group by n

    order by char_cnt desc

     


    * Noel

  • RE: Create Table from another''''s definition

    You can do it ... sort of with temp tables:

    ...

    select 1 as record_id, c.costumer_name, a.address, s.order_number

    into

    #T1

    FROM salesorders s, addressess a, customers c

    where 1=2

     


    * Noel

  • RE: Restarting numbering when deleting tables

    I may not have been in this field as long as you have but I don't consider myself a newbie

    Your "standard" SQL 92...


    * Noel

  • RE: Restarting numbering when deleting tables

    If you are posting a solution that does not works with MS SQL Server in an MS SQL Server Forum what sense does that makes???


    * Noel

Viewing 15 posts - 2,356 through 2,370 (of 5,103 total)