Оглавление
- Установка с Azure Data Studio
- Установка средств управления MS SQL
- SQL Server Management Studio System Requirements
- Requirements
- Background
- SQL Server Data Tools
- Поддерживаемые операционные системы
- Query Editor on Microsoft SQL Server Management Studio
- Возможности программы
- Workaround #1
- Виды СУБД
- Подключение к серверу
- Introducing http://downloadsqlserverexpress.com (this short link goes directly to this post)
- Background
- Conclusion
- Related Articles
- Popular Articles
- Uninstall
Установка с Azure Data Studio
- Начиная с SSMS 18.7, вместе с SSMS устанавливается системная версия Azure Data Studio по умолчанию. Если на рабочей станции уже установлена аналогичная или более поздняя системная версия Azure Data Studio (стабильная или для предварительной оценки), то при сравнении с включенной в состав SSMS версией Azure Data Studio установка Azure Data Studio в рамках SSMS пропускается. Сведения о версии Azure Data Studio можно найти в заметках о выпуске.
- Установщику системной версии Azure Data Studio требуются те же права безопасности, что и установщику SSMS.
- Установка Azure Data Studio выполняется с параметрами установки Azure Data Studio по умолчанию. Это необходимо для создания папки меню «Пуск» и добавления Azure Data Studio в путь к ней. Ярлык на рабочем столе не создается. Azure Data Studio не регистрируется как редактор по умолчанию для каких-либо типов файлов.
- Локализация Azure Data Studio осуществляется с помощью расширений языкового пакета. Чтобы локализовать Azure Data Studio, скачайте соответствующий языковой пакет из marketplace-магазина расширений.
- Сейчас установку Azure Data Studio можно пропустить, запустив установщик SSMS с флагом командной строки .
Установка средств управления MS SQL
sqlcmd client
Инструмент для подключения к СУБД, по умолчанию, не устанавливается с сервером. Также для его установки используется другой репозиторий, нежели чем для самого ms sql. Итак, импортируем ключи GPG:
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add —
Переходим на вышеупомянутую страницу с репозиториями, выбираем версию нужного Ubuntu и копируем ссылку на prod.list:
С помощью скопированной ссылки устанавливаем репозиторий:
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
Обновляем список пакетов и устанавливаем утилиту для работы с sql:
apt-get update
apt-get install mssql-tools
В процессе установки система задаст вопрос, принимаем ли мы лицензионное соглашение — отвечаем утвердительно:
Готово. Теперь, чтобы не приходилось каждый раз писать полный путь до исполняемого файла, вводим команды:
echo ‘export PATH=»$PATH:/opt/mssql-tools/bin»‘ >> ~/.bashrc
export PATH=»$PATH:/opt/mssql-tools/bin»
Пробуем подключиться к серверу:
sqlcmd -S localhost -U SA
* где localhost — локальный сервер; SA — встроенная учетная запись суперпользователя.
Если при попытке подключиться к SQL мы получаем ошибку «sqlcmd: error: microsoft odbc driver 17 for sql server …», необходимо убедиться в том, что сервис работает (команда systemctl status mssql-server), а также необходимо убедиться, что сервер сконфигурирован (команда /opt/mssql/bin/mssql-conf setup).
Пробуем получить список баз данных:
> SELECT name FROM master.dbo.sysdatabases
> GO
Microsoft SQL Server Management Studio
Также, для подключения к серверу на Linux мы можем использовать среду управления Management Studio. При подключении необходимо просто прописать адрес сервера с Ubuntu и пароль для пользователя sa:
Если мы используем брандмауэр, необходимо добавить правило для порта 1433:
iptables -I INPUT 1 -p tcp —dport 1433 -j ACCEPT
SQL Server Management Studio System Requirements
Before you begin installing SSMS on your device, you’ll need to meet these minimum hardware requirements:
- Processor: 1.8 GHz or faster x86 (Intel, AMD) processor
- RAM: 2GB (2.5GB if running on a virtual machine)
- Storage: Minimum of 2 GB (Can go up to 10 GB depending upon installed features)
Apart from the hardware requirements, you also need to ensure the right OS. The following operating systems are supported:
- Windows Server 2022 (64-bit)
- Windows 11 (64-bit)
- Windows 10 (64-bit) version 1607 (10.0.14393) or later
- Windows 8.1 (64-bit)
- Windows Server 2019 (64-bit)
- Windows Server 2016 (64-bit)
- Windows Server 2012 R2 (64-bit)
- Windows Server 2012 (64-bit)
- Windows Server 2008 R2 (64-bit)
Requirements
All you need to get started is to have Visual Studio with the Visual Studio Extensibility Tools installed. This will enable you to use the VSIX Project template when creating new Visual Studio projects. If you have Visual Studio installed but don’t have the extensibility tools, you can add them to your current installation through Programs and Features in Control Panel.
I recommend using Visual Studio 2015 for this because I had issues with references and dependencies using Visual Studio 2017. Because SSMS 17.X is based on the Visual Studio 2015 Isolated shell, I figured this is probably a more compatible version for this type of project and decided to stick to it. If you are an experienced user though, you can probably get away with Visual Studio 2017.
Background
With SSMS 18 around the corner (RC1 available at the time of writing), I decided to have a look at the changelog for this version (available here) hoping to see “Dark theme fully supported” (no luck there) or something else interesting when this note caught my eye:
You see, everyone that tried to develop an SSMS extension up to this point knows that it was a pain to start. The biggest reason was this constraint set by the SSMS team that wouldn’t allow any non whitelisted extension to be loaded into SSMS when starting. As a result, we had to do a bunch of unpleasant hacks to get around this restriction and to get our extensions to work. Making things even harder was the complete lack of support and documentation on extending SSMS which to my knowledge still hasn’t changed. The last mention of extensibility for SSMS in the official documentation I could find is in the pages for SQL Server 2014 (available ) which state:
Even though the decision to remove the whitelist check makes things easier, as far as I know extensions are still not officially supported and we’re still left to dig around the web for resources on extending SSMS which are few and far between. Luckily, because they share the same isolated shell, tutorials for creating Visual Studio extensions can sometimes help and there are plenty of these around (official documentation available here). The lack of official documentation and online resources are the reasons for creating this tutorial.
SQL Server Data Tools
SQL Server Data Tools (SSDT) is a separate component (workload) of Visual Studio designed for development of SQL Server relational databases.
SSDT is designed for database design development using all the features and advantages of Visual Studio, as well as the familiar to developers interface and functionality. Thus, SQL Server Data Tools is designed for developers who create applications in Visual Studio environment.
Main features
- Integrated in Visual Studio
- Familiar Visual Studio interface and functionality
- Focus on database development
- Coverage of all stages of database development You can work with both a database project and a connected database instance.
- GUI Table Builder
- Navigation by code
- IntelliSense Technology
- Reassembly and debugging
- Database refactoring
- Declarative changes in the Transact-SQL editor
Shortcomings
- The tool is implemented only under Windows
- The tool cannot be used without Visual Studio
- Not suitable for easy writing, editing and execution of SQL queries
- Not suitable for SQL Server administration
Поддерживаемые операционные системы
При использовании последнего пакета обновления этот выпуск SSMS поддерживает следующие платформы: Windows 10, Windows 8, Windows 8.1, Windows 7 (SP1), Windows Server 2016, Windows Server 2012 (64-bit), Windows Server 2012 R2 (64-bit), Windows Server 2008 R2 (64-bit)
Примечание
SSMS 17.X основана на изолированной оболочке Visual Studio 2015, которая была выпущена до Windows Server 2016.
Корпорация Майкрософт уделяет большое внимание совместимости приложений и гарантирует, что уже выпущенные приложения продолжат работать в последних выпусках Windows. Чтобы минимизировать проблемы с запуском SSMS в Windows Server 2016, убедитесь, что для SSMS установлены все последние обновления.
При возникновении каких-либо проблем с SSMS в Windows Server 2016, обратитесь в службу поддержки
Служба поддержки определит, связана ли проблема с SSMS, с Visual Studio или с совместимостью SSMS и Windows.
Затем ваш запрос будет перенаправлен соответствующей группе для дальнейшего изучения.
Query Editor on Microsoft SQL Server Management Studio
Another ability of the SSMS is that it enables to create and execute the T-SQL queries. When we click on the
New Query button, which is placed on the toolbar, a new Query Editor will open. In
this editor, we can create and execute SQL queries. In the following example, we will execute a very basic query
that shows some of the synthetic customer data. First, we will open a new query editor window, type desired query
and then, we will click the Execute button to run the query. The query result will be shown under
the Results panel:
1 |
SELECT* FROM(VALUES (1, ‘Gertie Michener’, ‘London’ ), (2, ‘Colton Guion’, ‘New York’ ), (3, ‘Ahmed Coty’, ‘Berlin’ ), (4, ‘Devin Kimmons’, ‘Istanbul’ ))CustomerTable(Id,CustomerName,City) |
SSMS query editor offers various productivity options to programmers. In the previous example, the result set of the
query has been shown on the grid, but we can change this option. On the SQL Editor toolbar, we can
change this setting to Results to File, so that the result set of
the query will be shown in a text format:
When we want to separate the query window and result set window, we need to enable the Display results in a
separate tab option. To enable this option we need to follow the below steps:
-
Click the Options command which is placed under the Tools menu:
-
Enable the Display results in a separate tab option under either Results to Grid tab or Results to Text tab:
After enabling this option, the query results will be shown in a separate window. However, this option will be
enabled when a new Query Window is opened. When we run the following query, the result set will be shown in the
separate tab:
After the mentioned setting is changed, the query result will be shown as follows:
The following illustration indicates the essential features of the SQL Editor toolbar:
-
Available Databases: In this drop-down menu, we can determine a database on which the query will
be executed - Execute: This button starts the execution of a currently active query window
- Cancel Executing Query: This button stops the execution of the query
- Parse: This button validates the syntax of the query, but does not check the database objects
-
Changing query result destination: In this button group, we can set the destination of the query
result. It provides three different options:- Results to Grid
- Results to Text
- Results to File
-
Comment/Uncomment out the Selected Lines:
These buttons provide the option for
commenting or uncommenting on the selected code lines:
Tip: Some programmers wish to see the line numbers of the code in the query editor. Therefore, we
need to follow the below steps:
- Click the Options command, which is placed under the Tools menu
- Navigate to the General tab, which is placed under Transact-SQL node
- Check the Line numbers option
After this setting change, the queries will be formatted as follows:
Возможности программы
Администрирование экземпляров SQL Server – это работа для профессиональных пользователей, обладающих как знаниями, так и подходящими инструментами. Данная программа, разработанная самой Microsoft, представляет собой продвинутую программу, цель которой – предоставить своим пользователям все необходимые функции для успешного выполнения этой задачи.
Этот пакет адаптирован для SQL Server (включая последнюю версию), базы данных SQL Azure и хранилища данных SQL, обеспечивая возможность управления экземплярами ядра базы данных, позволяя быстро управлять базами данных и их содержимым.
Workaround #1
You see, the SSMS team at Microsoft keeps a list of all the extensions it allows for SSMS to load. It’s just a list of package GUIDs that are white listed and the packages (extensions) identified by those GUIDs are loaded into SSMS with no problem. Anything else won’t be loaded by SSMS. I’ve read somewhere that the reason for this is that the SSMS team doesn’t want SSMS to be flooded with irrelevant extensions. Another place said that Microsoft should eventually include official support for SSMS extensions and this shouldn’t be a problem in the future. But until then we have to use a workaround for this problem if we want our extension to load (alternatively you could just contact Microsoft’s SSMS team and ask them to whitelist your extension). So, what is this package GUID and how do we work around this problem?
The package GUID is nothing more than a unique identifier for your extension and it can be found in two places in our project. The first one is in the class:
C#
Copy Code
public const string PackageGuidString = "c626db04-880e-41bf-b780-ab5804d1ea2f";
The other is in the HelloWorldCommandPackage.vsct file:
Copy Code
<GuidSymbol name="guidHelloWorldCommandPackage" value="{c626db04-880e-41bf-b780-ab5804d1ea2f}" />
To work around the validation problem we need to explicitly tell SSMS to skip the validation for this package when trying to start up. To do this, unfortunately we need to edit the registry a bit. To open up the registry editor, first we need to open the “Run” window by hitting Windows + R on the keyboard. In it, type regedit and hit OK.
When the registry editor opens, go to:
Copy Code
HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\14.0
In it, check if there’s a “Packages” key and if there isn’t, create it by right-clicking 14.0 and then selecting New > Key.
In the (newly created) Packages key create a new key with the extension’s package GUID wrapped in curly braces as its name. The key name should look like this:
Copy Code
{c626db04-880e-41bf-b780-ab5804d1ea2f}
In the new key (the one with the package GUID as its name) add a new DWORD (32-bit) Value by right-clicking the key and selecting New > DWORD (32-bit) Value.
Once the value is created, right-click on it and rename it to . After this, our final step is to set the value to 1 by right-clicking the new () value and selecting Modify… from the context menu.
Just put 1 in the «Value data» field and hit OK.
You can close the registry editor now. If we got this step right, our extension should finally load into SSMS when we start debugging. Go back to Visual Studio and try it out. Great, our command is here and is working just fine. Also, when we try to run it we can see that our Visual Studio breakpoint hits and finally all is good.
Well, not really!
Виды СУБД
Базы данных различаются между собой тем, как внутри них связаны данные. Соответственно различаются и СУБД, которые эти БД поддерживают. Внутренние связи данных внутри БД называются моделями данных.
По поддержке баз данных различных моделей данных СУБД различаются на:
- Иерархические;
- Сетевые;
- Реляционные;
- Объектно-ориентированные;
- Объектно-реляционные.
Иерархические БД – это деревья данных, где каждый вышерасположенный объект имеет в подчинении несколько нижерасположенных. Доступ к данным осуществляется посредством движения по объектам сверху-вниз.
Сетевые отличаются от иерархических тем. Что каждый потомок в них может иметь несколько предков (множественное наследование).
Реляционные – безусловный лидер среди СУБД (93% всего рынка). Основаны на поддержке реляционных БД, то есть наборов таблиц и их отношений с возможность изменения обеих.
Объектно-ориентированные (ООСУБД) управляют абстрактными объектами, которые наделены свойствами и наделены методами для выполнения действий.
Объектно-реляционные (ОРСУБД) – реляционные СУБД, поддерживающие обьекты свойства и методы из объектно-ориентированной СУБД.
По способу доступа к БД:
- Файл серверные.
- Клиент-серверные;
- Встраиваемые.
В файл серверных базы данных располагаются на сервере, а СУБД на клиенте. В клиент – серверных базы данных и СУБД располагаются на сервере. Встраиваемые – мини СУБД, обычно встроенные внутри приложения.
По степени распределённой данных:
- Локальные: клиент и сервер – один компьютер;
- Распределенные – клиент и сервер разные компьютеры.
Подключение к серверу
При запуске среды SQL Server Management Studio открывается диалоговое окно Connect to Server (Соединение с сервером), в котором нужно задать необходимые параметры для подключения к серверу:
- Server type (Тип сервера)
-
Для целей этой статьи из раскрывающегося списка выберите опцию Database Engine (Компонент Database Engine). С помощью среды SQL Server Management Studio, среди прочего, можно управлять объектами компонента Database Engine и служб Analysis Services. Мы рассмотрим использование среды SQL Server Management Studio только для управления объектами компонента Database Engine.
- Server name (Имя сервера)
-
Выберите из раскрывающегося списка или введите с клавиатуры имя сервера, к которому нужно подключиться. (Обычно, среду SQL Server Management Studio можно подключить к любому установленному продукту на конкретном сервере.)
- Authentication (Проверка подлинности)
-
Выберите один из следующих двух типов проверки подлинности:
-
Windows Authentication (Проверка подлинности Windows). Подключиться к SQL Server по своей учетной записи Windows. Это наиболее легкий вариант подключения и рекомендуется компанией Microsoft;
-
SQL Server Authentication (Проверка подлинности SQL Server). Используется проверка подлинности компонента Database Engine по имени пользователя и паролю.
-
Указав все необходимые параметры, нажмите кнопку Connect (Соединить) и Database Engine подключится к указанному серверу. После подключения к серверу базы данных открывается главное окно среды SQL Server Management Studio. Своим внешним видом это окно похоже на главное окно среды разработки Visual Studio 2010, поэтому пользователи могут применить свой опыт работы в Visual Studio в данной среде. На рисунке ниже показано главное окно среды SQL Server Management Studio с несколькими панелями:
Среда SQL Server Management Studio предоставляет единый интерфейс для управления серверами и создания запросов для всех компонентов SQL Server. Иными словами, для компонентов Database Engine, служб Analysis Services, служб Integration Services и служб Reporting Services применяется один и тот же графический интерфейс.
Introducing http://downloadsqlserverexpress.com (this short link goes directly to this post)
SQL Server 2019 Express Edition (English):
- Basic (239 MB): https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPR_x64_ENU.exe
- Advanced (700 MB): https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPRADV_x64_ENU.exe
- LocalDB (53 MB): https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi
SQL Server 2017 Express Edition (English):
- Core (275 MB): https://download.microsoft.com/download/E/F/2/EF23C21D-7860-4F05-88CE-39AA114B014B/SQLEXPR_x64_ENU.exe
- Advanced (710 MB): https://download.microsoft.com/download/E/F/2/EF23C21D-7860-4F05-88CE-39AA114B014B/SQLEXPRADV_x64_ENU.exe
- LocalDB (45 MB): https://download.microsoft.com/download/E/F/2/EF23C21D-7860-4F05-88CE-39AA114B014B/SqlLocalDB.msi
SQL Server 2016 with SP2 Express Edition (English):
- Core (437 MB): https://download.microsoft.com/download/4/1/A/41AD6EDE-9794-44E3-B3D5-A1AF62CD7A6F/sql16_sp2_dlc/en-us/SQLEXPR_x64_ENU.exe
- Advanced (1445 MB): https://download.microsoft.com/download/4/1/A/41AD6EDE-9794-44E3-B3D5-A1AF62CD7A6F/sql16_sp2_dlc/en-us/SQLEXPRADV_x64_ENU.exe
- LocalDB (45 MB): https://download.microsoft.com/download/4/1/A/41AD6EDE-9794-44E3-B3D5-A1AF62CD7A6F/sql16_sp2_dlc/en-us/SqlLocalDB.msi
SQL Server 2016 with SP1 Express Edition (English):
- Core (411 MB): https://download.microsoft.com/download/9/0/7/907AD35F-9F9C-43A5-9789-52470555DB90/ENU/SQLEXPR_x64_ENU.exe
- Advanced (1255 MB): https://download.microsoft.com/download/9/0/7/907AD35F-9F9C-43A5-9789-52470555DB90/ENU/SQLEXPRADV_x64_ENU.exe
- LocalDB (45 MB): https://download.microsoft.com/download/9/0/7/907AD35F-9F9C-43A5-9789-52470555DB90/ENU/SqlLocalDB.msi
I’ve done the HTTP sniffing and work, and written this blog post in the hopes that it helps you (and I’m bookmarking it for myself, for the future).
Download SQL Server 2016 Management Studio (June 2016 release)
*The installer works for both 32-bit and 64-bit machines and installs Management studio as well as command-line tools needed to manage SQL Server.
Download SQL Server 2014 Express
- You likely just want SQL Server 2014 Express with Tools. This download includes SQL Management Studio.
- SQL Server 2014 Express x64
- SQL Server 2014 Express x86
- Here’s just SQL Server 2014 Management Studio
- SQL Management Studio x64
- SQL Management Studio x86
- SQL Server 2014 Express with Advanced Services
- Advanced Services x64
- Advanced Services x86
Download SQL Server 2012 Express
- You likely just want SQL Server 2012 Express with Tools. This download includes SQL Management Studio.
- Here’s just SQL Server 2012 Management Studio
- SQL Management Studio x64
- SQL Management Studio x86
Download SQL Server 2008 Express R2 SP2
- You likely just want SQL Server 2008 Express with Tools. This download includes SQL Management Studio.
- SQL Server 2008 Express x64
- SQL Server 2008 Express x86
- Here’s just SQL Server 2008 Management Studio
- SQL Management Studio x64
- SQL Management Studio x86
You can get back here via downloadsqlserverexpress.com. Tell your friends.
Sponsor: A big thank you to my friends at Octopus Deploy. They are sponsoring the blog feed this week. Using NuGet and powerful conventions, Octopus Deploy makes it easy to automate releases of ASP.NET applications and Windows Services. Say goodbye to remote desktop and start automating today!
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
About Newsletter
Background
All I wanted was to create a simple SQL Server Management Studio (SSMS) extension to simplify what was already a simple action that I repeat a couple of times a week. I thought, how hard could it be… it’s just a simple action. You click a button on the menu somewhere and something simple happens. It would be easy and straight forward I thought. It would be a fun project. I know that SSMS extensions exist. Not a lot of them, not as nearly as many as there are available for Visual Studio, but they do exist. There must be some good beginners tutorials out there… there must be a decent documentation somewhere explaining all the bits and pieces, providing some sample code. I would just need to Google around for a bit and I would be on my way in a couple of hours.
Boy, was I wrong! There isn’t anything out there. Documentation about creating SSMS extensions doesn’t exist. The available tutorials are few and far between and unfortunately most of them are too old, explaining the older Add-in system that is no longer supported so unfortunately they are mostly useless. All that exists is just incomplete pieces of knowledge and documented experiences scattered all over the internet.
OK, I thought, back to square one. I know there are a lot of extensions for Visual Studio and I know that SSMS 17 is based on the Visual Studio 2015 Isolated shell. So, maybe the tutorials for Visual Studio extensions would help me to get started. Well, not really. They help once you are up and running, but there is not a single tutorial out there that would explain to me how to get an SSMS extension project going.
Hopefully, for everyone else, this is that tutorial…
As you will see below, the process is far from easy or intuitive and can get really tricky really fast. So let’s start.
Conclusion
As we can see it is possible to install only SQL Server Management Studio on
a local machine (without installing the SQL Server database engine and its other
components) and connect using SSMS to a remote SQL Server instance. Installation
of SSMS is possible from the SQL Server Installation Center and it is possible to
download and install only SSMS. Like other SQL Server features it is possible to
install SSMS using a configuration file from the command line.
Next Steps
Check out this related information:
-
https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-ssms
-
https://docs.microsoft.com/en-us/sql/tools/sql-server-management-studio/tutorial-sql-server-management-studio
-
https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms
-
https://docs.microsoft.com/en-us/sql/ssms/previous-sql-server-management-studio-releases
-
https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-2016-from-the-command-prompt
-
Determine the version of SQL Server
-
Check out all of the tips on
SQL Server Management Studio.
Related Articles
Copy column headers and query results in SQL Server Management Studio
Maximizing work space with SSMS by using separate results tabs
Zoom Feature for Query Text and Results Text in SQL Server Management Studio
Property Owner is not available for Database SSMS error
How to use RunAs command for SSMS if option does not exist
SQL Server Management Studio Error 916
Understanding Column Properties for a SQL Server Table
Column and block text selection using SQL Server Management Studio
Connect to SQL Servers in another domain using Windows Authentication
Line Split Issues when Copying Data from SQL Server to Excel
Executing large scripts in SQL Server Management Studio with Insufficient Memory Failures
Using Regular Expressions to Manipulate Text in SQL Server Management Studio 2017
How to create a table using SQL Server Management Studio
SQL Server Database Diagram Index was Outside the Bounds of the Array
SQL Server Management Studio Connection to Integration Services Error Class Not Registered
SQL Server Single User Mode Connection with SQL Server Management Studio
SSMS Download, Install and Configure with GUI and Command Line
Get Started using SSMS — Connect, Navigate, Query
How to Connect to a SQL Database
SQL Server Management Studio Top 10 Productivity Tips and Hidden Secrets
Popular Articles
Date and Time Conversions Using SQL Server
Format SQL Server Dates with FORMAT Function
SQL Server CROSS APPLY and OUTER APPLY
SQL Server Cursor Example
SQL Server DROP TABLE IF EXISTS Examples
Rolling up multiple rows into a single row and column for SQL Server data
SQL NOT IN Operator
How to tell what SQL Server versions you are running
Add and Subtract Dates using DATEADD in SQL Server
SQL Convert Date to YYYYMMDD
SQL Server Loop through Table Rows without Cursor
Resolving could not open a connection to SQL Server errors
How to Get Current Date in SQL Server
Using MERGE in SQL Server to insert, update and delete at the same time
SQL Server Row Count for all Tables in a Database
Concatenate SQL Server Columns into a String with CONCAT()
Ways to compare and find differences for SQL Server tables and data
Searching and finding a string value in all columns in a SQL Server table
SQL Server Database Stuck in Restoring State
Execute Dynamic SQL commands in SQL Server
Sergey Gigoyan is a database professional with more than 10 years of experience, with a focus on database design, development, performance tuning, optimization, high availability, BI and DW design.
View all my tips
Uninstall
SSMS may install shared components if it is determined that they are missing during SSMS installation. SSMS will not automatically uninstall these components when you uninstall SSMS.
The shared components are:
- Azure Data Studio
- Microsoft .NET Framework 4.7.2
- Microsoft OLE DB Driver for SQL Server
- Microsoft ODBC Driver 17 for SQL Server
- Microsoft Visual C++ 2013 Redistributable (x86)
- Microsoft Visual C++ 2017 Redistributable (x86)
- Microsoft Visual C++ 2017 Redistributable (x64)
- Microsoft Visual Studio Tools for Applications 2017
These components aren’t uninstalled because they can be shared with other products. If uninstalled, you may run the risk of disabling other products.
Эта тема закрыта для публикации ответов.