Can you execute sql file?

Once it is open, you can execute the file by pressing F5. A .sql file is a set of commands that can be executed against the SQL server. Sometimes the .sql file will specify the database, other times you may need to specify this. You should talk to your DBA or whoever is responsible for maintaining your databases.
For More Information Please Refer:
https://stackoverflow.com/questions/7828060/how-do-i-import-a-sql-data-file-into-sql-server
You May Also Like to Read: