You may need to check this..
http://social.msdn.microsoft.com/Forums/en/sqlgetstarted/thread/16706dec-209f-42c4-8dc7-4ee4dd5df482/see the answer by Dmitri Korotkevitch
>yesterday I installed SQL2008 developer
>
>I could connect with this:
>
>
>strConnectionString = [Driver={SQL Server};Server=OTT-LT1026;Database=kba_sql;Uid=sa;pwd=]
>strConnectionString = [Driver={SQL Server};Server=OTT-LT1026;Database=kba_sql;Trusted Connection]
>
>strSQL = [select * from claims where 1=1 ] && or what ever sql statement you are passing.
>csrCursorToBeReturned = [csrNames]
>
>intHandle = SQLSTRINGCONNECT(strConnectionString)
>
>intResults = SQLEXEC(intHandle, strSQL, csrCursorToBeReturned)
>
>
>
>today it times out
>with SQL management studio I connect just fine
>
>what could be wrong?
>
>Peter
____________________________________
Don't Tread on Me
Overthrow the federal government NOW!
____________________________________