Viewing 15 posts - 1,681 through 1,695 (of 2,645 total)
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
February 22, 2019 at 3:47 pm
You should put the birthdays with their id in a table. Then your query will work.
Also, you don't need the last two lines at the end of your query:
February 22, 2019 at 12:38 pm
February 22, 2019 at 12:35 pm
Viewing 15 posts - 1,681 through 1,695 (of 2,645 total)