Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Sql Exception

Sql Exception

Scheduled Pinned Locked Moved ASP.NET
databaseasp-net
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Naveed Butt
    wrote on last edited by
    #1

    Hello while I am trying to connect/bind my datagrid to my database it throws SqlException, and I have the feeling as if I am getting the user name wrong because the message for sqlexception is "Login failed for user 'SYSTEMNAME\ASPNET'. Thanks in advance.

    A 1 Reply Last reply
    0
    • M Mr Naveed Butt

      Hello while I am trying to connect/bind my datagrid to my database it throws SqlException, and I have the feeling as if I am getting the user name wrong because the message for sqlexception is "Login failed for user 'SYSTEMNAME\ASPNET'. Thanks in advance.

      A Offline
      A Offline
      asithangae
      wrote on last edited by
      #2

      hai in SQl Enterprise manager go to users and add new user to the database.

      step1: select users in tree view and right click select new database user,
      step2: a dialog box appers , In login name conbo select  
      step3: in the name filed select ... in the right corner.
      step4: it opens another dialog, select list names from filed to your machine name.
      step5: Aspnet user will available in the list select that and click ok.
      step6: select server roles tab and check true to system administrator
      step7: select database access tab and check true to the database which you want the user to access.
      step8: then check true to db_owner in the below list.click ok
      step9: the user was added sucessfully and all dialog box closes except new user box.
      step10: check the database userlist for confirmation.
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups