Viewing 15 posts - 2,116 through 2,130 (of 4,087 total)
CELKO (12/6/2016)
Now you're just making up stuff to support your claims.
No, I get called in every now and then by product developers a lot of different SQL companies to...
December 6, 2016 at 4:13 pm
EasyBoy (12/6/2016)
Thanks for reply. But, how can i use that column into main SP?
It's no different from any other column. You either reference it indirectly through the view or...
December 6, 2016 at 3:55 pm
CELKO (12/6/2016)
I hope that “is_active” is not a bit flag; that would mean you are using assembly language programming in SQL and we do not do that.
Not that means that...
December 6, 2016 at 2:26 pm
ingcruzmoreno (12/6/2016)
Were you able to fix this problem? I just got the same error. :S
He already said that he had fixed it, but didn't remember what he did. And...
December 6, 2016 at 1:44 pm
It's extremely difficult to troubleshoot performance issues without an execution plan (preferably actual). Can you attach the plan as a .sqlplan file?
In the meantime, you might want to try...
December 6, 2016 at 1:00 pm
CELKO (12/6/2016)
Using proprietary dialect constructs like CROSS APPLY and TOP make optimization difficult
Now you're just making up stuff to support your claims.
and portability impossible.
Who cares?!?! Most people here...
December 6, 2016 at 12:34 pm
adonetok (12/6/2016)
Where is "near '-'" from script?
(352866 row(s) affected)
Msg...
December 6, 2016 at 12:21 pm
Here is the text.
create procedure sp_dailyreq
.....
SELECT u.id,
u.NAME,
...
December 6, 2016 at 11:33 am
Just include the @id and id values in your debug table.
INSERT INTO @DebugTable(
input_id,
id,
Result_On,
AlarmId,
[Target],
Result)
SELECT
@id,
id,
@AlarmStart,
@AlarmEnd,
Result_On
FROM @Results
Drew
December 6, 2016 at 8:39 am
Adi Cohn-120898 (12/6/2016)
December 6, 2016 at 8:19 am
@Sean, The splitter definition is in the query plan file.
CREATE FUNCTION [dbo].[fn_SplitString]
(
-- Add the parameters for the function here
@List NVARCHAR(MAX),
@Delimiter NVARCHAR(255)
)
RETURNS...
December 5, 2016 at 12:54 pm
Recurs1on (12/5/2016)
drew.allen (12/5/2016)
Have...
December 5, 2016 at 11:43 am
It sounds like the is_primary_replica condition should be part of the JOIN criteria instead of in the WHERE clause.
select ag.Name, ag.Group_Id, agl.dns_name as 'ListenerName', COUNT(db.database_id) 'DatabaseCount'
from master.sys.availability_groups ag
inner...
December 5, 2016 at 11:07 am
I also notice that your deleting from tableA, but filtering TableB, so you're going to keep getting the same 10000 rows from TableB every time through the loop.
Have you tried...
December 5, 2016 at 10:25 am
TheSQLGuru (12/5/2016)
That looks workable. There is a solution with CROSS APPLY too. Look up Itzik Ben-Gan TOP rows per group.
This probably doesn't meet the conditions for top rows per group....
December 5, 2016 at 9:53 am
Viewing 15 posts - 2,116 through 2,130 (of 4,087 total)