Inserting new values in database Asp .Net

前端 未结 4 1878
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:54

    your code is right, the problem is with your sql server configuration, you cannot access sql server with integrated security, so, you need to configure it to work fine, take a look at this post:

    http://support.microsoft.com/kb/914277

    if you're in IIS, you should able the remote access on sql server too.

    Look how to access using SSI:

    http://msdn.microsoft.com/en-us/library/aa984236(v=vs.71).aspx

    http://msdn.microsoft.com/pt-br/library/bsz5788z.aspx

提交回复
热议问题