i successed in this
my problem now is after connecting and try to execute some sql statements on the database it gives me this error message:-

Cannot open database "mydb" requested by the login. The login failed.
Login failed for user 'COMPUTER\username'.

any help?
thanks in advance.