After a successful installation of SQL Server you can operate by going to the taskbar and types SQL Server Management Studio Or you can simply type SSMS. It’s just a mess. You’ll see this I can click on it after SQL Server Management Studio opens you’ll be mate with the connection dialog box.
If you accidentally cancel that one, you can always click there and you get this connection box. To connect to the server that you’re working on Give it the server name or your machine name. Or the simplest way to get your current machine name is just typed localhost then press connect. After you connect to the server using a server name which is localhost or an alias for our server name right here you’ll see databases Right now we don’t have any database that is created.
You might see some system diseases like master,model, msdb, tempdb monster is basically where you server holds all the important information and like the logging model is basically it will hold some template data for SQL Server uses to create some objects and msdb has something to do with SQL Server Agent or to run a scheduled jobs. TempDB is where it’s holding a temporary data or temporary tables. Don’t change anything here don’t delete any one of them so it might crash the entire sequence so.
Next you’ll see a security folder here under it. You’ll see logging, server role, credential, audit and audit specification. You don’t need to change anything here. But for us, since we created the server which makes it more let’s create one secure user account Right-Click new logging logging name. You can say See call user. So it’s going to be a sequel authentication mode. Give it a good password here and repeat the same password here.
And you can choose a default database. Right now since we don’t have any user data mean leave the default answer on and enforce or pass on security. This is just temporary. So don’t enforce anything here and check that out. OK.
That will create a new user name sequel user. So if you want to log into the server using data logging You can always disconnect by clicking this button and click on to reconnect to change the authentication for windows to see quiet indication the server name is the scene local localhost top you know your user name which is call underscore a user for logging. It’s not the case the but for a password. You have to provide it with the correct case. You can click to remember it but if it’s machine that is used by multiple people don’t click. Remember click connect.
Now as you can see going up to localhost using our new account which is Seacole user you’ll see some server objects here. Here is where we do a backup endpoint a link server link server if you have multiple servers and if you want to use a data that is stored in a sequel server that resides on a different Windows machine you can create a link server across a network. Replication is where you create your disaster recovery and then high availability. For now this is not the D.V. cause Don’t worry about this one.
Poley this is basically a new addition to see where you can access data that resides on and non-sequel or something like Hadoop. Always want to have availability is something sequencer added in a recent versions where you can create a deep grooves so that you can increase the performance of food and as well as make sure there’s no loss of data.
Management is another one you can create some policies extended even so you can create some extended events to see what’s going on inside the server. If theories deadlocks or anything like that here’s where you get a sequence of looks. If there is any error on the server or data level I’m getting an error because the sequel user doesn’t have a mission to see that one. You can go back to our windows account restrictive account and be able to see that in detail. And we have integration services catalog.
If you install the course of integration services or is this is where you deploy your hardware and we have sequencer agent job if you want to execute some sort of procedure. For example if you want to send some e-mail to your users you can run us through procedure in UK in bulk data e-mail you can automatically send to them or you hear integration jobs needs to be executed. Here’s where you will see conserver agent and you can execute this job based on some schedule or based on some interval at the top you’ll see you know that you know file Nien Open Save save or everything is there.
It is the scene and do copy paste all they are is there server or object Explorer if you want. Well for example if you lost your object Explorer you can always go to View and click on object Explorer is that you can recover this back or you can open other other objects like the toolbox. We have a debug here if you have some still of procedures that you need to step in as they are. And if you want to depart them thoroughly you’ll use this functionality here we have a toolbox here. This is where you change your options for example to create creating new Querrey here as you can see here there’s no line number if you want to line number so that you can be able to reverse that.
You can go to Tools Options text editor you can go to transact see if you click on line number and click ok. You’ll see line 1. So wait so it’s good to keep adding line numbers for you here. The window is if you have multiple windows you can switch from one to the other or you can split this working window. And hell is basically it’s an on line here.
That’s what the sequencer meaning is looks like. Here we have new window. If you want to write a new sequence so you can click on that one go in and type your queries or select will use your insert wherever see where you have to go here and you have all this say and open here and open you’ll do the same. And if you can do for example new we have control and you can compress control and an end or it’s going to create a new query window or you can do control all it’s going to open.
These once the MDX and in Italy these are basically used in the sequence of analysis services. We know it’s going to be working on that one. If you have a multi pull databases and if you want to switch between one to the right now the current data is that we are working on is a master. If you want to switch to model you can change is you have a user get visas if you want to switch from one day to every city out there or you can use are reserved for use and that will switch the context of that.
That means that you’re working on if you want to execute the call. Here is where you execute it executes a month. For example select 1. And if I do execute, click on execute you’ll see there is no column name If I rename it as col_name now you will see this one will be changing to Col_name instead of no column name here. Or the simplest thing is we can do F5. You can have multiple sequence statement in one query window.
For example, I can do select one column name. I can do select to call name in a file execute. You will see column one and of a cone column name too and you want to exit only a specific sequel’s statement. You can’t always select that one and execute it.Now you’ll see number two and you don’t see number 1. So if you want to execute only a specific part of your query you have to select that part in executive or press F5 that will execute it for you. Debug we discussed about it when we talk about the debug menu this is what the SQL Server environment looks like.
And we’ve also discuss what are some of the shortcuts that you can use to automate your SQL development process. I see in the next article.