Viewing 15 posts - 196 through 210 (of 6,678 total)
Using the OP's original example:
SELECT *
, file_date = datefromparts(f.string_date % 10000, f.string_date / 1000000, f.string_date / 10000 % 100)
FROM #t
...
September 14, 2023 at 8:40 pm
I see a lot of focus here on not reindexing at all - mostly because no one can prove that reindexing improves performance. I am not sure how that myth...
September 14, 2023 at 8:05 pm
If GETDATE() in SSMS is returning UTC - then using GETDATE() in an agent job will also return UTC. If ServiceDate is stored in UTC then your calculation would be...
September 12, 2023 at 7:19 pm
The ONLY reason I see to use powershell for a backup process would be if you needed to move the file to a location that the SQL agent service...
September 11, 2023 at 8:57 pm
I find it to be much easier t0 update the file locations directly - take the database offline - move the files and then bring the database online. Detaching the...
September 11, 2023 at 8:48 pm
I would not even approach it as a stepped migration - instead, I would evaluate the existing processes and rewrite them in a project deployment model.
In many cases, the original...
September 6, 2023 at 1:37 pm
GRANT WITH GRANT
What?
Shouldn't that be 'GRANT WITH CALL GRANT' ???
August 22, 2023 at 9:12 pm
I have to wonder why you have setup a SQL Server agent job - running an SSIS package - as an 'interactive' process in the first place. That is not...
August 17, 2023 at 4:48 pm
Need more information - first, I have to assume the FCI is configured with hosts in the same data center since that will be using shared storage. Failover for the...
August 10, 2023 at 7:20 pm
I find it interesting that this doesn't work when using the correct zero date for a datetime2:
DATEADD(dd,DATEDIFF(dd,'1900',DateValue),CONVERT(DATETIME2,TimeValue)) --2nd...
August 8, 2023 at 9:17 pm
Probably the best way to handle that is to use the functionality built into SQL Server agent to manage a multi-server environment.
Ideally, you would use a server outside the...
August 4, 2023 at 4:56 pm
It depends on the how the cluster quorum was configured in the first place. If all nodes in the cluster have a quorum vote - then you have 2 possibilities.
July 25, 2023 at 8:20 pm
Here is a start:
SELECT UIMth = substring(t.yourcolumn, 8, 8)
, UISeq = substring(t.yourcolumn, 24, charindex(' ', t.yourcolumn, 24) - 24)
...
July 21, 2023 at 10:02 pm
You still seem to think SQL Server should materialize the 'view' before applying the filter from the outer/calling query. SQL Server does not do that - it compiles the view...
July 21, 2023 at 9:51 pm
The reason this happens is because the conditions cause a different execution plan to be generated - and that new plan performs those calculations before applying the where clause. That...
July 20, 2023 at 9:23 pm
Viewing 15 posts - 196 through 210 (of 6,678 total)