Viewing 15 posts - 961 through 975 (of 6,036 total)
I am shocked at how many people are still creating new applications in VB6, Delphi, VFP and classic ASP.
What would you suggest them to use?
Something which could...
_____________
Code for TallyGenerator
February 11, 2017 at 1:40 pm
Use sp_executesql:
_____________
Code for TallyGenerator
February 8, 2017 at 8:35 pm
This should do:INSERT INTO msdb.dbo.sysjobhistory_bkp
SELECT * FROM msdb.dbo.sysjobhistory
WHERE run_date < @datepart
AND run_date > (SELECT TOP 1 run_date
FROM msdb.dbo.sysjobhistory_bkp ORDER BY run_date DESC...
_____________
Code for TallyGenerator
February 8, 2017 at 8:12 pm
Main question - what is the clustered index on the main table?
_____________
Code for TallyGenerator
February 8, 2017 at 1:15 pm
You have element-centric XML, you have to use parameter FLAG=2 in OPENXML.
Apart from that - you must use names of elements, not variables.
Variables here can be found only...
_____________
Code for TallyGenerator
February 7, 2017 at 10:09 pm
_____________
Code for TallyGenerator
February 7, 2017 at 6:41 pm
USE [NBCC_Search]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER...
_____________
Code for TallyGenerator
February 6, 2017 at 5:10 pm
You removed this part:
CASE
when sub4.COMMENT_DATE >= DATEADD(DD, -1, GETDATE()) then 'false'
Because your WHERE clauses...
_____________
Code for TallyGenerator
January 28, 2017 at 12:56 pm
_____________
Code for TallyGenerator
January 26, 2017 at 10:18 pm
_____________
Code for TallyGenerator
January 25, 2017 at 11:36 pm
I wonder - what would be those "given situations"?
_____________
Code for TallyGenerator
January 25, 2017 at 7:39 pm
Posting SQL code has several issues: _____________
1) If you place IFC first and then paste the code the opening {code} disappears
2) Drop-down placement
Code for TallyGenerator
January 25, 2017 at 4:39 pm
Try not to use DISTINCT.
Ever.
Just forget this keyword exists
As for this query - keep in mind, that "FOR XML" query is a separate correlated subquery, grouping...
_____________
Code for TallyGenerator
January 25, 2017 at 3:32 pm
I'm currently thinking of converting a TVF to a stored procedure.
There are complications, especially in terms of usability, but i think it worth to try.
Functions execute code...
_____________
Code for TallyGenerator
January 25, 2017 at 3:19 pm
_____________
Code for TallyGenerator
January 24, 2017 at 9:56 pm
Viewing 15 posts - 961 through 975 (of 6,036 total)