0

where to use this code :

EXEC sp_attach_db @dbname = N'myASPNetDB', 
   @filename1 = N'c:\mypathdata\myaspnet.mdf', 
   @filename2 = N'c:\mypathlogs\myaspnet_log.ldf'
ClixNCash
  • 81
  • 1
  • 4
  • 14
  • 1
    Other question, where do you have this sql from and do you know what it's doing? Have a look: http://msdn.microsoft.com/en-us/library/ms179877.aspx – Tim Schmelter Jan 19 '11 at 10:51

1 Answers1

2

You would run that within SQL Server Management Studio.

Neil Knight
  • 47,437
  • 25
  • 129
  • 188