r/SQLServer • • Sep 06 '25

Question Azure data factory behaving differently for different sql server

2 Upvotes

So we use azure data factory to fetch the data from Salesforce and dump into our database . We have two database one azure managed sql server and on sql server locally installed on a vm .

So when we dump the data in azure managed sql server the decimals are getting truncated and in vm local db they are getting rounded off

The table and column structure is same on both side

Decimal (18,2 )

For example if values is 124.566 in Salesforce it is coming as

In azure managed sql server- 124.56 And in vm sql server - 124.57

Does anyone know what is causing this inconsistent behavior

Ps : The pipeline of adf is same in both case I cloned the original pipeline and just changed the dumping db that's it


r/SQLServer • • Sep 04 '25

Question In memory heap tables - Is it possible

2 Upvotes

I have a database that is used to import data, compare it to data/ update data in a different database and then the data is deleted. This happens hundreds of times per day. For various reasons, I want to us in-memory tables for the tables used for the import. These tables do not need indexes or primary keys. Can I create in-memory heap tables? I hate to add constraints to these tables, as it could slow down the import process. I'm using MSSQL 2019, but I am porting it to MSSQL 2022 shortly.


r/SQLServer • • Sep 03 '25

Question Sql server utilization increased from 40 % to 60%

6 Upvotes

Hi we have sql server where cpu use to range between 30-40% .But for last 2 days it has been in range 60% and higher .We have checked and its mostly sql server .How to check query which is causing higher cpu utilization. I see many query running there is no pattern to it

I have checked below link https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/performance/troubleshoot-high-cpu-usage-issues

should i run current one or should i execute query which gave historical ones

Also i have doubt , in query which outputs current one does ordering by cpu time desc gives right query ?

Also we have process tracking which trakes and dumps long running query in tables. IN those i am seeing various query with last waittype sos_scheduler_yield , pageIolatchIO_** and some times those related to locks....

So in high cpu case should i target those query which has lastwaitype as sos_scheduler_yield or should I also target pageIolatchIO_** ....

is sos_scheduler_yelid purley related to CPU while pageIOlatch isn`t ? wont query with pageIOLatch wont increase CPU usage ?


r/SQLServer • • Sep 03 '25

Discussion SSMS 21 extreme slowness

7 Upvotes

I currently have 21.4.8 installed, but not matter what version I use or used, SSMS 21 is very, very slow, to the point that it is a severe hindrance on performance, and I mean mine, as a dev.

What is the deal with this version of SSMS? Why is it so stupidly slow? And how can one improve on it?

I am seriously considering uninstalling and reverting to a previous version.

Thanks for your help.