Forum Replies Created

Viewing 15 posts - 541 through 555 (of 698 total)

  • RE: Procedures involving two servers

    So, as a follow-up, I implemented the "worst-case" solution I had described above, and it turned the process from one that could take as much as 10 hours, down to...

  • RE: Procedures involving two servers

    Yeah that solution is also pretty much the same as the last-resort one. Only difference is that instead of writing the data on server B, you're proposing to write it...

  • RE: Procedures involving two servers

    What is essentially happening is, the stored procedure is creating a set of ID numbers from some data. Then, from those ID numbers, some data from server A is acquired,...

  • RE: Procedures involving two servers

    Daryl-273852 (3/5/2010)


    Would it be possible to split the work?

    Server A calls a proc on Server B that gets/creates a smaller subset of data in an actual table for this data...

  • RE: Running totals problem

    Honestly, it's hard to notice - the individual subsets are flying by so fast that there's not really a noticable change. Maybe it might have gone from like 5 seconds...

  • RE: Running totals problem

    Oh, neat. So I can do this instead:

    SELECT

    URL "loc",

    REPLACE(CONVERT(VARCHAR, DateCreated, 111), '/', '-') + 'T' + CONVERT(VARCHAR, DateCreated, 8) + '-05:00' "lastmod",

    'daily' "changefreq",

    CAST(Priority AS VARCHAR) "priority"

    FROM #Temp t2...

  • RE: Running totals problem

    Never mind - figured it out! Actually starting to learn how this XML stuff works finally, lol.

    Incase you're curious, here's the solution I employed:

    SELECT TOP 1 @PrevURL = @PrevURL +...

  • RE: Running totals problem

    Lol - yeah, see the correction I posted 😛 Had to replace the "&" characters, since otherwise it just showed the correct string 😛

  • RE: Running totals problem

    Sorry for the double post, but there is one more problem left now.

    The string, as it is written to the file, is converting many of the characters to their HTML...

  • RE: Running totals problem

    Wow - that works amazingly well! Took a 45 minute operation down to 5 seconds!

    Can you explain to me how this is working? I'm a bit fuzzy on the whole...

  • RE: Running totals problem

    Actually, the size of the string is about that, yes. Some of the larger subsets have over 1 million characters in them.

    So, yeah, they are storing a ton of data...

  • RE: What's in your CLR?

    The stuff that I've used CLRs for are things that, as far as I know, can't be done using the native SQL environment.

    In particular, at times I require code which...

  • RE: Using DATEDIFF with Aggregations

    I understand all that Lynn 😛 this was more of a theoretical question than one that needed to be applied on a specific case. But if you wish,

    CREATE TABLE #User

    (

    ID...

  • RE: Using DATEDIFF with Aggregations

    Unfortunately that doesn't really change the solution much - instead of a subquery happening in the WHERE clause, you're running a subquery to populate a JOIN clause. I'm trying to...

  • RE: Need help verifying trigger functionality

    *nods*, that's the way I've got it set up, yeah. Since I'm going to just write this stuff to a history table now, and remove the direct update against the...

Viewing 15 posts - 541 through 555 (of 698 total)