Microsoft SQL

Steps to prepare and connect to MS-SQL

Lightup account setup

You'll need a user account that can query data and metadata for all tables you want to monitor. You might already have a user set up that will work, or you might need to create one.

Create a Lightup user

Run the following T-SQL, substituting in a password for the Lightup user.

CREATE LOGIN lightup WITH PASSWORD = '********';
GO
CREATE USER lightup FOR LOGIN lightup;
GO 
CREATE ROLE lightup_role;
GO
GRANT SELECT ON SCHEMA :: [SELECT SCHEMA_NAME(schema_id) AS schema_name FROM sys.objects]  TO lightup_role;
GO
GRANT ROLE lightup_role TO lightup;
GO

Connector setting

  • Host Name - The hostname for the datasource (check the browser address bar; you want the string between // and /. Example: https://host.na.me/
  • Database Name - The name of the database you're connecting to.
  • Username - Enter lightup.
  • Password - The lightup account's password.

Schema scan frequency

You can adjust how often scans run for a datasource.

  • In section 3 - Advanced, select a value for Schema scan frequency: Hourly, Daily, or Weekly.

Query governance

Microsoft-SQL datasources support the Query history, Scheduling, and Enable data storage settings. For steps, see Set query governance settings for a datasource.