Databasemail.exe not working on Windows 2012, Running SQL2017
Hi, I have an SQL2017 server installed in my machine and I have admin access to it. I've configured databasemail in my instance. Ensured: > Remote login is enabled in the database > .NET 3.5 is installed on the server > We are able to send…
Developer technologies | Transact-SQL
SQL Server | Other
SQL Server licensing- how many licenses do I need????
Hello! I am working on a project that requires a new SQL Server with Enterprise Edition. We are looking to set up a new AWS dedicated host (r5d.16xlarge), which is listed as 64vCPU (which is 32 vCPU with HT). We have determined that we only need the…
SQL Server | Other

Can we enable tls 1.0 on MSSQL Server 2019 on database level? if yes then how?
Hi , i am running sql server 2019 on Linux box and trying to connect using a Windows server 2016 client, how can we enable TLS 1.0 for SQL Server 2019 on the Database/instance level. TIA.
Developer technologies | Transact-SQL
SQL Server | Other

Data Deletion by Chunks using T-SQL SP
I am learning T-SQL Programming and I trying to purge 2000000 records by chunks of 20000. Below is the code I tried and I need some help to stop loop after deleting 300000 records. I am not sure where I am wrong. I want to even log this output to a…
Developer technologies | Transact-SQL
SQL Server | Other
Why do Sql Server Jobs Hang?
Hi all, I have done a search on the reasons why the sql jobs are in executing mode but never completes. What could be the reason. Is there a way to find out the reason from sql server Agent. Few of the jobs in our system always hangs after…
Developer technologies | Transact-SQL
SQL Server | Other
Sql Jobs Stuck
Hi All, I have written a script to stop a Sql Server Job when it is stuck for x hours/min. Most of the live jobs gets stuck after business hours. So I am planning to create a test job and make it stuck so that I can test my script. What is the best…
Developer technologies | Transact-SQL
SQL Server | Other
How To display differenet feature values on one row separated stick if it multiple difference ?
I work on SQL server 2012 I face issue : I can't get all different value Feature one one row result separated by sticky if it multiple difference if one different then no need stick. where c have value and x have value but both not equal each…
Developer technologies | Transact-SQL
SQL Server | Other
While loop is too slow in sql to get last 3 weeks data.
Getting last 3 weeks data by using while loop but its too slow. Declare @beginDate int = 0; Declare @pendDate int = 1; Create Table #NOC(WeekDates date,PeopleID int,DatefBirth date,Age int,Operator varchar(8),Location varchar(250),SA1 bigint,NOC…
Developer technologies | Transact-SQL
SQL Server | Other
Database migration from MySQL to MSSQL for Sonarqube v6.7.7 using MYSQL Migrator tool
Hello Everyone, I am upgrading SonarQube 5.6.3 to 6.7.7. Sonarqube 6.7.7 supports MySQL database but want to migrate the data from MySQL to MS SQL and will use MS - SQL . i am using MYSQL Migartor tool to migrate the data. Sonarqube is running on…
SQL Server | Other
SSRS Report Viewer(website) is not scrolling in ipad
Hi, I have an application which uses the ssrs embedded into the application using the <object> html tag. When we open the ssrs report url in the ipad directly scroll appears as expected but in the application the reports sectrion is not getting…
SQL Server Reporting Services

SQL Server SYSADMIN account and DBO Role
Hello, My understanding is that when a SQL DB is created the SYSADMIN role is assigned the DBO role. My question is, if SYSADMIN has DBO formally removed and is assigned another role later, like db_datareader, does it still retain DBO level permissions…
SQL Server | Other
Create a login which can create new logis & roles and can grant access to user on any database on that instance
Hi All, I want to create a login which can create new logins & roles and can grant/revoke access to user on any database on that instance without providing "sysadmin" access. I have tried to provide user with "securityadmin"…
SQL Server | Other

Multicast to two different Flat File Destinations results in Error
So I have a need to output the results of a SQL Server Stored Procedure to two different Flat File Destinations and we are using a Multicast in order to try and do so. When we run the SSIS Package, we get... "The process cannot access the file…
SQL Server Integration Services
SQLServer SQLGeometry GeomFromGml not loading valid GML due to gml:ring interpreted as gml:LinearRing
Dear all, I am working on a project in which i parse large amounts of GML data into Geometries in an SQL2019 Database. I use the GeomFromGml function for this. I have the following XML : <gml:Polygon…
Developer technologies | Transact-SQL
SQL Server | Other
Retrieve multiple status into one row based on multiple conditions SQL 2008
I need to retrieve multiple statuses into one row based on the closest status before + previous day if the day of the week in(Tuesday, Wednesday, Thursday, Friday, and Saturday), if the query runs on Monday it should include the closest status before +…
Developer technologies | Transact-SQL
SQL Server | Other
Can't open SQL Server Management Studio 18 - "MRU Package did not load correctly" and "Cannot create the window"
This issue is driving me crazy. I can't open SQL Server Management Studio (SSMS) 18. When I try to open it I get the follow things: Starts fine with the small window that says "Microsoft SQL Server Management Studio v18.6"... But then I…
Azure SQL Database
SQL Server | Other
Floating IP with SQL Always On
Hi, me setting up an environment where I have: I was reading that I can create virtual machines on azure and use them for SQL Always On in conjunction with load balancer. Doubts arose: When I create a LISTENER in SQL Always On, every…
SQL Server | Other


SQL Server 2017 -- How to properly resize TEMPDB after it has AUTOGROWN
HI All, I would like some advice on how to properly resize TEMPDB after a run-away query caused tempdb to autogrow. Fortunately we caught it before we ran out of diskspace, but not before we came dangerously close to running out. Our setup: We…
Developer technologies | Transact-SQL
SQL Server | Other
Always-on Dashboard: last_commited_time
May I know on Always-on Dashboard: last_commited_time, is it always the same between primary , sync/async replica ? given that sync replica is synced state and async is syncing state.
SQL Server | Other

How to convert this query to 52 weeks rolling based data.
I have CTE which is quite manual so everytime I have to change week number and days thing in this query. With CTE_Deprivation_Live20 As ( Select m.PeopleID ,DateDiff(yy,P.DateOfBirth,GetDate()) as Age, m.LocationName,m.ActiveStart,m.ActiveEnd, …