Forum Replies Created

Viewing 15 posts - 391 through 405 (of 581 total)

  • RE: Bad performance in TSQL

    No point in unique clustered index on composite key with a surrogate? Don't be too hard on yourself, there might be a point sometimes. It's just not necessarily a good...

  • RE: Single Quotes

    I wouldn't use dynamic SQL for production code, especially non-trivial data retrieval or concatenating parameters from the front end. But I would draw a distinction between production (application) code and administration (utility)...

  • RE: Get no of Rows using system table?

    >any of the variants looking at the metadata

    what variants?

  • RE: Bad performance in TSQL

    Sergiy, some data is 'a mess'. Some data refers to its own processing. Someone somewhere has a legitimate reason for doing what I describe. So the answer to the question...

  • RE: Bad performance in TSQL

    You'd only be interested in the INSERT order if there was a identity column. Sergiy, are you saying that this won't work and new records might be 'incorrectly' numbered?

  • RE: Parsing a Text field using TSQL

    But you can't do it setwise, of course.

    MS have deprecated use of READTEXT with text pointer saying it will be phased out, and recommended using SUBSTRING instead. Does anyone...

  • RE: Bad performance in TSQL

    [EDIT: THIS FIRST PARA WAS WRITTEN WITHOUT READING THE PREVIOUS POSTS PROPERLY] If that doesn't do it, I'd be surprised, but if not, can you see any difference between the showplan...

  • RE: Parsing a Text field using TSQL

    Just out of interest, is the problem with the 30K text values just a performance issue, are your embedded 'rows' > 8K, or is a variable overflowing, or none of...

  • RE: update statement trouble

    Funny, I always thought it was disallowed. Maybe it was in v6.5 or 7 and I never realised they had changed it? The matter's not really documented, so I don't...

  • RE: Update rows

    update

    a

    set

    BP_At_Time = b.BP_Code

    from

  • RE: Calculate balance for activity report

    Here's one way, using pure SQL. I've had to guess at your table structures and some other things.

    select

    c.FullName

  • RE: Parsing a Text field using TSQL

    Looks like you have some import files stuck in your DB. You want to extract them and use an import process: bcp out, bcp in. Or perhaps ask the DTS...

  • RE: problem removing duplicates

    I'll have a go: when you use a GROUP BY clause, you specify that you only want one row returned for each distinct combination of values in the fields specified...

  • RE: update statement trouble

    You mean one SET clause, one FROM clause and one WHERE clause. You can have as as many JOINs as any other...

  • RE: xp_cmdshell zipping back ups?

    >How do i create a .bat file with t-sql?

    What do you mean? How to create the actual OS file, or how to generate windows shell script?

Viewing 15 posts - 391 through 405 (of 581 total)