r/SQLServer • u/tsamrat • Feb 27 '26
Question SQL Server in Macbook M4
Hello Guys,
what do you recommend, installing sql server using vs code extension or installing in windows 11 using UTM?
r/SQLServer • u/tsamrat • Feb 27 '26
Hello Guys,
what do you recommend, installing sql server using vs code extension or installing in windows 11 using UTM?
r/SQLServer • u/TwistyRoads4Ever • Feb 27 '26
Does anyone know of a tool that allows you to monitor sql server like redgate or idera, but add the functionality of an mcp server on top of it? I havent heard of anyone doing this, and i think i just did. it has all the graphs, alerts, thresholds, bells and whistles of the usual suspects. Today, I just added an MCP server to it today and started asking it questions. im kinda dumbfounded. it found issues and made actionable suggestions. im not selling anything. just wondering if anyone has done this yet. it uses AI for a number of things including parsing and optimising queries. I have a query execution data warehouse as a result. it pretty much eliminates my need to look through logs and reports to try and deciper problem areas and their solutions.
r/SQLServer • u/everydaynarcissism • Feb 26 '26
Has anyone setup Azure Arc to pay for ESU for an on-prem SQL instance successfully? Trying to prepare for SQL 2016 End of Life and was told one of ours is likely not going to make it in time due to "the vendor". I am also seeing (and heard from our rep) that you may be able to purchase and apply a 2-core license on a core based SA licensed VM even though the minimum has always been 4, but then I also see conflicting information on other Microsoft pages. I don't understand how we pay $1800/yr for 4 core Standard Edition w/ SA but ESU would be $280/mo for 2 cores, something isn't adding up. Do they just completely wipe out the EA pricing on ESUs as a punishment?
r/SQLServer • u/legendgodgod • Feb 26 '26
Hi All,
It seems to be a easy quest. I can find multiple articles online but none of them work for me.
I have a small SQL DB (about 100MB) that need to be copied to another tenant.
I have tried export to a bacpac file. Export from Azure portal is not working. In the export wizard page I input my entra ID and password. After a very long wait the export failed with not authenticated error.
Then I tried export from SSMS. It is working properly and I get a bacpac file in my local computer.
Then I tried to import using destination Azure Portal -> Sql Server -> Import (with private link). I have approved the private links. But after a long while it failed:
The ImportExport operation with Request Id 'xxxxxxxx' failed due to 'The ImportExport operation with Request Id 'xxxxxxxxxx' failed due to 'Could not import package.\nWarning SQL72012: The object [data_0] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Some blogs said it is because I do not have the same set of Sql users in destination server.
What should I do? I only need to migrate the tables and stored proc. I can recreate the users in destination server.
r/SQLServer • u/mssqldbalearn • Feb 25 '26
r/SQLServer • u/jdthechief • Feb 24 '26
So I've got this stored procedure, and I discovered an error that pre-dates my employment here, but the error DOES NOT HALT THE PROCEDURE!!!
There's a statement that reads:
SET '@Variable1 = (SELECT Field1 FROM Table1 WHERE Field1 =
(SELECT Field1 FROM Table2 WHERE Field2 = '@Variable2)
Apparently, the inner query returning more than one row throws a MSG 512 error, but because SET XACT_ABORT defaults to OFF, it doesn't stop the stored procedure, and it either returns the last row selected, or returns NULL.
That's wild.
r/SQLServer • u/drn101 • Feb 25 '26
SQL 2025 – Msg 7416 “Access to the remote server is denied because no login-mapping exists” (but mapping exists)
After upgrading from SQL 2019 to SQL 2025, I’m seeing this error when a linked server is queried:
Msg 7416 Access to the remote server is denied because no login-mapping exists.
The linked server has a default mapping configured:
EXEC sp_addlinkedsrvlogin
@rmtsrvname = N'HIST',
@useself = 'FALSE',
@locallogin = NULL,
@rmtuser = N'HISTReadOnly',
@rmtpassword = '*******';sp_helplinkedsrvlogin confirms: <ALL LOGINS (NULL)> → HISTReadOnly
No explicit per-login overrides
In one pair of servers I can replicate the error in SSMS and in another case I cannot and it works fine in SSMS The only consistant fix/workaround I've seen is granting what should be a read-only SQLLogin full sysadmin permissions. Which is not ideal.
Specifically I’ve seen 7416 appear in the following scenarios.
What’s Interesting
Has anyone noticed changes in SQL Server 2025 around:
Linked server security evaluation for SQL Logins? Provider activation behavior (especially PIOLEDB)? Differences between interactive and application execution contexts?
Not looking for generic “add mapping” advice — the mapping is present and correct. I’m more interested in whether anyone has seen 7416 crop up post-upgrade under specific provider or application-call scenarios.
My only next step from here after hours troubleshooting with GPTs is to spin up some clean lab environments to try and replicate the issue more. It's frustrating that this didn't come up during the upgrades as my validations didn't involve specific querying of linked servers using sql logins I mainly focused on the basic right click and 'Test connection'.
EDIT: For this pioledb provider I found if the SQLLogin was granted db_owner of master DB it was able to correctly resolve this linked server. But for other SQLServer to SQL Server linked servers using SQLNCLI, MSOLEDBSQL, MSOLEDBSQL19 it needs to be given sysadmin permissions.
Tried many approaches to this but fundamentally the issue remains. When using a SQLLogin there isn't a mapping to the remote login via linked server. Placing an explicit impersonate or explicit mapping for that user doesn't work either.
EDIT2: This does not seem to be a bug due to upgrading the SQL server. It's also repeatable on a server that was freshly built using SQL2025.
r/SQLServer • u/Wayfarer975 • Feb 24 '26
I had SQL Server 2017 which worked fine until a customer sent me a backup (.bak) file created in a newer version. The 2017 version would not accept it so I upgraded to 2025, and upgraded the Management Studio to version 22.0.0.
However, on connecting to SQL Server, the new SSMS shows the connection is still to 2017. How can I change the connection to the SQL Server 2025 version?
Thank you.
r/SQLServer • u/fagghujjakob • Feb 24 '26
Hello, we run a small SQL server with 13 DBs and. It is hosted in a win 11 pro virtual machine. We used to have this problem and migrated the from one VM to another, because we thought that some drivers ware broken. Firstly we moved 6 databases and server ran without a problem, but after we migrated all the databases the server started crashing sometimes multiple times a day, sometimes not for 1-3 days.
Can you help we wit this problem? I am totally lost.
we always get this exception :
2026-02-24 12:08:55.14 spid94 * BEGIN STACK DUMP:
2026-02-24 12:08:55.14 spid94 * 02/24/26 12:08:55 spid 94
2026-02-24 12:08:55.14 spid94 *
2026-02-24 12:08:55.14 spid94 *
2026-02-24 12:08:55.14 spid94 * Exception Address = 000001827BB78CB0 Module(UNKNOWN)
2026-02-24 12:08:55.14 spid94 * Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
r/SQLServer • u/bippy_b • Feb 24 '26
Hired at a company less than a year ago. Infrastructure team is 3 ppl. Data team is 3 ppl. That small. They have 4 production SQL Servers and 1 DEV. I have slowly been applying best practices guide by the SQL Assessment Powershell module. Not once has it suggested that;
” SQL isn’t running under AD account, you should change that.”
So with the changes to how services run in W2k22 and W2k25…is running as an AD user not needed any more? Is there a benefit to running it under an AD account?
Thanks.
Edit:
==
To clear things up..
AD account to run the service
r/SQLServer • u/agiamba • Feb 24 '26
Two questions for the subreddit
r/SQLServer • u/downshiftdata • Feb 23 '26
Does anyone know if you can configure Datadog to not strip comments from queries from SQL Server that show up in the Query Metrics view? My pattern with ad hoc inside stored procedures is to prepend it with a comment containing the name of the stored procedure that generated it, and this info is lost by the time I can see it in Datadog.
r/SQLServer • u/mssqldbalearn • Feb 23 '26
On the primary server I have two databases. Backup folders are:
G:\LogShipping\Database1 G:\LogShipping\Database2
I’m a bit confused about the shared path and permissions:
Should I share G:\LogShipping or each database folder separately? Should permissions be given only on the root folder or also inside DB folders? Want to make sure I’m following best practice. Appreciate guidance from fellow DBAs
r/SQLServer • u/SongFun4185 • Feb 24 '26
I’ve been trying to install sql server for days now and it’s not working 🥹
GOAL: I want to be able to import information with the import wizard but when I try to do it, it says that the net framework is failing or something.
what I have done ?
I’ve tried to install the basic version with the 64 bit driver thingy and it doesn’t work. I’ve tried to do it with the developer version custom thingy adding two specific features and it doesn’t work either. I’ve deleted everything of my computer redone it several times and every single time I still try to use the wizard is not working. It’s either gray or it says that the net framework is not working am I dumb? Am I doing something wrong? I really want to use it and I don’t know why it’s not working and ChatGPT’s been fighting with me over it and is still not working.🥹
r/SQLServer • u/balurathinam79 • Feb 22 '26
We ran into a scheduling issue recently where SQL Agent jobs were configured to run at very short intervals (about every minute) to pick up work.
As usage grew, those schedules kept firing even when no work existed. Over time that meant thousands of unnecessary executions, extra CPU usage, and occasional operational noise that became harder to manage.
We experimented with moving away from fixed polling and instead logging requests first, then triggering/enabling the SQL Agent job only when actual work was present. That reduced unnecessary runs and made job control simpler in our case.
Curious how others are handling this at scale:
Would love to hear what patterns people are using in production.
r/SQLServer • u/itsnotaboutthecell • Feb 20 '26
There were two really great articles running around within the SQL community that caught my eye (from Kendra and Courtney) that I'd be curious to hear more from members in the sub what your experience has been if you've started dabbling.
---
And while there were several really great sections in Kendra's article, some of the areas that really hit home for me.
---
"The hackathon realization that I could own all my code changes opened up possibilities I hadn’t considered before. (...) These are projects that would have been much harder to pursue when I had to coordinate with developers for every application code change."
"Database roles are changing. The days of being purely a DBA who only touches SQL Server Management Studio are fading, even for stubborn creatures like me who are most comfortable when curled up snugly inside a complex query execution plan. I don’t have any regrets about the past or not having started out doing more application development – there has been plenty to keep me busy with databases. But, at this point, the barriers are low enough that it doesn’t make sense to NOT become more of a developer."
r/SQLServer • u/erinstellato • Feb 20 '26
Friday Feedback as the Olympics draw to a close this weekend...and if you haven't seen Alysa Lui's performance in the women's free skate, I highly recommend finding a few minutes to watch it. She skates with such freedom and joy.
Could I try to draw a parallel to today's question? Probably, but it would be really awkward 😂
For those of you leveraging GitHub Copilot, what types of custom agents have you been developing, or are you looking to develop, to help with your workflow with SQL databases? I was talking about this yesterday with someone and got to ruminating on something for Query Store and how we could incorporate that in SSMS. I'm curious to see what others have been cooking up.
r/SQLServer • u/Admirable_Talk1982 • Feb 19 '26
I don't know how I managed to install sqlserver(EXPRESS) but I did it by modifying this file: ForcedPhysicalSectorSizeInBytes that at the time of installing it was with the value of * 65536 but at the time of connecting I no longer wanted to and it gives me an error (I will attach all the images) and on the Microsoft page the value they give it is *4095 but it still doesn't work for me It works, could you help me if I have to install it from scratch or what I can do to solve this problem I'm already very stressed because it never cost me that much to install SQL
r/SQLServer • u/gohanner • Feb 18 '26
Hey everyone,
I have got a question regarding two of my 2019 SQL Servers. After the last reboot due to patches, the Servers do not grab the min server memory anymore. In the past, our servers would use the configured max server memory of 85% even after restarting and now they only grab what they need. Anyone knows why that could be?
r/SQLServer • u/mssqldbalearn • Feb 18 '26
Hi everyone, I’m a beginner MS SQL DBA and trying to understand recovery models in SQL Server. Can someone explain in simple terms: What is SIMPLE recovery model What is FULL recovery model How each one affects transaction log growth When a DBA should choose SIMPLE vs FULL in real projects A basic real-time example would really help. Thanks in advance 🙏
r/SQLServer • u/macarron572 • Feb 18 '26
my laptop doesnt support 2025 edition (windows 10) and am having a lot of trouble finding where to get the 2022 developer version
r/SQLServer • u/Jaepheth • Feb 17 '26
Trying to create a new login using Windows authentication through SSMS.
The systems admin created a GMSA service account for me, but it doesn't show up when I search for it. ("Service account" is checked in object type)
What account property(s) make an account discoverable to SSMS?
UPDATE: Thanks for the advice everyone. This turned out to be a security policy issue.
r/SQLServer • u/Ok-Combination9742 • Feb 17 '26
I have a table called Products, where I store all products from purchase, sales, stock, quotation etc. The reason is I want to reuse the stored procedures (Especially for advanced filters)
The table has a column ProductIdentifier which stores keys like SALES, PURCHASE inorder to identify where the record belongs.
My question: Is it good idea to store all records in one table? what are the ways to make it more performant?
r/SQLServer • u/SmashingMustard • Feb 16 '26
Hi all,
NOT an SSIS pro, I hardly ever work in it but I created a dtsx a while back that I fire via a SQL job which imports a xlsx file gets dropped into a folder, weekly. It ran fine but now throws an error pertaining to the connection manager. So I believe 1 of 2 things happened:
I do NOT own IT here so I'm guessing:
-- Either the server install of the 64 bit ACE engine changed (likely auto update via MS) on the server (I tried running it in 32 bit mode, no go)
or
-- IT changed security on the folder
I will holler at IT and let them sort it out but am I using a terribly outdated means of data ingestion when the provider of the file has no API available and they just send us a data file?
My skills in this area are super dated, is there a better way of skinning this cat if all they can do is email a file over? We don't rely on external tools.
Thanks
EDIT: 2/21/26:
I can confirm that the old EOL ACE driver WAS the issue. The new O365 version has been installed and I just ran my xlsx files in via the SQL job that calls the SSIS dtsx in 64 bit mode. No changes necessary, so if it aint broke, don't fix it. Thanks for the input!