r/SQL • u/Valuable-Ant3465 • Apr 30 '26
SQL Server Host other services on SQL Server box
Hi all,
I started doing a lot of Python for our DBA group and they want me to install Exe on exactly SQLServerBox where main sql instance is running, motivating that it's good for performance as my script do some calls to this box db.
Do you think it's good idea ? Or it's all depends on SQLServerBox power (number of CPU/RAM/etc..). This is typical W environment on network with multiple SQLServer Boxes (BI, QA, SSIS..) for db and other boxes.
They use separate BITempBox for handling any files for temp storage and processing, so I was thinking to run my python.exe out from this box as python also does frequent calls for files.
Appreciate you comments. Thanks
VA
9
u/dbxp Apr 30 '26
No, stick the python script on the BI box. It's bad security practice to have more running on a DB server than you need and it makes inefficient use of expensive licenses
6
u/ComicOzzy sqlHippo Apr 30 '26
If you have almost no traffic on the database, it doesn't really matter what you do.
But you're probably paying a lot of money for the licensing of that database and quite possibly it's on decent hardware... and adding competing services/processes is a foolish waste of precious resources when a much cheaper machine could be hosting them.
6
u/wildjackalope Apr 30 '26
If your script's bottleneck is resolved by it living on the same box, I'd suggest you have other issues with your script. That said, is it a bad idea? We don't know dude. We don't know your data, your server or your script.
Personally, I wouldn't run it on the same machine but it sounds like you may not have a lot of other options.
3
u/Far_Swordfish5729 Apr 30 '26
If this is a random dev server with little utilization, whatever. My laptop always ran my local sql instance right alongside my test web server and dev tools. If this is a real environment, you don’t do this. Sql server licenses cpu and you want all of those expensive licensed cores running sql server. Anything app layer runs on another box. That goes for SSRS and SSIS components too. Any random app runs on cheap app server capacity. There is a latency hit for crossing a lan, but in human terms it’s fine. All production applications do it and respond without issue.
Separately, security people are very protective of DB servers because a compromised DB allows direct access to all its data. It also allows a powerful server to execute a ton of malware. DB servers are typically very locked down and isolated from app components, which have a lot more freedom in what they communicate with. Anything public facing in particular will be on a separate DMZ subnet from its DB backend with specific routes monitored by a firewall. It’s just good security hygiene not to let ad-hoc scripts run on production DB servers at all to prevent a compromised account from doing it.
3
u/jshine13371 Apr 30 '26
This is wrong.
3
u/SQLDave Apr 30 '26
That's a hard no at our company... even on DEV boxes.
1
u/individjournalist Apr 30 '26
If you go that route, how are you planning to isolate resource usage so Python jobs don’t compete with SQL Server under load?