c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
SQL

How to attach database in sql server using cmd?

| | SQL
In SQL Server we can use the SQL command to attach database to Microsoft Sql Server. Just copy the mdf file path  and run with the following command.
SQL CODE:

CREATE DATABASE DATABASE_NAME
ON PRIMARY (FILENAME='DATABASE_PATH')
FOR ATTACH;

To Attach the SQL Database using cmd (Video Guide):