Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Disk Reads and Writes - This could be causing (at least one element) my afternoon "slowness" reported by some apps. I am aware there are many things to check, but does this write percentage in Performance Monitor seem high for SQL? Any other type of server, I would say a firm "yes", but SQL is very intensive with writing to […] |
Update all the sequence number of "Restart sequence" with the Current Value - Hi all, how can I update all the numbers of the sequences under Programmability/Sequences to be aligned in this order: all the value Current Number for example 4001 will substitute the 4000 number of Restart sequence, this for all the sequences. Thanks in advance. |
slow query on a partitioned table - I have a huge table with 3B of rows containing around 6 months of data running on Microsoft SQL server 2017 (RTM), which is partitioned day by day on a date column (each day on a separate filegroup and each filegroup has 1 data file). this table has an identity field which is bigint. I […] |
SQL Server 2017 - Development |
Configuring Connection Managers For different DBs in different jobs - My team has just learned that using one db for all clients will not work and all clients need their own database. We have several packages deployed in one project and the project is configured using a reference to one enviroment. Id like to create copies of the DB for each client and use the […] |
SQL View Question - Hi everyone, I've a little problem with a SQL View that there's no way to resolve (from my side). I've three tables: Manage - Details - Payments (there's a GUID to link manage with other two) I would create a view to see in each row some information about each table. The point is that […] |
SQL Server 2016 - Development and T-SQL |
Recursive CTE issue when there is a chain of blocking SPIDs - Scenario: When one SPID is blocking the second, and the second is blocking the third ... and then the 33rd is blocking the first one, thus forming circular blocking chain. QUESTION 1: is such situation POSSIBLE? Some experts say no, and each circular blocking gets quickly resolved by a Deadlock/victim process. I believe it is […] |
How to add to a date column excluding weekends and holidays for SLA calculation - Hi Friends, I struggling to create a datetime column with certain conditions. My data looks like below CreatedDateTime, Priority, TargetDate I already have a calendar table which will say if its a business day or not as 1 or 0. I want to calculate the TargetDate with conditions as follows. If Priority is 1 Then […] |
Development - SQL Server 2014 |
Query - Hi I have below Data & want to display in below format Name <45 45 To 60 60 To 90 90 To 120 > 120 Black Paint 540 Blue Paint 360 50 USE [Test] GO /****** Object: Table [dbo].[Batch] Script Date: 27/07/2020 3:00:37 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE […] |
SQL Server 2012 - T-SQL |
Full Backup Physical_device_name Guid using Native SQL Backup - I am having issues with creating a backup (manually, via script, via Agent). The backup file is fine. It shows up on the X: drive. I can restore from it. But, when I try to run a differential -- i get an error. After much research I have found that the physical-device_name is a guid […] |
SQL Server 2019 - Administration |
Provisioning SQL Server 2019 - I'm provisioning a SQL Server 2019 build and have been allocated a virtual server running Windows Server 2016. It has 4 virtual processors and I have 410Gb of drive space to work with. My build has to run two versions of the same 35Gb database. My intention is to split the 410Gb drive on the […] |
SQL Server 2019 - Development |
how to get total row count fastest? - hello all I wrote this query and my goal is 0 sec for query Result. Declare @PrncplCompanyId int = 1, @FinancialPeriods nvarchar(1000) = '19', @Stores nvarchar(max)= '0', @searchQry nvarchar(1000)='', @skip int = 1, @take int = 10, @fromWh bit =0, @withParameter bit = 0, @isWarehouse bit = 0, @userid int = 266, @additionalFieldsInSerarch nvarchar(max) = […] |
Reporting Services |
searching topics - Hi guys Sorry, it might be that I use a phone but is there a searching facility to find a certain topic? kind regards |
viewing reports - Hi guys Can one preview a report without it having to open up an URL? Kind regards |
General |
Transfer data (views) between databases in offline scenario - I have this seemingly really simple problem, but I can't find a decent solution anywhere, been searching for days now... Please bear in mind I'm not a full-fledged DBA. I could solve it completely in .Net code, but I had hoped there would be a relatively easy solution in Sql directly... Here goes: I need […] |
SSDT |
Expression help - Hi, I am using this expression in precedence constrain. If it is true, then go to the next step. SUBSTRING(@FileName,"MyNetworkFolder\\xyz*.xls",1) > 0 ? "True" : "False" For some reason, the expression didn't like *. What I am trying to do here is. If the variable @FilaName has file name start with Xyz and extension only […] |