Forum Replies Created

Viewing 15 posts - 61 through 75 (of 192 total)

  • RE: Searching Syscomments Accurately

    If you are using an access front end, you can use the rich text box control to display the text and highlight the results. I implemented a similar thing years...

  • RE: Those cursed cursors

    Purists would argue that a balance column has no place in a correctly normalized database schema (except, perhaps, in a view) however I understand that there are circumstances where this...

  • RE: Text Variables

    No Problems. There are not a lot of options for this in 2000. My honest recommendation would be to write a simple app that periodically polls the queue and sends...

  • RE: Text Variables

    Well. One option would be to build the call to your mail proc dynamically:

    DECLARE @Body1 NVARCHAR(8000),
            @Body2 NVARCHAR(8000),
         ...
  • RE: making a sproc wait for a period, and rescheduling a job in a sproc.

    Check out WAITFOR in BOL

  • RE: Text Variables

    Hmm.

    SQL Server isn't really the ideal place to be sending emails from. Are you using SQLMail? CDO?

  • RE: Text Variables

    What is in the text? I've worked around it in the past by processing the text data in 8000 byte chunks. If you post a little more info, maybe we...

  • RE: FAX using T-SQL

    And if you INSIST on running this code on your server, add sp_OADestory @WordDocument in the end of your code to explicitly destory the COM object.

  • RE: FAX using T-SQL

    Basically you are instantiating a COM object in your PROC. You will also need Office (professional probably) installed on your server. I can't see anything else you would need.

    Think about...

  • RE: Help please

    Try This:

    Select TOP 100 PERCENT bp_group_name

    FROM mf_01createbp_grp

    WHERE bp_group_name NOT IN

    (SELECT TOP 100 PERCENT

    BPG.bp_group_name

    FROM Eploltp01.sch_bpref.businesspartnergroup

    ORDER BY bp_group_name)

    Are you doing the order by in the subquery to create the conditions for a...

  • RE: Both SQL2K Linked Servers...

    It is better if you only update local tables. You can rewrite your query to run on the remote server.

    It's probably not the best solution, but you can do...

  • RE: Creating Sequence Numbers

    Cool, thanks for the follow-up Ninja. I always like learning new (and better) ways to approach a problem.

  • RE: Creating Sequence Numbers

    I agree, the correlated subquery is less than ideal and can get out of hand quickly. The other option I posted, the self join and group by, would probably perform...

  • RE: Creating Sequence Numbers

    One more PS... Just in case, If you are running SQL2005, use the ROW_NUMBER function.

    ROW_NUMBER OVER(PARTITION BY ID1 ORDER BY ID2) AS SEQ
    
  • RE: Creating Sequence Numbers

    PS. the line:

    AND t1.id <= t2.id    -- Supplimental Order by (to account for duplicates) 
    

    is optional if your order by column is unique

Viewing 15 posts - 61 through 75 (of 192 total)