Inserting new values in database Asp .Net

前端 未结 4 1838
Happy的楠姐
Happy的楠姐 2020-12-21 19:31

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         


        
4条回答
  •  醉梦人生
    2020-12-21 19:53

    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.

提交回复
热议问题