How to import a .sql file in SQL manager studio

Can anyone tell me what are the step to import a
 import a .sql file in SQL manager studio
yguyon28Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Open SQL Management Studio, go to File, Open and select the SQL file.  It will open it in a query window.
Jim HornMicrosoft SQL Server Data DudeCommented:
From SSMS 2018 and 2012, File menu, Open menu item, File...
File Open FileThen in the resulting Open File dialog navigate to your .sql file and hit the Open button.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pratik MakwanaData AnalystCommented:
Solution.......

1.Start SQL Server Management Studio
2.Connect to your database
3.File > Open > File and pick your file
4.Execute it
Vitor MontalvãoMSSQL Senior EngineerCommented:
Did you try to double-click on file? If you don't have any other database management tool installed the .sql will be set as default file type for SSMS.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.