Viewing 15 posts - 37,051 through 37,065 (of 59,072 total)
Brian O'Leary (8/28/2010)
I forgot to add, I believe the nvarchar(max) is roughly 2GB
Look it up in Books online where you'll find that although it contains a binary 2GB, it will...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 12:42 pm
You're simple trying to do too much all at once. Do the pivot first... then display it and the other information. It's called "pre-aggregation" (thanks Peter Larsson) and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 12:39 pm
Heh... nah... I thought I made a mistake but I was... ummm.. mistaken. 🙂
The mistake is in BOL. They claim that there are 8096 bytes per row in that...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 12:10 pm
CirquedeSQLeil (8/28/2010)
Thanks Jeff for outlining it so well.
I may have made a slight mistake but the end result is the same. Let me figure out the mistake.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 11:40 am
Gopinath Srirangan (8/28/2010)
I am creating a table of row size char(1000) as below.
create table Optimised(id char(1000))
i am insert values 1,2,3,4.....
insert into Optimised values('1')
insert into Optimised values('2')
insert into Optimised values('3')
insert into...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 11:18 am
CirquedeSQLeil (8/28/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 10:44 am
ahmed.net (8/28/2010)
Thanks JasonSo what should i do??
im confused.....!:unsure:
This isn't meant to be as nasty as it's going to sound... my recommendation would be do get some design help. Get...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 10:41 am
PaulB-TheOneAndOnly (8/28/2010)
cpinky01 (8/28/2010)
sales for diff products
and Calims under which i have different types of claims
like this:
1.Sales
a. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 10:36 am
WayneS (8/28/2010)
thava (8/28/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 10:34 am
thava (8/28/2010)
Mark-101232 (8/24/2010)
SET DATEFORMAT YMD
--Sample table
DECLARE @TABLE AS TABLE(
[RID] INT,
[EMID] INT,
[In Time] DATETIME,
[Out Time] DATETIME)
--Insert sample data
INSERT INTO @TABLE
SELECT 62, 12, '2005-08-18 06:02:00', '2005-08-18 06:31:00'
UNION...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 10:33 am
WayneS (8/27/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 9:45 am
Ness (8/27/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 8:57 am
Heh... glad I'm not the only one behind on my posts. 🙂
Thanks again, Barry and good to "see" you again... you've been "hiding".
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2010 at 8:51 am
skcadavre (8/25/2010)
ALTER TABLE #mytable ADD id INT IDENTITY;
SELECT t.datecount
,t.outlet
,t.brand
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 27, 2010 at 8:56 pm
Prema sambandam (8/25/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 27, 2010 at 8:51 pm
Viewing 15 posts - 37,051 through 37,065 (of 59,072 total)