Viewing 15 posts - 3,226 through 3,240 (of 8,754 total)
Thanks for this, now the only thing missing is the exact format of the XML, can you please post an example?
😎
September 8, 2016 at 3:32 am
This approach seems overly complicated to me. Can you please post the DDL (create tables), sample data as an insert statement and the expected output?
😎
September 8, 2016 at 2:59 am
Quick suggestion, use Ola Hallengren's index maintenance scripts, work like a charm.
😎
September 7, 2016 at 9:32 am
ChrisM@Work (9/6/2016)
Sean Lange (9/6/2016)
Luis Cazares (9/6/2016)
Sean Lange (9/6/2016)
September 6, 2016 at 12:56 pm
Can you please post the DDL (Create table), sample data as an insert statement and the expected results?
😎
September 6, 2016 at 12:04 pm
Here is one way of doing this, the output is self-explanatory, uses the OBJECTPROPERTY function and the sys.sql_expression_dependencies view.
😎
-- EE Quick Static Code Analysis
SELECT
SM.object_id ...
September 6, 2016 at 5:33 am
Quick thought, either do year-week or year-month, the two are incompatible
😎
September 5, 2016 at 1:51 pm
Congrats, good stuff and you are most welcome.
😎
September 5, 2016 at 1:08 pm
Simply add the grouping as the first CTE
😎
USE TEEST;
GO
SET NOCOUNT ON;
;WITH DEMO(ID,FromTime,ToTime) AS
(
SELECT
ID
...
September 4, 2016 at 9:29 am
Quick suggestion, update the VS to the latest release before the installation, had similar/same problem on one of my workstations and after updating the VS with all the things applicable...
September 4, 2016 at 8:26 am
This code will return the interval in the format of DD:HH:MM:SS
😎
USE TEEST;
GO
SET NOCOUNT ON;
;WITH DEMO(ID,FromTime,ToTime) AS
(
SELECT
ID
...
September 4, 2016 at 8:23 am
J Livingston SQL (9/4/2016)
do you have time differences of greater than 24 hours?
Good point:pinch:, obviously the TIME data type isn't fit for purpose if either a single interval or the...
September 4, 2016 at 7:41 am
Quick thought, the time calculation is not correct, the second result sould be 02:30:21 so there is an extra minute there in the results.
😎
Here are three different methods
USE TEEST;
GO
SET NOCOUNT...
September 4, 2016 at 6:43 am
You are merging into the LocDisplay table and that's where the error originates
😎
merge into LocDisplay as T
using (
select LocCode, PlaneCode, LocName, SomeCode
from [Loc] as S
cross apply (select distinct SomeCode from...
September 4, 2016 at 6:09 am
mah_j (9/3/2016)
This is the output:ErrorLogIX_ErrorLogFNNONCLUSTERED INDEX91.3237076278522144405
ErrorLogPK_LogCLUSTERED INDEX1.377094313331011301799
*and in addition the timeout occurs some times,may be we do not have it for 2 days.
Do you have any index maintenance jobs running...
September 4, 2016 at 5:51 am
Viewing 15 posts - 3,226 through 3,240 (of 8,754 total)