Viewing 15 posts - 1,996 through 2,010 (of 2,645 total)
November 14, 2018 at 5:17 pm
SELECT b.WEA,
b.[Date_Time],
a.[SSI1] [SSI1Reference],
a.[SSI2] [SSI2Reference],
a.[SSI3] [SSI3Reference],
b.[SSI1],
...
November 14, 2018 at 1:04 pm
November 14, 2018 at 11:06 am
November 14, 2018 at 10:33 am
SELECT b.WEA,
b.[Date_Time],
a.[SSI1] [SSI1Reference],
a.[SSI2] [SSI2Reference],
a.[SSI3] [SSI3Reference],
b.[SSI1],
b.[SSI2],
b.[SSI3]
FROM [dbo].[RT_Group_Coverage] a
INNER JOIN [dbo].[RT_Group_Status] b
ON b.WEA...
November 14, 2018 at 8:48 am
In this instance you might find the following code faster:;WITH CTE AS
(
SELECT c.Dealer, c.ContCode, CG.Description AS [Attempt], c.RegNo, c.Salute, c.Updated, c.ContDate, c.CompleteCode,
November 14, 2018 at 7:31 am
You will need indexes on the columns you are joining on to get good performance.
When deleting rows from tables that have FK's on different tables pointing to it the...
November 14, 2018 at 7:24 am
SELECT c.Dealer, c.ContCode, CG.Description AS [Attempt], c.RegNo, c.Salute,...
November 14, 2018 at 7:13 am
--QUERY 1
;with cte as
(
SELECT c.Dealer, c.ContCode, CG.Description AS [Attempt], c.RegNo, c.Salute, c.Updated, c.ContDate, c.CompleteCode
from #Contacts c
JOIN #Dealers2 AS d WITH(NOLOCK)...
November 14, 2018 at 6:43 am
craig.jenkins - Wednesday, November 14, 2018 6:22 AMSorry please see belowSELECT c.Dealer, c.ContCode, cp.description, CG.Description AS [Attempt], c.RegNo, c.Salute, c.Updated, c.ContDate, c.CompleteCode
There...
November 14, 2018 at 6:33 am
Can you list the columns you want in "QUERY 1"? There is currently more than one "dealer" column output.
November 14, 2018 at 6:11 am
INSERT INTO LOCAL_Item VALUES ('64082','Null', 'Ear Defenders')
should beINSERT INTO LOCAL_Item VALUES ('64082',Null, 'Ear Defenders')
i.e. you can't have quotes around the Null
November 14, 2018 at 5:39 am
Thanks Harsha, a great script (5 stars awarded).
This saved me a lot of effort as I had to detach and then reattach about 50 databases on two instances...
November 14, 2018 at 5:14 am
November 13, 2018 at 6:31 pm
Viewing 15 posts - 1,996 through 2,010 (of 2,645 total)