Viewing 15 posts - 391 through 405 (of 748 total)
Looking back at this, I finally found a decent use for DATEDIFF_BIG... it's to create UNIX TimeStamps of both the "seconds since 1970" and "milliseconds since 1970" flavor (the later...
June 10, 2022 at 4:01 pm
Which version of SSMS?
You're running your local SSMS and not SSMS in Docker, right? If so, you should be looking at your local path, not in the docker container. Templates...
June 10, 2022 at 3:26 pm
I try to always use procs. I don't know of a good reason not to. It's visible, editable , & reviewable in superior query-editing tools such as SSMS. And it's...
June 10, 2022 at 1:42 pm
You're getting the duplicates because M2 has two parents -- P2 & P3.
If you don't care about that and need the single row for each such case you'll need to...
June 9, 2022 at 10:17 pm
Two potential values of the Oracle-style ROWTYPE over an MSSQL user-defined table type:
June 9, 2022 at 2:42 pm
Create a stored procedure WITH EXECUTE AS OWNER.
(being sure to secure the procedure so only the intended people can execute it)
June 8, 2022 at 4:20 pm
Have you tried wrapping SUM(Amount) w/ ISNULL? e.g.,
, [Amount]= ISNULL(SUM(Amount),0)
June 7, 2022 at 5:03 pm
??? SP3 was released in September 2021.
https://www.microsoft.com/en-us/download/details.aspx?id=103440
June 6, 2022 at 6:55 pm
You can reuse local temp tables from one stored procedure in a procedure called by the proc that created the temp table, because they are in the same session.
e.g., get...
June 6, 2022 at 2:55 pm
Global is global. So, yes they could certainly conflict & return bogus data.
I'd recommend using local temp tables instead of global temp tables, or staging tables within the appropriate databases.
I...
June 6, 2022 at 2:00 pm
The USE statement is for specifying database to use on the connected server, not for specifying a server.
You need to define & use a linked server (the definition would...
June 2, 2022 at 9:59 pm
"AppVManagement" & "AppVReporting" appear to be for Microsoft Application Virtualization: https://docs.microsoft.com/en-us/windows/application-management/app-v/appv-for-windows, https://docs.microsoft.com/en-us/windows/application-management/app-v/appv-deploy-appv-databases-with-sql-scripts
ReportServer & ReportServerTempDB are for SQL Server Reporting Services.
Note: This appears identical to a question that was asked on...
June 1, 2022 at 1:36 pm
Do you know/can you determine if a big transaction occurred just prior to this problem?
Are you out of space? How much disk space is used and how much is available...
May 31, 2022 at 10:18 pm
Do you have replication on that database?
Have you executed DBCC CHECKDB to check for errors? If it indicates errors, see this: https://www.sqlservercentral.com/articles/help-my-database-is-corrupt-now-what. Do not reflexively run repair w/o fully...
May 31, 2022 at 8:37 pm
Those three have approximately 2/3 of the market, and are mostly (ServiceNow at #3) the fastest growing. The top eight have 82% of the market. If you're in/find an industry...
May 31, 2022 at 1:22 pm
Viewing 15 posts - 391 through 405 (of 748 total)