Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Administration |
optimize cost sort - hello , do you have any idea for optimize the sort object in my table I have only one clustered index in column id I created a nonclustered index on the dateInsertion column but I still have an index browse GO CREATE TABLE [dbo].[BLMachines]( [id] [int] IDENTITY(1,1) NOT NULL, [distinguishedName] [varchar](max) NULL, [samAccountName] [varchar](max) NULL, […] |
SQL Server 2016 - Administration |
DBCC Checkdb cannot finish - Msg 8921, Level 16, State 1, Line 8 Check terminate - Hello We have this issue on one of our Prod databases. The database is fully operational but our DBCC checkdb job is failing with the error below: Msg 8921, Level 16, State 1, Line 8 Check terminated. A failure was detected while collecting facts. Possibly tempdb out of space or a system table is inconsistent. […] |
alter partition function - Hello, I have a DB with partitions create partition function PF_IdEmpresas (smallint) AS range left for values (1,2,3,4,5,6,7,8,9,10,11,12,13) create partition scheme PS_BASE AS PARTITION PF_IdEmpresas to (BASE01,BASE02,BASE03,BASE04,BASE05,BASE06,BASE07, BASE08,BASE09,BASE10,BASE11,BASE12,BASE13,BASE14) In the filegroup BASE14 there are data with the values 14, 15 and 16 and I want to add a new filegroup, BASE17, for the data with […] |
Administration - SQL Server 2014 |
How to distinguish human principals from all the rest in sys.server_principals ? - Hi all, If I run this query: select * from sys.server_principals where type = 'U' and name not like 'NT%' I get a listing of logins of both types: human which are our team-members, as well as like "...reports", "...developers", etc. I am tasked to collect a listing of only human members, but there is […] |
SQL Server 2019 - Administration |
Missing 'sys.sp_MSIsContainedAGSession' causing failure in CU13 update script - After upgrading installing Cumulative Update 13 for Microsoft SQL Server 2019 (KB5005679), the server failed to start. Error logs showed that this was because the upgrade script msdb110_upgrade.sql attempts to run stored procedure 'sys.sp_MSIsContainedAGSession'. However, the server has no such stored procedure, nor do our other, non-upgraded instances have it. Error: 2812, Severity: 16, State: […] |
SQL Server 2019 - Development |
Percent Rank - Hi Everyone I have an Access query that computes the percentile for a given set of values. The key is that the calculation is based on a rolling window of the past X days. For example, if calculated today, it will look at the last 30 periods (including today's date) and then determine the percentile […] |
Output results to a table - Hi everyone One of my queries is running too slow so I would like to output the results of the subquery into a table and then use that table in the main query. Not sure if this will improve performance or not but it is worth a shot. I know it made a difference in […] |
Reference Query within a Query - Hi everyone This is definitely a rookie question. In Access, I can reference another query by just using its name. I tried to do the same thing in SQL Server and I got an error. Here is my query: SELECT * FROM QRY_DATES The message I got was Msg 208, Level 16, State 1, Line […] |
View Index - Hi everyone I am in the process of moving over Access queries to SQL Server. One Access query took close to 2 hours to run. Once moved over to SQL Server and using Columnstore Index, the same query took about 6 seconds. Wow! I have created a view to so I can reference it again. […] |
Show Queries - Hi everyone I am moving from Access to SQL Server so I am learning more about SQL Server. In Access I can view the objects for my project (such as tables and queries). Is there a way to show the queries I have written in SQL Server so it shows up in the Object Explorer […] |
SQL Azure - Administration |
Setting up Replication on a SQL Managed Instance - Hello, I have searched and found some articles on setting up replication in SQL MI between SQL Instances and going to on-premise but is there any article on how to setup just to replicate to a database on the same Managed Instance? I think the issue I am running into is with the setup\permission of […] |
Azure Data Factory |
Removing specific rows in an Excel file using Azure Data Factory - I have a set of excel files inside ADLS. The format looks similar to the one below: The first 4 rows would always be the document header information and the last 3 will be 2 empty rows and the end of the document indicator. The number of rows for the employee information is indefinite. I […] |
Reporting Services |
Reports upgraded to SSRS 2019 on WIN 2019 server is slower compared to SSRS 2008 - We are upgrading SSRS at QBE from SSSR 2008 on Windows 2008 R2, to SSRS 2019 on Windows 2019 for the Report Server and Catalog DB . We’ve done the upgrade and have hit a re response time issues, where we have noticed degradation. Question: why is running the same reports (and fetching the parameters) […] |
Strategies and Ideas |
Multiple sources for dimensions in Data Warehouse - I am currently working on a financial Risk data warehouse. For my collateral dimension, I am souring the data from one source system. However, after further research by the business analyst, we found a legacy application that also holds collateral information which the bank also needs in the data warehouse. Bar a few common attributes […] |
Integration Services |
Excel file changing hourly - I have some excel files that got imported to a certain folder through ftp. this files are going to that folder hourly. every time an excel file goes into this certain folder it has all the accumulations of the excel files before, so only the most recent one matters. this basically means the moment i […] |