I have Sql Server Management Studio 2008 installed on a dedicated server with total System RAM of 16 GB allocated to SSMS. Whereas i have another SSMS installed on a shared Windows server with 32 GB RAM allocated to SSMS out of 128 GB total server RAM.
Is there an issue when we use SSMS to run heavy queries on a shared Windows server as compared to running the same queries of SSMS on a dedicated Windows server.
By dedicated i mean the Windows Server has only SSMS running and some very small applications.Here only SSMS is using whole of Server RAM.
By shared i mean the Windows Server has many heavy applications like Spotfire, Hadoop, Linux along with SSMS. All the other applications are concurrently running of shared Windows server.
Actually, when i run a query on dedicated server it takes 70 mins to execute whereas the same query takes ~300 mins in a shared server where other users are also using the server at the same time.
Please suggest me with solutions to resolve this.
Thanks!
Related
I have Cloud SQL instance(16 vCPUs, Memory 128 GB, SSD storage 300 GB). Db size 110GB.
When I execute a complex query from the cloud windows VM using SQL Server Management Studio(this vm is in the same VPC as SQL Server), it always takes on average 35s.
When I execute the same query locally (connected to the same SQL server instance with sql proxy) from a mac machine(8 cores, 16 gb RAM) using DBeaver it takes 1.5s on average.
I can't figure out why such a difference. I even tried connecting from vm to SQL server with sql proxy, but still no change.
Please help to understand why.
Looks like the Server Management Studio is asking for some tables / permissions on the server and times out.
Cloud SQL is a managed database and you simply cannot do all administration tasks a normal MSSQL database would allow you yo do.
When you use DBeaver does not try to manage the server: it just sends the query and retrieves the results. If you run DBeaver from your Windows VM, or a VM in the same VPC you'll get that 1.5s/query.
We have around 20 Different physical servers in which SQL Server has been installed and configured( various versions MS SQL servers)
Need to monitor the complete SQL servers using one tool Which includes Database Performance, wait time, expensive queries currently executing, Log size utilization, disk space utilization ,Monitor CPU, memory and disk space utilization of the SQL Servers,Get complete details about SQL Server sessions, buffer, memory, locks and latches
If there is any Microsoft product available then preferred or possible other tools.
Please suggest
Looks like a lot of requirements. FYI, there is no Microsoft tool to manage On-Premise MS SQL Server instances. But, you can create your own utility using SQL scripts or SSIS packages.
The SQL Server is running on a well o:) configured server. The server configuration is given below.
OS - Windows Server 2012 R2
RAM - DDR3 24 GB ECC
RAID 10
The NAV SERVER is also installed on the same server. Almost 112 concurrent end-users are accessing the NAVISION database through different clients system.
I have noticed that at a particular time (5PM/6PM) the SQL as well as the NAV SERVER are consuming the whole (20GB+) RAM of the server everybody & makes the server unstable.
How can I solve this issue? Thanks in advance!
If it's always happening in a particular time you should have to figure what is hammering it.
SQL job? Something in NAV? Windows Task? Antivirus? Some user is running something which affecting it (copying thousands of files to network share for example)?
But yes - adding more RAM is always good.
Lately i was experiencing heavy RAM consumption on server and after finding out which app is using the most it showed sqlservr.exe is taking 890,016KB.
I want to know why does SQL take up so much of my server's RAM. My SQL performs simple functions on tables, store procedures and function and no jobs are assigned on the background.
I even tried restarting the server and after the restart when the SQL service started it took 90MB and after 8-9 users connected it the usage went back to 800-900MB.
Server : Windows Server 2008R2 Standard
SQL : SQL Server 2008 R2
Open SSMS, connect to your local instance an right-click on your instance name->properties->memory and check Minimum and Maximum server memory.
By default it will take a huge amount of memory, reduce your max memory if needed.
I am planning to get SQL Server web edition licence from my server provider
https://msdn.microsoft.com/en-us/library/cc645993(v=sql.130).aspx
SQL web edition has 64 gb ram and 16 core limitation
I will run 3 websites on this server and server has 24 cores and 128 gb ram currently
So it is logical for me if I run 2 instances SQL Server and I can utilize all system resources?
However I have never used two instances of SQL Server before.
So how can I install multiple instances of SQL Server 2016 web edition and use them?
This is my static connection string currently
public static string srConnectionString = "server=localhost;database=myDB;uid=sa;pwd=myPW;";
I'd suggest to go with Standard edition. It might be more expensive (about $45K), but you can use all of your 24 cores and 128 gb ram by just one instance.
You do not have to have multi instances, just have everything in different databases. If you are concerned about security, then you can make databases invisible for another user.
In case you want an ability to restart services separately, then it is better to have 2-3 virtual boxes, but in this case you'd have to pay individually for each box.