Viewing 15 posts - 1,546 through 1,560 (of 2,645 total)
The problem was you had P.RowNum=1 as part of the left join.
Try this instead:
select *
from #tmpSTP P
left join #tmpZATS Z
...
June 11, 2019 at 3:08 pm
I would say that won't work as the SP is already creating a temp table using a insert into that can give Msg 8164, Level 16, State...
June 9, 2019 at 5:59 pm
There are third parties that have software to recover dropped tables.
I've not tried it so I can't really comment any further.
June 6, 2019 at 2:24 pm
I guess it's checking the publisher's certificate revocation on the internet but just times-out if there is no access to the website. If you stop it looking for it then...
June 4, 2019 at 4:16 pm
SSMS was slow for me to start up on a production server that had no access to the internet (I'm not sure if this is your situation).
To fix this I...
June 4, 2019 at 3:28 pm
You need to click the 'OK' button when you edit the joining line.
Then go into the destination and map the new column.
June 4, 2019 at 2:10 pm
Have you tried right-clicking on the joining line and editing it, the missing column should be visible there.
Then just click 'OK' and you should see the column when you edit...
June 4, 2019 at 1:28 pm
I'd urge you not to use a temp table for that. If SQL goes down during the processing, you'll never be able to determine what the original key values...
June 3, 2019 at 7:12 pm
You could backup the database then restore it to a different name.
then all you need is a script to drop the existing users and create new ones.
June 2, 2019 at 11:47 am
In fact you don't need any dynamic SQL.
This statement will do everything the dynamic SQL does:
SELECT icml.*
FROM AMP.dbo.InterfaceConnectionMessageLog icml
INNER JOIN AMP.dbo.InterfaceConnection ic
...
May 29, 2019 at 7:20 pm
If you create a temporary table by inserting the contents of table variable @messagesearchterms into it (say call the temporary table #messagesearchterms) you should be able to change the SQL...
May 29, 2019 at 3:50 pm
I'm somewhat aware of this, but I don't have the precise answer. It's some kind of bug or glitch in the optimizer that gets a difference in row counts....
May 29, 2019 at 12:17 pm
Maybe he's just saying that if you have an index that is never used, that could be a symptom of performance improvements to be made, by creating one that...
May 28, 2019 at 9:54 pm
Here's a script to test it:
SET STATISTICS IO, TIME ON
GO
SELECT SalesOrderDetailId, OrderQty
FROM Sales.SalesOrderDetail sod
WHERE ProductId = (SELECT AVG(ProductId)
...
May 28, 2019 at 8:37 pm
Viewing 15 posts - 1,546 through 1,560 (of 2,645 total)