Solved

How to import a .sql file in SQL manager studio

Posted on 2014-10-07
4
244 Views
Last Modified: 2014-10-09
Can anyone tell me what are the step to import a
 import a .sql file in SQL manager studio
0
Comment
Question by:yguyon28
4 Comments
 
LVL 24

Expert Comment

by:Mohammed Khawaja
Comment Utility
Open SQL Management Studio, go to File, Open and select the SQL file.  It will open it in a query window.
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
Comment Utility
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.
0
 
LVL 2

Expert Comment

by:Pratik Makwana
Comment Utility
Solution.......

1.Start SQL Server Management Studio
2.Connect to your database
3.File > Open > File and pick your file
4.Execute it
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
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.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now