Viewing 15 posts - 8,401 through 8,415 (of 8,760 total)
GilaMonster (5/4/2014)
Cool, and when you do so take note of how incredibly badly it performs.
In my books, having to use recursive CTEs qualifies as worst case scenario, do explore the...
May 4, 2014 at 1:14 pm
eligiable (5/4/2014)
May 4, 2014 at 1:11 pm
eligiable (5/4/2014)
I've make this Fiddle and is running fine, I don't get it where is the problem:
What ever happened to Baby Jane, oops, sorry, Bilal Mateen's ID?
😎
May 4, 2014 at 12:39 pm
Throwing in my nickles worth, first on the operation side; draw up your worst case scenarios, then think of few ways to make them even worse, how you would tackle...
May 4, 2014 at 12:33 pm
I've just used this link and ran the download, works like a charm
😎
May 4, 2014 at 11:35 am
How about 2008 - 2014 versions:cool:
SELECT create_date AS INSTALL_DATE
FROM sys.server_principals
WHERE name = 'NT AUTHORITY\SYSTEM';
May 4, 2014 at 7:13 am
I would recommend using the ANSI standard information_schema
😎
/* Using ANSI standard information_schema */
IF EXISTS (SELECT * FROM tempdb.INFORMATION_SCHEMA.TABLES
...
May 4, 2014 at 7:09 am
Quite few ways of doing this, here is one
😎
DECLARE @XML_STUFF TABLE
(
XML_ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED NOT NULL
,XML_DATA...
May 4, 2014 at 5:37 am
thava (5/3/2014)
hi,hope everybody doing good,
here is my problem this is my data
The problem is in the data, each node can only have one parent!
😎
May 4, 2014 at 5:24 am
Quite few ways of doing this, in essence create a set of all customers/months and then do the count.
The server normally translates queries such as "select * from A left...
May 4, 2014 at 4:55 am
mister.magoo (5/4/2014)
It's interesting that you used fetch first N instead of TOP(N).Was there a performance improvement or just personal preference?
It is more of a preference, kind of a reminder...
May 4, 2014 at 3:46 am
Firstly, thank you all for looking into this. It was me after all missing something rather obvious, maybe too obvious. The CTE in the code generates a sequence of 10^8...
May 4, 2014 at 2:32 am
First thought would be a VPN implementation, encrypts the point to point communication
😎
May 3, 2014 at 12:20 pm
LutzM (5/3/2014)
But this query doesn't return the result set as requested since there's a TOP 15 involved for each group...
Ooops, the lights are on but no one's at home 😛
[mental...
May 3, 2014 at 7:19 am
A little trick with SIGN and the OVER clause makes this a simple query
😎
USE AdventureWorks2012;
GO
;WITH MULTI_COUNTING AS
(
SELECT /* Sum the row numbers, gives distinct count */
...
May 3, 2014 at 5:15 am
Viewing 15 posts - 8,401 through 8,415 (of 8,760 total)