Viewing 15 posts - 4,036 through 4,050 (of 4,820 total)
Sean,
They're migrating to a new SQL instance, so there's going to be a new copy anyway. They can do the RTRIM on the way over, so to speak....
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 8:54 am
After looking at the Books Online entry for NTILE, it's expecting an "integer expression", and it does allow you to access fields that exist in the PARTITION BY expression, but...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 8:49 am
funkseo (12/11/2012)
ALTER PROCEDURE [dbo].[spGetSiteListFromTagPager]
@Tag nvarchar(64),
@page int = 0
AS
DECLARE @TagID int
SET @TagID =...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 8:19 am
Jason-299789 (12/11/2012)
sgmunson (12/11/2012)
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 8:16 am
I think you've got the right ideas. I'd create the table on the new server, based on information you can gather from your existing table, such as selecting...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 8:04 am
I'll assume you have a case-insensitive collation for your instance of SQL Server. How about something like this:
CREATE TABLE #TABLE1 (
ID INT NOT NULL PRIMARY KEY CLUSTERED,
COL1 varchar(6),
COL2...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 12, 2012 at 7:53 am
This isn't the right forum for this question, but I think I know why. In your code, you assign a value to the zero subscripted array element, then...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 11, 2012 at 9:52 am
Just adding the Description field to the index on SiteID would probably help quite a bit, although at up to 2K per row, the size of that index would be...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 11, 2012 at 9:41 am
Then perhaps the larger concern is just the overall processing time to perform the task. If the migration is an ALL ABOARD scenario (meaning all the data, all...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 10:40 pm
Don't forget to adjust for spanning a day, as you'll either have to add extra records to fit it into this paradigm, or you'll need to adjust the queries to...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 10:30 pm
Just splitting the table doesn't necessarily make things faster. The problem might be what to use as criteria to do the split. If, after all, you...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 5:49 pm
Figures, that you'd need to span dates. I have some code that works for data that's date unique, but perhaps you can expand the time table involved once...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 3:16 pm
That's what I thought you might want. Now the next question. Is there any chance that a single record will span dates, such as a 3rd...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 2:07 pm
I'm wondering if your SUBSTRING function is causing performance grief. How many bytes is the Description field? Is that field contained in the index? If...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 1:37 pm
FYI, had to edit my last post (before this one) twice - please be sure to check it again...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 10, 2012 at 12:59 pm
Viewing 15 posts - 4,036 through 4,050 (of 4,820 total)