6

Possible Duplicate:
SQL Server 2008 Express failed to attach mdf file

I use SQL Server 2008 r2, I am new at SQL Server , so I have some example files I want to attach it.

for some reason it showing the following messegebox :

Cannot show requested dialog. Additional information : parameter name : nColIndex Actual value was -1. (Microsoft.Sqlserver.GridControl)

Thanks!

1

1 Answer 1

8

That's a known bug in SSMS Express. Use T-SQL instead, and you should be successful:

EXEC sp_attach_db 
    @dbname = N'yourDbName',
    @filename1 = N'C:\yourMDFlocation\DB_File.mdf', 
    @filename2 = N'C:\yourLDFlocation\DB_Log.LDF'
Sign up to request clarification or add additional context in comments.

3 Comments

sorry for the dumb question , but , what is T-SQL?
@user1054375 T-SQL is the proprietary extension to SQL used by SQL Server. stackoverflow.com/questions/1043265/…
@user1054375, John Allers hit the nail on the head. T-SQL (Transact-SQL) is SQL Server's SQL.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.