Forum Replies Created

Viewing 15 posts - 751 through 765 (of 1,048 total)

  • RE: Replace semi-colon with new line

    Depending on why you need to do this, this might be useful:

    SELECT @causename = causename from...

    print replace(@causename,';',char(13)+char(10))

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: case statement accounting for null values

    or this:

    ISNULL(sum(dbo.INV_REC_JAN_JUNE_2010.RCP_QTY),0) as rcpt_qty,

    isnull(SUM(dbo.INV_SHP_JAN_JUNE_2010.SHIP_QTY),0) as ship_qty,

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Transpose results

    I am thinking what you need is this:

    select ProgressGroup,

    min(ProgressDate) as Started,

    case when max(ProgressDate) = min(ProgressDate) then ' ' else max(ProgressDate) end as Finished

    from Progress where ProgressMessage in ('Start','Finished')

    group...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: SQL 2008 Performance Issue - CPU

    You need to move to a 64 bit OS and 64 bit version of SQL server. You are running the boxes out of resources under heavy load and 32bit versions...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Hard coding leading zeros to Unique IDs

    If you can modify the form and report code to utilize this derived data column than you can just as easily provide a leading zero formatted version of the column.

    Personally...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: In Line Subquery versus Join query

    The optimizer would probably treat them the same in this particular case. Personally tend to avoid the in line subquery method. If the value needs to be used in other...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Hard coding leading zeros to Unique IDs

    The leading zeros are meaningless to SQL server. If your company wants to see them just modify the formatting on forms and reports so they appear that way. There...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Huge Records...

    Try this query and see if it isn't faster:

    SELECT case when FKEntityID = @EntityID then RecordID else FKRecordID as FKRecordID,

    FKPathID,

    case when EntityID = @EntityID then RecordID else FKRecordID...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Multiple Join Efficiency

    there is no doubt that breaking up a larger query into two smaller queries via a temp table can make a big improvement. You say you cannot use temp tables......

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: More efficient way

    Thanks for making that point GregE.

    Just so the original poster doesn't think I'm a grouch and since others did point a few of the more obvious problems, I will...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: More efficient way

    you're kidding me right? For one thing I couldn't even begin to analyze that query without spending a lot of time looking at the database tables and understanding the...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is there any easy way to find out how many times a function is called in a procedure

    I was referring to adding a simple update statement in-line at the point of execution.

    Obviously if it is called from many different locations (or dynamically generated SQL) he'll have to...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is there any easy way to find out how many times a function is called in a procedure

    just increment a value in a table whenever the function is executed.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: awe

    Note also that AWE can really only be used for some cache buffers. Much (if not most) of all the other data structures in SQL server for managing connections and...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Difference between cursors and while looping

    A while loop is an execution control mechanism where a cursor is set of data (a result set ) that you can iterate through. In fact, the most common way...

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 751 through 765 (of 1,048 total)