I have a code for inserting values in ASP.net using vb. I\'m having problem with my code says login failed, cannot open database.
Dim struser, strpass, strem
I think your Initial Catalog is wrong. your pointing at a file you should use here the database-name. I guess o2database.
if this is not the case - you are using SSPI to login - maybe your user does not have the permission to do so.
another thing is that your web-application is not configured in the iis to pass on your domain-user credentials - so it cannot work using SSPI to login.