Questions tagged [ssms]

SQL Server Management Studio, a graphical front-end tool shipped with SQL Server for managing and querying databases. It also supports managing other bundled systems such as SSAS.

Filter by
Sorted by
Tagged with
0 votes
1 answer
424 views

How to get SSIS to stop waiting/processing at task above time limit?

So I have a couple SSIS packages that are run sequentially, scheduled through SQL Server Agent. Right now, I'm getting some errors where certain input data steps just wait indefinitely-- i.e access ...
0 votes
1 answer
24 views

History of a manual database shrink event

I performed a manual database shrink in SQL Server Management Studio, and I need to check how long it took to complete (running duration). Is there a specific log, system tables/views that I can check ...
0 votes
1 answer
28 views

MSSQL Linked server login timeout

I have SQL running on several servers and I want to create DB links between the main server "A" and several other "child" servers (each one with their own SQL instance). I've ...
0 votes
0 answers
16 views

Creating a server audit specification through SSMS: what is the correlation between Audit Action Type and other columns?

Having gone through https://learn.microsoft.com/en-us/sql/relational-databases/security/auditing/create-a-server-audit-and-server-audit-specification?view=sql-server-ver15 where it explains how to ...
1 vote
1 answer
81 views

SSMS 20 - Query Store - Configure tracked queries broken?

Tracking a query in the Query Store is stuck in SSMS 20 on Avg duration via the Configure option. It shows a red line around it, but it ignores the selected Metric and Statistic Any way to solve it? ...
12 votes
4 answers
7k views

How do I get SSMS to use the relative path of the current script with :r in sqlcmd mode like SSDT does?

If I have foo.sql and bar.sql in the same folder, foo.sql can reference bar.sql when run from SSDT in sqlcmd mode with :r ".\bar.sql". However, SSMS won't find it. Procmon shows SSMS is looking in %...
2 votes
1 answer
278 views

My SSMS is bringing wrong object in "Script Stored Procedure as" > "CREATE To" > "New Query Editor Window"

When I go to Object Explorer and expand down to Stored Procedures (or Tables), right-click on one of them and choose "Script Stored Procedure / Table as" > "CREATE To" > "New Query Editor Window", it ...
7 votes
5 answers
4k views

Microsoft SQL Server 2019 Developer Edition suddenly throwing Internal Connection Fatal Errors

I have Microsoft SQL Server 2019 Developer edition installed on my computer for local development work with .NET. Everything was working well as of two months ago, when I was last working on a ...
6 votes
5 answers
7k views

SSMS Restore Database wizard slow to respond

I've just noticed this recently on one of the SQL Server 2012 SP3 instances that I oversee. When I try to restore a database using SSMS 2012 (by right-clicking on the database,and choosing Tasks>...
4 votes
3 answers
15k views

Management Studio all buttons disabled

I get an odd problem in my SQL R2. Although I can attach a new db to my db instance, but all buttons on the tool menu panel are disabled. So I cannot execute any sql query statements. It is really ...
2 votes
1 answer
702 views

Installing SSIS package outside of SSIDB catalog

I'm trying to simplify deployment of a SSIS package to a remote server. At the moment, I have Local Visual Studio SSDT and SSIS package that has 4 connection managers - DEV environment Remote server ...
0 votes
1 answer
2k views

SSIS 2012 Project Connection Manager does not expose ServerName property for configuration in SSMS 2012

We have deployed one SSIS 2012 project with two ADO.Net Project Connection Managers. (There are five packages within the project.) The project has a related Environment, with a variable containing a ...
0 votes
1 answer
2k views

Changing the connection string in SQL Server

We deployed the packages from an old server to a new server. How to change the connection string i.e initial catalog or server name parameter from Agent job -> Configuration -> Connection ...
1 vote
1 answer
16k views

Log-in as service account in SQL Server Management Studio

The stored procedure that performs a CTE in production is being executed using a service account. However, the stored procedure returns empty and I tried checking this using SSMS but I my domain ...
0 votes
1 answer
6k views

SSMS error : The certificate chain was issued by an authority that is not trusted

Im getting the below error while logging into the database.By default only "Encrpt connection" is checked . In this case should I need to uncheck "Encrypt connection" and "...
12 votes
3 answers
7k views

Is it possible to filter the list of databases in the Object Explorer of the SSMS?

I know how to filter the list of tables - using the filter icon. However, this icon is disabled when the Databases node is selected. Still, I am wondering whether it is possible.
0 votes
0 answers
31 views

SSMS How to set alternate row colors in Grid Results - Same as Oracle SQL Developer

How can I set alternating row colors in SSMS? The ONLY answer close to what I'm looking for is here however is not for SSMS: Make Oracle SQL Developer act like PL/SQL Developer However, the answer is ...
4 votes
4 answers
14k views

SQL Server Management Studio (SSMS) is way too slow in its GUI

I know this question has been asked before here and here. But none of them could solve my problem. I have this environment: Windows 10, build 1903 (freshly installed) Microsoft SQL Server 2016 (SP2) (...
0 votes
1 answer
389 views

"Fatal scripting error" when parsing SQLCMD query

Similar issue seen here. I am trying to run the following command from SSMS running in SQLCMD mode. :r C:\dev\test scripts\sample.sql But I get the following error: A fatal scripting error occurred. ...
0 votes
1 answer
42 views

Why is Ignore Duplicate Keys not allowed on a Unique Key?

If I understand this answer correctly the difference between an Index with Is Unqiue on and a Unique Key is mainly cosmetic. In the MSSQL interface when I switch to a Unique Key the Ignore Duplicate ...
2 votes
1 answer
125 views

SSMS User Mapping Slow to Load, or Not Responding

I have been experiencing an issue in SSMS versions 14, 18, and 19, where loading the User Mapping of any given Login takes an age to load, sometimes up to an hour, or just never loads at all and hits ...
1 vote
1 answer
629 views

Run MSSQL stored procedures containing SSIS packages using Windows Authentication from another computer

I am new to MSSQL. I have a question about executing MSSQL Stored Procedure. Let me briefly talk about my development environment first: PC400 (Computer/Server A), where SQL Server 2012 is installed ...
-1 votes
0 answers
58 views

How to convert a function into a Stored Procedure in Microsoft SQL?

I have this function that takes a decimal parameter and returns a varchar CREATE FUNCTION dbo.NumberToWords(@Number DECIMAL(18, 2)) RETURNS NVARCHAR(MAX) AS BEGIN DECLARE @Words NVARCHAR(MAX) SELECT ...
0 votes
1 answer
1k views

Unable to connect to Listener after rebuild

I dropped an AG with DROP AVAILABILITY GROUP [MyDb] it had a listener. I left the listener open in the object Explorer of SSMS 17.3. While the AG and Listener were down. I hit refresh on the ...
-2 votes
2 answers
60 views

Replace "INSERT" by "UPDATE"

I'm working with some tables in an SQL-Server database, and I'm doing some crucial modifications. In order not to loose everything when I mess up, I decided to do a "Generate script" (data ...
2 votes
1 answer
3k views

SSMS Not showing Status and Scheduled Jobs Not Running

Recently in SSMS, I have started getting a blue question mark next to the database and SQL Server Agent, when previously all was showing running. At the same time my scheduled jobs have stopped ...
-4 votes
2 answers
129 views

How does SSMS grab the name of my server?

In the bottom-right hand side of SSMS's main screen and to the left of where it shows my user-name and the name of the database that I'm in, it gives the name of the server that I'm on. This string is ...
0 votes
1 answer
501 views

Unable to create linked server to Power BI XMLA endpoint in SSMS

Unable to create linked server to Power BI XMLA endpoint in SSMS and getting below error: The test connection to the linked server failed. Additional information: An exception occurred while ...
2 votes
3 answers
4k views

Wrap identifiers automatically with brackets in SSMS text editor

Working in SQL Server Management Studio, when using the text editor: Is there any way to automatically wrap schema names, table names, column names and other identifiers with brackets so I don't have ...
2 votes
2 answers
5k views

SSMS 2012 / 2014 / 2016 Object Explorer hangs when Expanding Databases list on a server with many DBs

When accessing SQL Server with SSMS versions (2012/2014 and 2016), opening the databases list from the object explorer is really slow. If I try it using SSMS 2008 R2 on the same instance the result is ...
1 vote
0 answers
42 views

Modified_extent_page_count shows 0 extents modified on a 1.7TB database, but running a differential takes takes 4-5 hours and generates a 50GB file

As per the title - modified_extent_page_count shows 0 extents modified on a 1.7TB database, but running a differential takes takes 4-5 hours and generates a 50GB file. I wondered if anyone has come ...
0 votes
0 answers
735 views

SSMS Find matching parenthesis Highlighting Feature aka Brace Matching Half Broken - How to Fix

SSMS version 19.1 This feature also takes on the name of Automatic Matching of Syntax Pairs. Refer to this link. This feature for me however is failing to function as expected. I used to be able to ...
1 vote
1 answer
569 views

Why does Bitlocker intermittently require SQL service restart after sleep?

I have a development machine that has two drives: C:\ - Operating system (Win 10 Ent) and SQL Server 2012 Standard installation D:\ - SQL Server databases, backups, logs I recently activated ...
0 votes
1 answer
869 views

SSMS Query store keeps getting disabled

I activated query store about a month ago with the settings below. Now, every morning starting up SSMS I find the Query store folder gone and query store disabled. Initially I used 1 Gb size, but ...
0 votes
1 answer
931 views

Restrict access on specific database from windows users

Is there a easy way to deny all access from Management Studio to a specific db except from sa and 1 another SQL user that will be used to access db from a remote app ? i'd like that users connecting ...
0 votes
1 answer
2k views

SSMS18 - Default File Location (Changed ssms.Application.pkgdef)

I have changed the DefaultProjectsLocation (SSMS18) from the default (My Documents) to a folder on my network. But when I run SSMS18 and open Projects it is still looking at the default location. What ...
0 votes
1 answer
93 views

Unique Index on NULLable field isn't creating a Unique Constraint so I can make it a FK on another table?

I'm in MS SQL 2016. I'm a bit confused. I have a field that I have put a unique index on. The DocID is not a primary key, but it will be unique (and is NULLable): CREATE UNIQUE INDEX [...
2 votes
2 answers
13k views

"Untrusted Domain" error when connecting to SQL Server localhost and specifying port

I have two SQL Server 2016 instances running on localhost, and I can connect to both with no issues (localhost and localhost\test) using windows authentication. However, if I specify the port ...
2 votes
2 answers
3k views

Why Sql Server management studio use English regional settings instead my local Windows settings?

Scenario: I have a Sql Server instance on English Windows Server. But I also have my own ITALIAN client with Sql Server Management Studio and SSMS regional settings set to Italian. So when I extract ...
1 vote
1 answer
1k views

SSMS 2016 error "The client and server cannot communicate, because they do not possess a common algorithm"

I am trying to connect a database from SSMS 2016 it gets connected from one machine but other machine with exactly same version SSMS 2016 gives below mentioned issue. Note: on server only TLS > 1.2 ...
0 votes
1 answer
125 views

How can I access table with Always Encrypted in SQL Server Authentication?

Working on Azure SQL Server I approached Key Vault with Azure AD and generated a column master key and column encryption key to apply Always Encrypted to a specific table Therefore, if login the ...
user avatar
0 votes
1 answer
304 views

Cannot find sqlserver service

I installed Sql Server 2019 in Windows PC. In Sql Server Configuration Manager into SQL Server Service I stopped all the instances. But still I can loggin to Sql Server via SSMS.why is that? Where is ...
6 votes
2 answers
2k views

When is the Query "Done"?

Scenario I run a long, complex query that returns 30+ fields and 77,000+ rows in SSMS. The results are to grid. The results are all text-heavy. The SSMS grid starts populating with results after a few ...
1 vote
1 answer
631 views

Kerberos Issue - Anonymous Login

I have a linked server that connects one SQL Server to another SQL Server. For two weeks now there has been an error when testing the connection; Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. ...
4 votes
1 answer
5k views

Which permissions are required to view Windows Event Logs in SSMS?

I'm trying to figure out which permissions are required to be able to view the Windows Event Logs via SSMS. The SSMS Log File Viewer, where you typically view the SQL Server Errorlog, also has the ...
1 vote
1 answer
5k views

Unable connect to SQL Server on SSMS and Got error 10054

I have an issue with connecting to a server on SSMS SQL Server. I got this error 10054 when i tried to connect : SQL Server error 10054 =================================== Cannot connect to <IP>...
1 vote
1 answer
1k views

No connection possible after TrustServerCertificate=True => The certificate chain was issued by an authority that is not trusted

I have a machine which could connect to an MS SQL Server in the past. I have SSMS installed and the connection was possible when I activated TrustServerCertificate checkbox in SSMS. I could connect ...
8 votes
1 answer
7k views

Does SSMS use ODBC?

I am running SSMS V18.2 and connecting to SQL 2008 - 2019 instances. I am researching various multiple subnet connection scenarios. I learned that ODBC 13.1+ includes ...
0 votes
2 answers
113 views

Open Management Studio with configured connections

Maybe this question is a little off topic, I will close if necessary, but, is there a way to configure Management studio, to when I open it, it starts already with x connections? So I don't need to ...
1 vote
4 answers
7k views

How can I get SQL Server Management Studio 2012 to connect to multiple servers automatically on open?

When I open SQL Server Management Studio, it only connects to a single Database Server, but I would like it to automatically connect to multiple Database Servers. How can I accomplish this?

1
2 3 4 5
26