Visual Studio Code SQL Server Tool Gets IntelliCode, Object Explorer

The mssql extension for Visual Studio Code, used to support SQL Server connections and T-SQL editing, has been updated with IntelliCode functionality and a new Object Explorer, among other new features.

Developers use the mssql for Visual Studio Code extension to create projects leveraging Microsoft SQL Server, Azure SQL Database and SQL Data Warehouse.

When writing T-SQL scripts, developers could utilize Go to Definition, T-SQL snippets, syntax colorizations, T-SQL error validations, GO batch separator and IntelliSense. With the new update, that IntelliSense functionality has been boosted to IntelliCode, the enhanced technology that adds artificial intelligence smarts for code completion tasks and more.

"Today we're sharing a wonderful collaborative effort with the Visual Studio Code IntelliCode team," said Alan Yu, SQL Server program manager, in an Oct. 17 blog post. "If you haven't heard of IntelliCode, we highly encourage you to read the general availability announcement from Build 2019. "IntelliCode is a set of AI-assisted capabilities that aims to improve developer productivity with features like contextual IntelliSense, code formatting, and style rule inference. With this release of the mssql extension, we now support IntelliCode in the mssql extension."

IntelliCode suggestions are listed at the top of IntelliSense code-completion lists, marked with stars. Now, developers can see IntelliCode suggestions for T-SQL reserved keywords including SELECT, FROM and WHERE, to name a few of the most popular choices. Using IntelliCode in VS Code requires first installing the Visual Studio IDE IntelliCode extension in the Visual Studio Marketplace.

Also new in the mssql VS Code tool are what Yu described as the No. 1 and No 2 most-requested features as identified in developer feedback over the past two years: SQL Server Management Studio Object Explorer and SQL Server command line (SQLCMD) support.

"An object explorer allows developers to easily make connections to their SQL servers and databases and explore the hierarchy of the SQL Server instance," Yu explained. "Users can also easily launch new query windows for specific databases or even run a basic SELECT TOP 1000 on a table. This makes it much easier for developers to explore the structure of a database."

A new SQLCMD mode, meanwhile, helps developers write and edit queries as SQLCMD scripts, and then execute them.

Other new features in the update include various bug fixes and support for the Microsoft.Data.SqlClient client access library, which is replacing the old System.Data.SqlClient, the ADO.NET provider used to access SQL Server or Azure SQL Databases in the old .NET Framework, being subsumed by .NET Core.

More information can be found in a new tutorial titled "Use Visual Studio Code to create and run Transact-SQL scripts."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus


  • Color Shards

    Sharing Data and Splitting Components in Blazor

    ASP.NET Core Version 3.1 has at least two major changes that you'll want to take advantage of. Well, Peter thinks you will. Depending on your background, your response to one of them may be a resounding “meh.”

  • How to Create a Machine Learning Decision Tree Classifier Using C#

    After earlier explaining how to compute disorder and split data in his exploration of machine learning decision tree classifiers, resident data scientist Dr. James McCaffrey of Microsoft Research now shows how to use the splitting and disorder code to create a working decision tree classifier.

  • Microsoft: Move from Traditional ASP.NET to 'Core' Requires 'Heavy Lifting'

    There are plenty of reasons to move traditional ASP.NET web apps -- part of the old .NET Framework -- to the new cross-platform direction, ASP.NET Core, but beware it will require some "heavy lifting," Microsoft says.

  • Purple Blue Nebula Graphic

    How to Compute Disorder for Machine Learning Decision Trees Using C#

    Using a decision tree classifier from a machine learning library is often awkward because it usually must be customized and library decision trees have many complex supporting functions, says resident data scientist Dr. James McCaffrey, so when he needs a decision tree classifier, he always creates one from scratch. Here's how.

  • Blazor's Future: gRPC Is Key

    Blazor guru Steve Sanderson detailed what Microsoft is thinking about the future of the revolutionary project that enables .NET-based web development using C# instead of JavaScript, explaining how gRPC is key, along with a new way of testing and a scheme for installable desktop apps.

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events