Problems creating a connection profile

时间:2019-05-19 03:54:52

标签: mysql visual-studio-code

I can't seem to create a connection profile, I follow the steps seen in videos, but none have solved my problem. I have installed the mssql extension, maybe I need to install another extension?

At the bottom right it should appear "Connected to (server_name)"

1 个答案:

答案 0 :(得分:0)

  1. 创建一个新文件,并将语言类型设置为SQL(CTRL + K + M)。

  2. 使用CTRL + SHIFT + P打开命令选项板,然后键入SQL以显示MS SQL命令。

  3. 选择“连接”命令。

  4. 选择“创建连接配置文件”。这将创建一个配置文件以连接到您的SQL Server。

  5. 键入您的连接字符串,然后按Enter。

  6. 您的连接字符串会有所不同,但看起来像这样: Server = localhost \ MSSQLSERVER01; Database = master; Trusted_Connection = True;

参考:https://dzone.com/articles/sql-with-visual-studio-code