Viewing 15 posts - 1,681 through 1,695 (of 2,648 total)
February 28, 2019 at 2:07 am
February 27, 2019 at 12:54 pm
February 27, 2019 at 11:55 am
February 27, 2019 at 10:15 am
February 27, 2019 at 6:56 am
carminamae.gonzales - Wednesday, February 27, 2019 6:33 AMThe first 2 characters is always unique in my data set...
If you have a number...
February 27, 2019 at 6:49 am
Another way of getting the results:SELECT x.PackageID, d.ServerName MissingServer
FROM @DeploymentServers d
CROSS APPLY(SELECT DISTINCT p.PackageID
FROM @PackageServers p
...
February 26, 2019 at 6:37 pm
Or something even simpler like this should work:DECLARE @Cols NVARCHAR(MAX)=''
SELECT @Cols +=QUOTENAME(c.column_name)+', '
FROM INFORMATION_SCHEMA.columns c
WHERE c.TABLE_NAME='MYTABLENAME'
AND c.TABLE_SCHEMA='dbo'
ORDER BY c.ORDINAL_POSITION
February 26, 2019 at 5:33 pm
February 25, 2019 at 1:49 pm
What indexes have you got on dbo.MyTable? I think different index usage between the queries is the problem as you are stopping parameter sniffing by setting the dates within the...
February 25, 2019 at 9:35 am
February 25, 2019 at 7:14 am
I don't think your query will do what you want. It's selecting the same results in the recursive part of the query that its selecting in the anchor part.
It...
February 25, 2019 at 4:12 am
Could you just create a staging table on your data warehouse with the same structure as the table on the other server. Import the rows you need into the staging...
February 24, 2019 at 7:06 am
The only way I know is to script all the stored procedures and add the line "with encryption"
I'd create a script for each stored procedure like this:
[code...
February 23, 2019 at 9:10 am
Viewing 15 posts - 1,681 through 1,695 (of 2,648 total)