Viewing 15 posts - 2,011 through 2,025 (of 2,458 total)
Duh... Here's a few more :hehe:
http://www.sqlservercentral.com/Forums/Topic1519856-824-29.aspx#bm1522006
December 13, 2013 at 10:25 am
patrickmcginnis59 10839 (12/9/2013)
peter-757102 (12/9/2013)
Charles Kincaid (12/9/2013)
RBAR fetches more rows from the table. False. ...
December 10, 2013 at 11:47 am
bhw0006 48811 (12/9/2013)
if object_id('tempdb..#table') is not null drop table #table
go
select first_name, last_name, age
into #table
from (
select 'Chuck' as first_name, 'Norris' as last_name, '32' as...
December 10, 2013 at 11:00 am
December 10, 2013 at 8:21 am
Here's a good article by Robert Sheldon with some examples:
December 9, 2013 at 12:10 pm
Plagiarism stinks.
...on that note, here's an ITVF that uses ROW_NUMBER() for calculating the longest common substring.
-- (1) Function to find the longest common substring
CREATE FUNCTION CommonSubstrings(@s1 varchar(8000),@s2 varchar(8000))
RETURNS...
December 5, 2013 at 10:20 am
dwain.c (12/3/2013)
GordonLiddy (12/3/2013)
December 5, 2013 at 8:30 am
This should get you what you need:
WITH
xxx AS
(
SELECTpe.IPCode AS pe_ip,
pr.IPCode AS pr_ip,
pr.ID,
DENSE_RANK() OVER (PARTITION BY pr.IPCode ORDER BY ID) AS x
FROM Person pe
CROSS APPLY [Profile] pr
WHERE pe.IPCode=pr.IPCode
),
qualifiers...
December 3, 2013 at 11:21 am
Jeff Moden (11/20/2013)
Alan.B (11/20/2013)
clayman (11/20/2013)
Jeff Moden (11/19/2013)
clayman (11/19/2013)
dastagiri16 (11/19/2013)
hi,i need the text like "TOTAL" ...rollup wont give it...
Please advice
Use SSRS
BWAAAA-HAAAA!!!! Sure it's easy to get to the...
November 21, 2013 at 8:35 am
Operating under the assumption that items beginning with L are children:
DECLARE @lines TABLE
(line_no int,
code varchar(3) not null,
account_no varchar(10) not null)
INSERT @lines
SELECT Line_no = 123,...
November 20, 2013 at 2:36 pm
clayman (11/20/2013)
Jeff Moden (11/19/2013)
clayman (11/19/2013)
dastagiri16 (11/19/2013)
hi,i need the text like "TOTAL" ...rollup wont give it...
Please advice
Use SSRS
BWAAAA-HAAAA!!!! Sure it's easy to get to the moon. All...
November 20, 2013 at 12:13 pm
pietlinden (11/19/2013)
November 19, 2013 at 9:56 pm
This could do this trick:
IF OBJECT_ID('tempdb..##ssrs_candidates') IS NOT NULL DROP TABLE ##ssrs_candidates;
CREATE TABLE ##ssrs_candidates (c_id int identity, ssrs_db varchar(100));
EXEC sp_msforeachdb'
INSERT INTO ##ssrs_candidates
SELECT TABLE_CATALOG
FROM [?].information_schema.columns
WHERETABLE_NAME =''Catalog''
ANDCOLUMN_NAME =''ItemID''
ANDORDINAL_POSITION =1
ANDDATA_TYPE=''uniqueidentifier''
'
SELECT * FROM...
November 19, 2013 at 1:34 pm
krish.sett (8/3/2011)
This is really...
November 19, 2013 at 12:35 pm
Viewing 15 posts - 2,011 through 2,025 (of 2,458 total)