Viewing 15 posts - 3,526 through 3,540 (of 26,490 total)
If all the settings on the server and instance are correct, and the code runs fine from outside the app, then look to the app and the web server. ...
August 5, 2016 at 7:19 am
Using the assumption I made above, here is my shot at a solution:
DECLARE @Table TABLE(
QRSID INT,
Title VARCHAR(20),
ParentID INT,
ResolutionId INT
);
INSERT INTO @Table SELECT...
August 5, 2016 at 7:09 am
vijay-367524 (8/5/2016)
DECLARE @Table TABLE(
QRSID INT,
Title VARCHAR(20),
ParentID INT,
ResolutionId INT
)
INSERT INTO @Table SELECT 1,'Title1',0,4
INSERT INTO @Table...
August 5, 2016 at 7:04 am
BLOB_EATER (8/5/2016)
Grant Fritchey (8/5/2016)
BLOB_EATER (8/5/2016)
August 5, 2016 at 6:54 am
sqlenthu 89358 (8/4/2016)
declare @listofids varchar(max)
select @listofids = 'abc1001|abc1002|abc1005|abc1090|bcd1020|bcd1120'
select t1.col1,t1.col1,t1.col3,t1.col4,t1.col5,
(select sum((case when @listofids<>replace(@listofids,t2.col20,'') then col15*10 else col15 end)
from table1 t1
inner join...
August 4, 2016 at 1:45 pm
Here is an updated test. It may not be perfect but it is better than the last regarding test data.
if object_id('dbo.eTally') is not null
DROP FUNCTION [dbo].[eTally]
GO
/****** Object: UserDefinedFunction...
August 4, 2016 at 12:51 pm
Reworking my test suite, as it generated all 5 address type for everyone.
August 4, 2016 at 10:06 am
Actually, I think my solution is quite viable. I created a 1,000,000 row test to compare the two solutions. I also noticed a difference between them where Eirikur's...
August 4, 2016 at 9:44 am
Just noticed that you have an entry for Work but tat wasn't included in you priority sort order in the original post. Where do you want that to be...
August 3, 2016 at 2:25 pm
Jack Corbett (8/3/2016)
Lynn Pettis (8/3/2016)
August 3, 2016 at 9:14 am
Is the code I wrote here really that sophisticated, or is it that I have been doing this so long that for me it is a basic SQL query?
August 3, 2016 at 8:57 am
jasona.work (8/3/2016)
Lynn Pettis (8/3/2016)
Ed Wagner (8/3/2016)
Lynn Pettis (8/2/2016)
August 3, 2016 at 8:49 am
What would also help to confirm what is happening to see the execution plan, actual would be preferred.
August 3, 2016 at 8:39 am
Viewing 15 posts - 3,526 through 3,540 (of 26,490 total)