> I think this is what he was looking for:
> oMyobject = CreateObject('SQLDMO.SQLServer')
> oMyobject.LoginSecure = .T.
> oMyObject.Connect([Server Name])
> oMyObject.AttachDBWithSingleFile([DataBase Name])
>
> (Assuming SQL Server has already been installed)Maybe. But, as I keep saying, you still have to install SQL Server first. You cannot use anything (UI based or not) without installing it. The original question was 'can I attach a SQL Server database WITHOUT installing SQL Server?' The answer is still "NO" :)
Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA