Quantcast
Channel: SQL Server Database Engine forum
Browsing all 12963 articles
Browse latest View live

INT math is slow in SQL server, but only under VMware - really weird!

HiI had noticed a really strangle thing. INT calculation is 2-3-5 times slower in SQL server running in VMware than on physical machines. From VMware side, I had eliminated all possible things:...

View Article


service acct ends up looking like nt authority\anonymous logon when it...

Hi we run 2017 std. I didn't know whether to post this in the ssis forum or here. The bottom line is that my test service acct has permissions to read on my sql server after we added it to the...

View Article


SQLServer 2019 Polybase - External access operation failed because the...

All,I tried to create an External Data Source against another SQLServer (2016) from a SQLServer 2019 server but I get the below error:<<External access operation failed because the location URI...

View Article

checkdb killed/rollback - stuck for 3 days

I have a scenarios whereby a checkdb on an 800GB database was cancelled and 3 days later, there is sessions stuck in "killed/rollback" state.I ran select blocking_session_id, wait_time,wait_type,...

View Article

How to calculate the max number of worker threads in SQL Server?

I use 64-bit OS with two CPUs (each of them makes 7 logical processors) and with total number of logical processors equal to 14. When I run this code I get 2048SELECT max_workers_count FROM...

View Article


Temp tables

Why does tempdb has too many old temp tables? Also they cannot be dropped.

View Article

SQL always on Availability Group issue (Secondary Replica)

Hello,       I have configured a SQL always on 2 Node cluster. I have a database which is functioning properly when its on Primary replica, but when the AG is on secondary replica it's stop working....

View Article

Help understanding the below deadlock scenario caused by stored procedure

Hi All, I am trying to understand the below deadlock scenario: When I checked the logs, there were 2 transactions MERGE & UPDATE coming from SPIDs - 586 & 526 But I see different process IDs...

View Article


Why does cascade delete results in full scan for out-of-bounds histogram keys

On SQL Server 2017 I have a cascading delete that always seeks the value from the secondary table unless the key value from the primary table is out of bounds of the histogram.  I thought in these...

View Article


Image may be NSFW.
Clik here to view.

Do you want to be acknowledged as SQL Server Database Engine Guru? Submit...

What is TechNet Guru Competition? Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Polybase External Table and Cosmos DB issue

I am trying to access CosmosDB document from SQL Server using PolyBase functionality with no success. Is anyone came across the issue.--Successfully created the data source -- CREATE EXTERNAL DATA...

View Article

Add database to availability group: Password required

Hello,Password required when adding database to availability group, take.ms/QC9FAThis database is encrypted by database master key, you need to provide valid password when adding it to the availability...

View Article

How to log linked server usage

Hi Everybody,How can we track linked server usage?  We have users' adhoc queries, SSRS reports, SSIS queries, and stored procedures that use linked servers and we'd like to audit that activity to...

View Article


Query to calculate SQL Server Uptime Percentage

HelloI am trying to find out if there is a way to calculate the percentage of uptime for a given SQL Instance. I understand that there are queries to find out when SQL Server was started and for how...

View Article

Debug option is not there in SQL Management studio

Hi,we have installed sql server 2016 standard edition. developers want to debug the stored procedure. In the management studio we didn't see 'Debug' option at all. I tried add remove button but nothing...

View Article


A network-related or instance-specific error occurred while establishing a...

Hi to all I have a SQL server 2012 and I got this error when I tried  to open Ms SQL configuration manager: Error: An error occurred: "Microsoft.Rtc.Common.Data.SqlConnectionException" "A...

View Article

SQL 2016 Ent migrate to SQL 2019 Ent

Hiwe have serverA (windows 2019 , sql 2016 ent) as publication , server B (windows 2019 , sql 2016 ent ) subscriber 1,  server c (windows 2016 , sql 2016 std) subscriber 2, now we are going to migrate...

View Article


is there a way to automatically roll identity columns?

Hi we run 2017 std. sometimes I want a pk to be an identity column and with frequent truncates would prefer automatically rolling the column (say back to 1) when the max value is hit. Rather than...

View Article

Non-yielding scheduler errors and connection timeouts daily

SQL 2008 Standard edition, roughly 250 databases on the server (though this problem has occurred with all but one offline)A client's SQL server is logging Non-yielding Scheduler errors and generating a...

View Article

Event ID 4625 is logged on Windows Security logs for every 30 minute but...

I'm using SQL Server 2008 R2.  Event ID 4625 is logged on Windows Security logs for every 30 minute but nothing is logged on SQL Server logs.This is from the General tab of Windows Security logs:An...

View Article
Browsing all 12963 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>