Viewing 15 posts - 346 through 360 (of 2,458 total)
I'm a little late here but actually started a solution on Friday that I just now had time to finish.
First and foremost: unless someone has an example of how...
December 5, 2016 at 4:59 pm
Luis Cazares (12/5/2016)
crookj (12/5/2016)
djj (12/5/2016)
LaneLois
Lana
Turner
December 5, 2016 at 4:05 pm
patelxx (12/1/2016)
CREATE FUNCTION fn_list_the_number(@count INT)
RETURNS TABLE
AS
RETURN
(
WHILE (@count <= 10)
BEGIN
PRINT CAST(@count AS...
December 1, 2016 at 12:01 pm
Some DDL and easily consumable data would help circumvent any confusion but here's some sample code to get you started. Thom referred you to a calendar table article - that's...
December 1, 2016 at 9:57 am
Ditto Grant's recommendation. I also like Idera's SQL Diagnostic Manager. It's been about 6 years since I last used it but, as a DBA I really liked it and the...
November 30, 2016 at 11:42 am
N_Muller (11/30/2016)
Alan.B (11/29/2016)
You'll notice three UNION ALL's. The first query...
November 30, 2016 at 9:54 am
My solution can be totally optimized and simplified but here's a solution that uses DelimitedSplit8K (see the link in my signature):
-- your sample data
declare @table table ( Col varchar(100) )
insert...
November 29, 2016 at 5:06 pm
Using this sample data:
CREATE TABLE #myTable (dt date UNIQUE NOT NULL);
WITH E AS (SELECT v FROM (VALUES (1),(1),(1),(1),(1),(1)) t(v))
INSERT #myTable
SELECT CAST(DATEADD(DAY, ROW_NUMBER() OVER (ORDER BY (SELECT 1))-1, '20140101') AS...
November 29, 2016 at 9:41 am
Very interesting read - I was not aware of this tool. Cool stuff - well done!
November 29, 2016 at 8:05 am
Of that only works with the "numbers dash numbers dash letters" formatting.
Plus it boring... My "just for the fun of it" solution answered (what I thought) was a more interesting...
November 28, 2016 at 1:31 pm
First - If you are using SSAS 2012 then look at this link: https://msdn.microsoft.com/en-us/library/ms170208(v=sql.110).aspx (what you posted was for SSAS 2016).
Second, ignore the second link for now (the one...
November 28, 2016 at 1:11 pm
Assuming Jason's interpretation of the OP's requirement is correct and the requirement was to have all the numbers in a single column separated by spaces (which looks correct but who...
November 28, 2016 at 10:04 am
manie (11/25/2016)
I just realised that I posted a comment as if the is a new article and then realised it was posted in 2009. Still a very good article!!! :cool::cool::cool::cool::cool::cool:
Its...
November 28, 2016 at 8:06 am
I just deleted a table named dbo.deleteme from our Dev box. This upset some people. Nothing surprises me anymore.
November 22, 2016 at 12:27 pm
rajemessage 14195 (11/22/2016)
1) select * from abc where abc.abcid =(select top 1 xyz.abcid from xyz...
November 22, 2016 at 11:50 am
Viewing 15 posts - 346 through 360 (of 2,458 total)