SQL Day 1: Connecting to SQL Server using SSMS

LO 1: Connecting to SQL Server using SSMS (Sequel Server Management Studio)
LO 2: Know about SQL Server Management Studio
LO 3: Different authentication mode to connect to SQL Server


Connecting to SQL Server using SSMS (Sequel Server Management Studio): 

  •  Install SQL Server (I have installed SQL Server 2008)
  •  To Start SQL, Go to Start and here you should find folder name “Microsoft SQL Server 2008 R2” and now you will see “SQL Sever Management Studio”

  • Click on it and this will open the SSMS window. Once the window is opened, you will see a Connect to SQL pop up. This is information required by the SQL server to connect to the database.



  • SSMS and Sequel Server database are two different things. 
    • A database server typically contains all the data that is all the rows or any data base objects like triggers, store procedure, views etc and connect to that database the client tool we generally used is SSMS (Sequel Server Management Studio).
  • In a typical environment development environment database is centrally installed on one machine and developers can access the database using SSMS that installed on their respective machine.
  • Connect to Server pop up we need to specify followings
    • Server Type: Generally it’s the Database Engine. You can also connect to different services like Analysis Services (SSAS), Reporting Services (SSRS) or Integration Services (SSIS) depending on your need.
    • Server Name: If the environment is like above image then you need to specify the IP address of that machine on which the database is installed. When the database is installed on your local system then you need to specify the IP address of your machine or you can enter (local) in Server name or you can enter only ‘.’ A dot without single quotes.
    • Authentication: While installing the SQL Server if you choose Mixed Mode Authentication then you will see two options. Below is the details:
      • Windows Authentication: If you choose window authentication then you don’t need to provide the username and password because you are already given the credentials when logged into windows.
      • SQL Server Authentication: At the installation time you have specified the username and password. 
    • After providing information click on Connect. Now you should connect to SQL database installed local on that machine.


  • Here you can see all the list of databases, Server Objects, and Security details etc. 
  • To execute a query on the database you need to click on New Query at top left corner as you can see in above image.
  • This will open the query editor where you can write the query and run.
  • Before running the query you need to specify on which database you are going to run the query for that you need to select the database first.



That’s all for today. Thank You.

Comments

Popular posts from this blog

SQL Day 11: Group By in SQL Server

JAVA Script Executor Code to Click on an Element

SQL Day 2: Creating, Altering and Dropping a Database