SQL connection

<add name="DeskGateEntities" connectionString="metadata=res://*/Data.Model1.csdl|res://*/Data.Model1.ssdl|res://*/Data.Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\DeskGate;initial catalog=DeskGate;user id=sa;password=Gate67XQ;integrated security=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

SQL Detach ve Attach

osql -S .\DeskGate -U sa -P Gate67XQ -Q sp_helpdb
osql -S .\DeskGate -U sa -P Gate67XQ -Q "sp_detach_db 'DeskGate'"
osql -S .\DeskGate -U sa -P Gate67XQ -Q "sp_attach_db 'DeskGate', 'c:\path\DeskGate.mdf', 'c:\path\DeskGate_log.ldf'"