MSSQL – konfiguracja DBMail

MSSQL – konfiguracja DBMail
W dzisiejszym wpisie pokażę jak krok po kroku skonfigurować DB mail w MS SQL. Potrzebne będzie konto pocztowe oraz SQL management studio. Zaloguj się w SSMS kontem administracyjnym. W drzewku po lewej rozwijamy Management, następnie na Database Mail klikamy PPM i wybieramy "Configure Database Mail" W nowym oknie wybieramy YES. W kolejnym kroku zaznaczamy opcję nr 1,…

MSSQL – DBMail configuration

MSSQL – DBMail configuration
Today's post will contain tutorial how to step by step configure DB Mail feature in MSSQL database. To have it we need already created mail account and SQL management studio. First, login via SSMS with admin account to SLQ DB. In tree at the left choose Management, next Database Mail ,click PPM and choose"Configure Database Mail" In…

Jak naprawić problem użytkowników sierot w SQL

Jak naprawić problem użytkowników sierot w SQL
Podczas przywracania baz danych MS SQL może się przydarzyć, że trafisz na sytuację gdy w bazie danych będzie tzw. "orphan user", czyli taki pusty login z poprawną nazwą ale nie powiązany z użytkownikiem. Jednak jeśli przyjrzymy się bliżej to znajdziemy 2 takie same loginy ale z różnymi numerami SID. Tak jak na screenie poniżej. Aby wylistować wszystkich…

How to fix orphan users problem in SQL

How to fix orphan users problem in SQL
After MSSQL database restore you might to meet with situation that in DB will be orphan users. Simply, it is empty login name without any assignment with user. We can check it and then will see that there is 2 the same login names but with different SID numbers like on the picture below. To list all…

Import and export SQL data to Excel file

Import and export SQL data to Excel file
Today I will show you how to export and import data between SQL server and Excel file. I thing it will be usable for you. To make import please open SQL Server Management studio, connect to SQL server and right-click on our DB. Choose file to be imported. in my case import file looks likt that: Results…