Viewing 15 posts - 8,911 through 8,925 (of 59,067 total)
I created a table with 433 columns: that's where I got the number from. I was hoping that 500 might be possible but the variable-length byte overhead still being required...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 4:08 pm
Ah... I think I found it... it looks like it's at the following link now...
http://improve.dk/what-is-the-size-of-the-lob-pointer-for-max-types-like-varchar-varbinary-etc/
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 3:27 pm
No prob! I took the liberty of elaborating a bit more on my blog since you're not the only one unable to find the behavior cleanly documented on the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 3:23 pm
p.s. We both may be right. According to Paul Randal, "It Depends" and can be 16 or 24 depending on the datatype. Please see the following.
https://www.sqlservercentral.com/forums/topic/lob-pointers-am-i-stupid/#post-1354312
To add to that,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 3:17 pm
Forced-off-row types require only a 16-byte pointer. The 2-byte variable-length overhead per pointer, though, causes even fewer than 500 columns to be possible [I thought SQL would be able...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 2:44 pm
Here is my code:
CREATE SCHEMA Costpoint AUTHORIZATION iDrago;
GO
CREATE TABLE Costpoint.ProjectCodes
(
isActivetinyintNOT NULL,
projectCodevarchar(28)NOT NULL,
projectNamevarchar(25)NULL,
leveltinyintNOT NULL,
projectMgrIDchar(6)NULL,
projectMgrNamevarchar(22)NULL,
projectClassvarchar(14)NULL,
projectTypevarchar(11)NOT NULL,
isBillabletinyintNOT NULL,
allowChargingtinyintNOT NULL,
exportProjectClassvarchar(23)NOT NULL,
accountGroupchar(3)NOT NULL,
owningOrgchar(10)NOT NULL,
customerIDvarchar(12)NOT NULL,
customerNamevarchar(20)NOT NULL,
startDatedateNULL,
endDatedateNULL,
primeContractNochar(20)NULL,
taskOrderNochar (20)NULL,
CONSTRAINT CK_isActiveCHECK (isActive = 0...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 1:07 pm
Jeff, function dbo.fnTally is a custom one, I suppose.
Could you provide a link to its definition?
My apologies. I forgot to add that. I've attached it. And I continue to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 11:50 am
Some of the code requires knowing dates instead of generating them based on the current year like the OP posted.
Some of the code won't handle things if the given or...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 31, 2019 at 5:49 am
In case anyone is interested, here's a typical example of my code at work. It's just a small example but you'll be able to derive the casing I use, other...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 30, 2019 at 10:39 pm
hi,
looking for script to populate all the weeks in current year like below.
Any suggestions please.
How often do you need to do this? ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 30, 2019 at 4:24 pm
I whole heartedly agree. Each DBA must have their own login for accountability purposes. I'll also state that each DBA login must be an Active Directory login that follows enforced...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 30, 2019 at 4:22 pm
An stop using [A-Z] for this if these are GUIDs. It should be "[A-D] if your server is case insensitive and {A-Da-d] if your server IS case sensitive.
A better question...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 29, 2019 at 8:43 pm
This isn't going to work even with VARCHAR(MAX) because each VARCHAR(MAX) requires that a 24 byte pointer be stored in the Clustered Index or the Heap and 24*500 = 12,000...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 29, 2019 at 8:37 pm
Your test data doesn't match what you posted in your question. In your question, you have 3 provider columns. In your test data, you have 5 provider columns AND your...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 29, 2019 at 2:18 am
Lordy... even though your recovery was simple that still had to be a PITA to recover from, Tom.
As for me not doing the Windows updates... I agree. I'm the luckiest...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 29, 2019 at 12:22 am
Viewing 15 posts - 8,911 through 8,925 (of 59,067 total)