invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

SQL Server Command Line Tool

This example illustrates how a connection is established from SQL Server Command Line Tool to an Invantive UniversalSQL database on Invantive Cloud.

Invantive UniversalSQL Server has been tested with SQL Server Command Line Tool 15.0.

Prerequisites

Ensure the following prerequisites are met:

  • A database has been registered on Invantive Cloud.
  • The IP address from which SQL Server Command Line Tool connects is whitelisted.

Login

The SQL Server compatible server name is entered on the command line, together with the Invantive Cloud credentials:

sqlcmd -S acme.database.invantive.com -U john.doe -P secret -l 30 -Q "select 1"

Simple Query

The table Projects in the data container dmy (Sample database) can be queried using standard Invantive UniversalSQL syntax: JetBrains DataGrip running "select *" on the table "projects", with the result rows in the grid.

Non-SQL Server Syntax

The use of the pipe symbols instead of concat illustrates that all Invantive UniversalSQL syntax is available, not only Microsoft SQL Server compatible elements: JetBrains DataGrip running a query that concatenates columns with pipe symbols, with 11 result rows.

System Databases

The system databases provide access to the service providers, such as DataDictionary: JetBrains DataGrip running a count query on "SystemTables@DataDictionary", returning one row.

Limitations

As of release 26.0, the following are known limitations when used with JetBrains DataGrip:

  • No elements in Database Explorer (issue 6587).

Release Notes