Background
Break News
How to add local font to Tailwind Css and NextJS? - Tutorial Design Pattern? - Blockchain Technology, How to create own Bitcoin virtual currency - Zustand mordern management state - Design Pattern - Flyweight Pattern? - Docker Full training Topic

Can I "run Microsoft SQL Server on docker"? - SQL Connection troubleshoot issues

Monday 18 July 2022
|
Read: Completed in minutes

Can I "run Microsoft SQL Server on docker"? - SQL Connection troubleshoot issues

Can I run Microsoft SQL Server on docker?  The answer is YES  πŸ‘ŒπŸ‘ŒπŸ‘Œ

πŸ‘¦Welcome to Webzone Tech Tips - I am Zidane (ι›žθ›‹)Nice to see you again brother and sister

How to Set Up SQL Server Database with Docker

Sometime you will have to run Microsoft SQL Server on your MACOS, Ubuntu. But you cannot run Microsoft SQL Server on Macos, Ubuntu. So you need to run them on docker, that's solution method

Let's back to question on this topic

I will share with you how to use Microsoft SQL Server on docker

How to Set Up SQL Server Database with Docker 

First you need to create account on docker - link download here

Access to https://www.docker.com/ and create account

Then login into docker by command docker login

πŸ‘‰Tiktok

πŸ‘‰

 

How to Set Up SQL Server Database with Docker

Run docker and download sql server image from below page:

https://hub.docker.com/_/microsoft-mssql-server

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrong(!)Password" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest

Ex: 

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=123456" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest

How to Set Up SQL Server Database with Docker

You will see microsoft sql server start after type docker ps -a

On this step,  you had completed the deploy microsoft sql server on docker

Now let's connect to database with Azure Data Studio with below information - link download here

Connection type: Microsoft SQL Server

Server: local, 1433

Authentication type SQL Login

User name: sa

Password: 

How to Set Up SQL Server Database with Docker

How to Set Up SQL Server Database with Docker


Is it easy to set up microsoft sql server on docker? If you have any issue or question while set up microsoft sql server on docker, leave your comment we can discuss about it.

Finally I will summary for you, have 5 basic steps:

1. Create account on docker

2. Login into docker by command docker login

3. Run docker and download microsoft sql server image 

4. Start sql server image

5. Connect to database with Azure Data Studio

 

Connect SQL Server Troubleshoot issues

Sometime you will get below message after setup docker with sql server successfully

A connection was successfully established with the server, but then an error occurred during the pre-login handshake.

Troubleshoot way is just clear the current connection and reconnect again

 

Another topic, I also talked about Microsoft database docker compose file, on this file I will share with you guys how to build a docker compose file with MS SQL database service. I think you will be love it, 

Below link here: https://learn-tech-tips.blogspot.com/2022/09/how-to-create-docker-compose-for-mssql-database-service.html

 

Thanks for reading

See you next time ✋

Webzone Tech Tips - Zidane



πŸ™‡πŸΌ We Appreciate Your Comments and Suggestions - Webzone - all things Tech Tips web development πŸ™‡πŸΌ
Popular Webzone Tech Tips topic maybe you will be like it - by Webzone Tech Tips - Zidane
As a student, I found Blogspot very useful when I joined in 2014. I have been a developer for years . To give back and share what I learned, I started Webzone, a blog with tech tips. You can also search for tech tips zidane on Google and find my helpful posts. Love you all,

I am glad you visited my blog. I hope you find it useful for learning tech tips and webzone tricks. If you have any technical issues, feel free to browse my posts and see if they can help you solve them. You can also leave a comment or contact me if you need more assistance. Here is my blog address: https://learn-tech-tips.blogspot.com.

My blog where I share my passion for web development, webzone design, and tech tips. You will find tutorials on how to build websites from scratch, using hot trends frameworks like nestjs, nextjs, cakephp, devops, docker, and more. You will also learn how to fix common bugs on development, like a mini stackoverflow. Plus, you will discover how to easily learn programming languages such as PHP (CAKEPHP, LARAVEL), C#, C++, Web(HTML, CSS, javascript), and other useful things like Office (Excel, Photoshop). I hope you enjoy my blog and find it helpful for your projects. :)

Thanks and Best Regards!
Follow me on Tiktok @learntechtips and send me a direct message. I will be happy to chat with you.
Webzone - Zidane (huuvi168@gmail.com)
I'm developer, I like code, I like to learn new technology and want to be friend with people for learn each other
I'm a developer who loves coding, learning new technologies, and making friends with people who share the same passion. I have been a full stack developer since 2015, with more than years of experience in web development.
Copyright @2022(November) Version 1.0.0 - By Webzone, all things Tech Tips for Web Development Zidane
https://learn-tech-tips.blogspot.com