Viewing 15 posts - 6,586 through 6,600 (of 8,755 total)
Quick thought, in order to provide meaningful answer to your question, some more information is required. Could you post DDL, sample data and preferably the actual execution plans for both...
November 13, 2014 at 10:04 am
Quick question, can you provide the actual query and the table structure?
😎
November 13, 2014 at 12:28 am
Quick solution for educational and entertainment purposes (read "spanner in the works") using slight modification of Jack Corbett's data preparation.
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_DATES') IS NOT NULL DROP TABLE dbo.TBL_DATES;
CREATE...
November 12, 2014 at 10:43 pm
Koen Verbeeck (11/12/2014)
Eirikur Eiriksson (11/12/2014)
Koen Verbeeck (11/12/2014)
Eirikur Eiriksson (11/12/2014)
Koen Verbeeck (11/12/2014)
David Burrows (11/12/2014)
November 12, 2014 at 7:32 am
Koen Verbeeck (11/12/2014)
Eirikur Eiriksson (11/12/2014)
Koen Verbeeck (11/12/2014)
David Burrows (11/12/2014)
However max(rate) over( partition by product) will not work if the rate varies +/- and the latest value by date is needed
In...
November 12, 2014 at 6:52 am
imran 60091 (11/12/2014)
Hi, Im running on SQL Server 2008 R2.
Just tried this on SQL Server 2014 and it throws an error:
Msg 9456, Level 16, State 1, Line 1
XML parsing: line...
November 12, 2014 at 6:45 am
Koen Verbeeck (11/12/2014)
David Burrows (11/12/2014)
However max(rate) over( partition by product) will not work if the rate varies +/- and the latest value by date is needed
In that case an ORDER...
November 12, 2014 at 6:35 am
Quick suggestion, use the row_number function
😎
USE tempdb;
GO
SET NOCOUNT ON
IF OBJECT_ID('dbo.test') IS NOT NULL DROP TABLE dbo.test;
create table dbo.test
(
product varchar(50),
QTY int,
...
November 12, 2014 at 5:58 am
duggal.priyanka06 (11/11/2014)
I have an excel file which has dynamic columns
i.e. Col1, Col2, Col3 this week. next week i will have a new Col4 in the sheet. This will keep...
November 12, 2014 at 5:06 am
Further on John Corkett's post, the [COLUMN SET] bridges the gap between a normal table and an EAV type table. Standard set based approach can be used on the database...
November 12, 2014 at 2:36 am
Another question, is this a default or a named instance?
😎
November 11, 2014 at 12:10 pm
Tony Webster (11/11/2014)
CREATE PROC testproc
AS
SELECT 123
-- CONVERT(varchar)
GO
which on one particular server gives:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData...
November 11, 2014 at 10:56 am
lizamungro (11/11/2014)
November 11, 2014 at 10:01 am
BWFC (11/11/2014)
Stuart Davies (11/11/2014)
BWFC (11/11/2014)
November 11, 2014 at 2:20 am
Quick note, as LinksUp noted, the parentheses do not match, there is an extra opening one before the first instance of T0.DiscPrcnt. To prevent/detect this kind of errors, I find...
November 10, 2014 at 10:51 pm
Viewing 15 posts - 6,586 through 6,600 (of 8,755 total)