Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Performance Tuning - Since I consider myself a learning DBA, have few years of fine tuning experience, I struggle to find to root cause if someone complains about the app slowness. These are some of the tools I use to find out. I have a VM, 8 cores, 64 GB RAM, 6 DBs. Largest DB is only 4 […] |
SQL Server 2016 - Development and T-SQL |
UNION statement is inconsistent - Hi I have a weird problem that I can't find the cause for. I have the statement below, it consists of three individual statements combined with UNION. In the production site, first SELECT outputs one row, middle SELECT nothing, and last SELECT 9 rows. The full statement with UNION varies in returning 1 or 10 […] |
Administration - SQL Server 2014 |
Performance Dashboard Error: 'CHECK_DEPENDENCIES' - Hey all, I am trying to drill down into the performance report on our 2014 box to see what is maxing the CPU and I get the error : "A data source instance has not been supplied for the data source 'CHECK_DEPENDENCIES' Done some digging and I have found an article that states this reporting […] |
SQL Server 2019 - Administration |
SQL Cluster Active/Passive Services stopped on dormant node - Correct me if I'm wrong here but on a SQL Server 2019 cluster (active/passive deployment) ----- where NODE1 of the Cluster is ACTIVE and NODE2 of the Cluster is PASSIVE (dormant) ----- the SQL Server services (except for SSIS) will show as STOPPED on the PASSIVE (dormant) NODE2. We have a vendor asking about this […] |
Index creation on partitioned table - Hi I have a large partitioned table and in order to carry out some maintenance on the leading partition I needed to switch it into another table. As part of te maintenance I needed to drop and recreate the indexes In test (a fairly recent restore of production) things went smoothly, to create the indexes […] |
SQL Server 2019 - Development |
Arithmetic overflow error when using POWER function - Hello, Any help appreciated. This code should perform a internal rate of return (IRR) calculation. It generates correct data based on what was provided to me using Excel's IRR function. It looks like as GETDATE() gets close to my hard coded date the error is generated. Any suggestion to prevent the error would be appreciated. […] |
Preventing Arithmetic overflow error when using POWER function - Hello, Any help appreciated. This code should perform a internal rate of return (IRR) calculation. It generates correct data based on what was provided to me using Excel's IRR function. It looks like as GETDATE() gets close to my hard coded date the error is generated. Any suggestion to prevent the error would be appreciated. […] |
SQL Azure - Administration |
For SQL Managed Instance - Alternative from using xp_cmdshell? - Hi, Looking to see what people have done if in the past they used xp_cmdshell but now are on SQL Managed Instance where it is not supported. Thanks, Daniel |
How to read pdf file metadata from an Azure Blob location? - Anyone recommend the best way to accomplish this? Powershell? Or can you do this via external data sources? All I need to do is read pdf file metadata from folders in azure blob storage so I can get the filename and date file created for audit purposes. Thanks in advance! |
Strategies and Ideas |
How to model this... - Let's say the main fact table stores financial agreements, along with various attributes and measures, like the lender, the amount loaned, the amount still owed, etc.... We have a fairly well working DW whereby the one and only fact table models the above. But for some financial agreements, the agreement isn't a monetary loan but […] |
SQL Server 2022 - Administration |
SQL Server running on Linux, instance starts almost 2 mins after the service - SQL Server (2022) running on Linux (SuSE 15.4), instance starts almost 2 mins after the service. When the system starts, systemctl status mssql-server.service reports, something like Active: active (running) since Wed 2023-06-28 15:47:57 UTC; 2min 43s ago However, sql server is not available immidately, has to wait almost 2 mins before can be queried. When […] |
SQL Server 2022 - Development |
Error 823: Error number: 21, Severity: 24, State: 1 at start of SSM 19.1 - Hello all, I have installed MSSQL 2022 Developer on a new Laptop with Win11 Prof. Databases are located on partition D:\DB\MsSQL\SQL2022\Data Sometimes start of SSM (or my application) is running without any problem When the failure 823 came up first time, I deinstallend and installed complete MSSQL 2022 and SSM But than (around one week […] |
SQL Server Predicate - Hi, I need to get clear idea abut SQL Server Predicates, according to Microsoft document it describes there are only 4 predicates available in sql server. https://learn.microsoft.com/en-us/sql/t-sql/queries/predicates?view=sql-server-ver16 CONTAINS FREETEXT IS [NOT] DISTINCT FROM IS [NOT] NULL but my drought is, why below expression are not categorize as Predicates because all of the below expression that […] |
how to identify sql scripts not in stored procs w/o using trace - I'm storing off various stats about procs on a daily basis. On e of them stores each sql statement in each proc w/ runtimes and other information. My issue is there are power bi reports and sql job step that are not using procs but have embedded the sql scripts directly in them . […] |
issue with text column in dbo.syscomments - I wrote a process to store off all sql objects daily. There is one that stores off all stored procedures contents daily. The text column in the dbo.syscomments table is being stored locally in another table whose column is a varchar(max). It stores each proc in 4000 char chunks. So there will be one record […] |