Viewing 15 posts - 1,066 through 1,080 (of 6,036 total)
KBSK (11/2/2016)
Grant Fritchey (11/2/2016)
November 3, 2016 at 6:41 pm
J Livingston SQL (11/3/2016)
maria.lindquist (11/2/2016)
The current value is of varchar(7) type.
ok, without you answering the rest of my question for expected results on various scenarios...here is shot in the dark...
November 3, 2016 at 4:13 pm
The fastest data transferring channel is a truck loaded with DVD's
:hehe:
November 2, 2016 at 9:50 pm
P a u l (11/2/2016)
How can sql server identity values be fouled up like this?
Like this:
DBCC CHECKIDENT ( 'table1', RESEED, 1453158)
November 2, 2016 at 4:28 pm
KGJ-Dev (11/2/2016)
Hi,is there any way to avoid the pivoting here.
It depends.
What is it for?
What is 2nd table is made for?
November 2, 2016 at 5:45 am
Can you explain the order of values in this query?
select 1,100,200 union all
select 2,200,null union all
select 3,120, 20
Why 100 goes before 200 for ID=1,
and 120...
November 1, 2016 at 10:56 pm
webrunner (11/1/2016)
November 1, 2016 at 6:28 pm
Eirikur Eiriksson (10/29/2016)
Jeff Moden (10/24/2016)
Eirikur Eiriksson (10/24/2016)
you will need this index on the dbo.Transaction
CREATE UNIQUE NONCLUSTERED INDEX [INDEX_NAME] ON [dbo].[Transaction](
[InvoiceUID] ASC,
[IsSuccess] ASC,
[TransKind] ASC,
[TransactionDate] ASC
)
INCLUDE ( [CardNumber],[ReferenceNumber],[SeqCounter],[UnqReferenceNumber]);
I came up with...
October 29, 2016 at 8:42 pm
mah_j (10/29/2016)
you will need this index on the dbo.Transaction
CREATE UNIQUE NONCLUSTERED INDEX [INDEX_NAME] ON [dbo].[Transaction]
(
[InvoiceUID] ASC,
[IsSuccess] ASC,
[TransKind] ASC,
[TransactionDate] ASC
)
INCLUDE ( [CardNumber],[ReferenceNumber],[SeqCounter],[UnqReferenceNumber]);
and this index for the dbo.Invoice
CREATE UNIQUE NONCLUSTERED INDEX...
October 29, 2016 at 7:02 am
yakko_Warner (10/27/2016)
Did you use len() or datalength() to find the length of the strings.
Both.
For verification.
It did not matter at the end.
They trimmed all strings in .Net code before storing...
October 27, 2016 at 3:54 pm
yakko_Warner (10/27/2016)
How large are we talking? TerraBytes or larger?Also can you quantify the 7x faster?
Thanks!
I was not a DBA there, so did not look into DB sized.
Performance wise -...
October 27, 2016 at 3:42 pm
Sterling Ostin (10/26/2016)
I did read Luis' post and incorporated it in an even more graceful and shorter solution that best suited my need.
In the future, maybe you ought to question...
October 26, 2016 at 11:29 pm
Jeff Moden (10/26/2016)
Heh... careful now. You don't have the time for this. Gotta trust me on this one. 🙂
Jeff, don't you think it's a bit too late to...
October 26, 2016 at 11:11 pm
Writing queries like this is asking for trouble.
Must be created by some automation tool and is extremely difficult for optimizer.
It might be not the index you found, people normally do...
October 26, 2016 at 9:25 pm
Viewing 15 posts - 1,066 through 1,080 (of 6,036 total)