Viewing 15 posts - 541 through 555 (of 698 total)
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...
March 5, 2010 at 2:58 pm
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...
March 5, 2010 at 10:54 am
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,...
March 5, 2010 at 10:12 am
Daryl-273852 (3/5/2010)
Server A calls a proc on Server B that gets/creates a smaller subset of data in an actual table for this data...
March 5, 2010 at 9:53 am
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...
January 5, 2010 at 1:26 pm
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...
January 5, 2010 at 12:55 pm
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 +...
January 5, 2010 at 11:51 am
Lol - yeah, see the correction I posted 😛 Had to replace the "&" characters, since otherwise it just showed the correct string 😛
January 5, 2010 at 11:35 am
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...
January 5, 2010 at 11:31 am
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...
January 5, 2010 at 11:14 am
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...
January 5, 2010 at 9:17 am
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...
December 11, 2009 at 7:35 am
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...
December 3, 2009 at 3:32 pm
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...
December 3, 2009 at 1:55 pm
*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...
November 24, 2009 at 8:36 am
Viewing 15 posts - 541 through 555 (of 698 total)