SQL database access permission to a User ( Error: The database is not accessible)

In this blog, I will discuss how to give SQL database access permission to a specific user.


Step 1: Login your SQL server as an Administrator user


Step 2: Click on the Username whom you want to give a specific database access permission

Click right button on username -> select Properties


Step 3: Here you can see a Login Properties dialog box

I will discuss here Server roles, User Mapping, and status 

Server roles: Here you can give a bunch of admin power to a user based on nature of user activities.


sysadmin: Members of the sysadmin fixed server role can perform any activity on the server.

serveradmin: Members of the serveradmin fixed server role can change server-wide configuration options and shut down the server.

securityadmin: Members of the securityadmin fixed server role manage logins and their properties. The can grant, revoke, deny server level permission and database level permission if they have permission to access database as well.

You can see more from : https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/server-level-roles


User Mapping: User Mapping is that grant a user to access a specific database based on nature of user activities


Here, I am giving permission user momo9 to access testdb database instance and allowing some specific roles such as db_ddladmin, db_datawriter, db_datareader etc.

You can set your user permission based on what activities that user wants to do on that specific database. More on: https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/database-level-roles


Step 4: Status

here you can see permission to database permission “Grant” or “Deny” and Login “Enable ” or Disable”7.jpg

Step 5: As I have given momo9 user admin power. That specific user can now create a table, insert the value and execute select statement without any error.8.jpg




Source: https://docs.microsoft.com/


Thank you 🙂


How to fix Login Failed for a User (Microsoft SQL Server, Error: 18456)

In this blog, I will discuss how to fix Microsoft SQL Server, Error: 18456


First of all, You need to log in as an administrator user in your server machine for giving the privilege to other users/local users to connect SQL server.

Step 1: Login as an Administrator user in your SQL Server management studio Tools

Step 2:  Go to the Security panel under SQL Server

Now I am showing you how to grant privilege for a local user to access SQL server

Right-click -> New->Login Untitled.jpg

Step 3: Now you can see the Login New window. Select Windows Authentication -> click Search [if you don’t know login user name]2.jpg

Step 4: You will get “select User or Group” window box, click -> Advanced -> click Find Now 3.jpg

Step 5: Now select the user you want to grant access to your SQL server and Click Ok


Now you can see the user under Security -> Logins


Step 6: Go to the user machine and connect SQL server using Microsoft SQL server manager studio1.jpg

Step 7: Now you can login without Microsoft SQL Server, Error: 18456


Thank you 🙂


AWS: Red Hat Enterprise Linux Configuration

Amazon EC2 instance is a web service that allows users to configure the resizable compute capacity and secure environment in the cloud with minimal friction.  Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing users to quickly scale capacity, both up and down, as computing requirements change.

In this section, I will discuss how to configure Red Hat Enterprise Linux 7.4 (HVM), SSD Volume Type.

AWS Services Required: Amazon EC2, Amazon EBS

Step1: You have to go the AWS management console and select compute -> EC2


Step2: Click on “Launch Instance” and choose the Amazon machine image (AMI) you want to configure.


I am going to install Red Hat Enterprise Linux 7.4 (HVM).

The advantage of  Amazon EC2 running Red Hat Enterprise Linux provides a dependable platform to deploy a broad range of applications. A user can leverage the cost effectiveness, scalability and flexibility of Amazon EC2, the proven reliability of Red Hat Enterprise Linux, and AWS premium support with back-line support from Red Hat by running RHEL on EC2.


Step3: Choose the instance type: In my case, I chose t2.micro because of the free trial. The advantage of T2 instances is Burstable Performance which is facilitated a baseline level of CPU performance with the ability to burst above the baseline.


Step 4: Now you need to configure the instance details in where you need to provide the number of instancces (you can deploy more than 1 instance at a time with auto-scaling group facility),  Your own VPC, and Public IP for securing connection and Define IAM role for privacy and security etc.


Step5: Add the storage size and select volume type


Step 6: Configure Security group which will configure the traffic of your instance. You can control inbound and outbound traffic by assign protocol type and port group


Step 7: Check Launch Status and


Now you can see an EC2 Linux instance has been deployed and running.


Summary of Configure: 

  • Choose an Amazon Machine Image (AMI)
  • Choose an instance type
  • Security group: Configure your virtual firewall.
  • Launch an instance: Review your instance configuration and choose “Launch”.
  • Create a key pair: Select “Create a new key pair” and assign a name. The key pair file (.pem) will download automatically – save this in a safe place as we will later use this file to log in to the instance.
  • Finally, choose “Launch Instances” to complete the setup.

Connect to your instance:

Step 1:  Go to the “Actions panel” and select “Connect”


Step 2: You can connect the EC2 Linux instance using two options: SSH client via PuTTy and a Java SSH client directly from your browser.2

NPAPI doesn’t support Google Chrome, in this case, you need to use Firefox3

Thank you 🙂

TADHACK GLOBAL 2017 Experience

TADHACK GLOBAL 2017 September 23-24 Auckland

Attending TAD Hack Global 2017 was one of most thrilling experience I enjoyed last weekend. Before that, I attended a lot of competitions with my own team or with proper preparation, this time It was totally different experience. When I went to Oracle New Zealand on Saturday morning, I hadn’t any idea what I was going to do or whom I was going to meet. I met first time with my five unknown team-mates, TAD Hack Coordinators. It was a global competition. Therefore, we can see each other activities on Live Stream telecast. TAD Hack is the widely global competition for all kind of IT professionals included students, business executive, or anyone.

When people meet with a common interest, they don’t need to know each other for starting a conversation. When we started sharing our ideas, we even didn’t know each other name. We didn’t know where we came from or what is our background. We were all focusing on our ideas and how to implement it.

After a few hours, we got to collaborate. We planned, designed and started implementing. We solved and troubleshoot problems, supported each other’s, wrote code, deployed the project, and celebrated each successful moment. We spent 2 days, almost 18 hours together. We never felt like uncomfortable, or we met the first time.  When we finished our competition, wrapped up our bag, and left Oracle New Zealand office, feelings were like we know each other.

Our story is: Six different unknown IT nerds, met somewhere, took a common challenge, and completed it.

I learned one thing: Passion and dedication can take you anywhere you wish to.

We won Local TADHack Auckland Prize and 1st Prize from Temasys Global Winners.

TADHACK Auckland MediConnect Team Member


PowerPoint Slide

 Thank you 🙂 

Week Twelve Activities: Conclusion Chapter

Well, it was a long journey to write a thesis report! I learned a lot of new things, faced problems and solved it. I enjoyed it except burned my food sometimes  :).

The Conclusion chapter, I planned to give a brief overview of my whole report to the reader. As it is a long report, the reader may lose their concentration at the end. Therefore, conclusion chapter is a good place, to summarize the report and giving the reader a fresh reminder of ending.

I hope my journey of “Graduate Diploma Project PRJ-702″” experience will help you to plan and write your final year report.

Poster Link:


Thank you 🙂


Week twelve Activities: Data transfer to HDFS Directory Storage System

In this Implementation part, I am going to share how to create a directory inside of HDFS default file system and how to transfer data from HDInsihgt Azure storage to directory location using SSH command line.

I will create two directories: one is uploaded data and another one for output of data

Data directory, I will move the raw datasets of 5 CSV files for hive job

Step 1: Connect to HDInsight head node using ssh connection via PuTTY 1.jpg

Step 2: Run directory create command line


Step 3: Run the following command to check directories are created or not!


Step 4: Run the following script to move data from HDInsight Storage to directory location of “Data folder”


Step 5: Run the following command to check files were moved or not to the data directory folder.


Step 6: You can check the files from the Azure Storage account dashboard from your directory location



Thank you 🙂

Week twelve Activities: Upload data into HDInsight Microsoft Storage Account from local machine using Powershell

In this implementation part, I am going to demonstrate how to upload files from local machine to HDInsihgt Microsoft Azure Storage account using the command prompt.

Step 1: Open your Windows Powershell. Run as Administrator



Step 2: Run the following script to upload data from local machine to HDInsihgt Hadoop HDFS default file system. I am going to upload 5 CSV files from January to May 2017 flight delay performance data. I downloaded that data from the websites :


Sytax: pscp file-location.format-of-file username@hostname:/location
pscp E:\newdata\01.csv sshuser@flightdelayh-ssh.azurehdinsight.net:

Step 3: CSV data uploaded to HDInsight storage through SCP protocol


Thank you 🙂