Viewing 15 posts - 7,606 through 7,620 (of 8,760 total)
Did you get this resolved? It only takes a minor change from previously posted code
😎
SELECT
AC.name AS 'Acct',
(SELECT column_id AS 'Item/data()'
FROM sys.columns AS ITEMS1
WHERE ITEMS1.object_id = AC.object_id
FOR XML PATH ('Items'),...
August 3, 2014 at 5:47 am
Using Lutz's code with the addition of NULLIF to also handle literal 'NULL' value
😎
create table #t (EmpID char(5), Name varchar(10), WorkDate date,Status varchar(5),WkdHrs int)
insert into #t
values
('00010', 'JOSEPH', '20140710','P', 8),
('05200', 'ANTHONY',...
August 3, 2014 at 5:01 am
Quick question, can you supply the table structure and sample data in a consumable format?
😎
August 3, 2014 at 4:54 am
saxena200 (8/2/2014)
our data contains tables which have cyclic dependency, there are transaction and master tables but its not necessary that...
August 2, 2014 at 3:44 pm
GilaMonster (8/2/2014)
p.s. Nolock has side effects, it's not a go-faster switch that should be added to every single statement. Let's...
August 2, 2014 at 3:18 pm
Thanks Gail and Erland, I was slightly (understatement) 😀 hasty responding before.
😎
August 2, 2014 at 3:02 pm
Jeff Moden (8/2/2014)
August 2, 2014 at 2:45 pm
saxena200 (8/2/2014)
u may want to read the second line of the post dude!; BTW I believe I landed on the wrong place for this kind off question.
Thanks for reading that...
August 2, 2014 at 2:00 pm
Jeff Moden (8/2/2014)
August 2, 2014 at 12:45 pm
Jeff Moden (8/2/2014)
Sean Lange (7/31/2014)
August 2, 2014 at 12:38 pm
Daniel Matthee (8/2/2014)
Eirikur Eiriksson (8/2/2014)
CONVERT(INT,P.[20140728]) + CONVERT(INT,P.[20140804])
Hi Eirikur
I dont fully agree that it has the same flexibility.
For example in my suggestion i can create any date range as...
August 2, 2014 at 11:58 am
saxena200 (8/2/2014)
As report model project is being deprecated in ss2012 - what are the alternatives available for us.
we have highly unstructured database (highly normalised and transactional in nature)
Tabular model is...
August 2, 2014 at 11:24 am
GilaMonster (8/2/2014)
There's no easy way (and the link previously given just shows the queries to fetch the missing index information, which is not what was asked)
Nor being implied either,...
August 2, 2014 at 11:16 am
Jeff Moden (8/2/2014)
Eirikur Eiriksson (8/2/2014)
Update codeUSE tempdb;
GO
SET NOCOUNT ON;
DECLARE @ITER INT = 0 ;
DECLARE @COUNT INT = 100000;
DECLARE @NextId INT = 0...
August 2, 2014 at 10:20 am
TomThomson (8/2/2014)
Evil Kraig F (8/1/2014)
August 2, 2014 at 8:24 am
Viewing 15 posts - 7,606 through 7,620 (of 8,760 total)