Actually using the Query Analyzer, i can access the database (using windows authentication ) .But i cant use it in the code??Any Examle will be helpful....... i m using it in dotnet.. VB.net.If you have any other example of accessing the database through the windows usernam-password, then plz share.Thanks in advance.