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 error in ASP Page

Sql error in ASP Page

Scheduled Pinned Locked Moved ASP.NET
databaseasp-netsecuritysaleshelp
4 Posts 3 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.
  • T Offline
    T Offline
    TheJudeDude
    wrote on last edited by
    #1

    I am getting the following error from an ASP Page: System.Data.SqlClient.SqlException: Login failed for user 'AFFORDABLE02\ASPNET' Now, I added AFFORDABLE02\ASPNET as a user to the database, Public...What am I missing? This is the code that is causing the error: dataSet11.Clear(); sqlDataAdapter1.Fill(dataSet11,"Customer"); Using MSDE here is the connection string: workstation id=AFFORDABLE02;packet size=4096;integrated security=SSPI;data source=AFFORDABLE02;persist security info=False;initial catalog=RentToOwn Thanx in advance! Jude

    G D 2 Replies Last reply
    0
    • T TheJudeDude

      I am getting the following error from an ASP Page: System.Data.SqlClient.SqlException: Login failed for user 'AFFORDABLE02\ASPNET' Now, I added AFFORDABLE02\ASPNET as a user to the database, Public...What am I missing? This is the code that is causing the error: dataSet11.Clear(); sqlDataAdapter1.Fill(dataSet11,"Customer"); Using MSDE here is the connection string: workstation id=AFFORDABLE02;packet size=4096;integrated security=SSPI;data source=AFFORDABLE02;persist security info=False;initial catalog=RentToOwn Thanx in advance! Jude

      G Offline
      G Offline
      goyal manish
      wrote on last edited by
      #2

      may be in urs connection string u r missing password.

      1 Reply Last reply
      0
      • T TheJudeDude

        I am getting the following error from an ASP Page: System.Data.SqlClient.SqlException: Login failed for user 'AFFORDABLE02\ASPNET' Now, I added AFFORDABLE02\ASPNET as a user to the database, Public...What am I missing? This is the code that is causing the error: dataSet11.Clear(); sqlDataAdapter1.Fill(dataSet11,"Customer"); Using MSDE here is the connection string: workstation id=AFFORDABLE02;packet size=4096;integrated security=SSPI;data source=AFFORDABLE02;persist security info=False;initial catalog=RentToOwn Thanx in advance! Jude

        D Offline
        D Offline
        Dipan Patel From Gandhinagar
        wrote on last edited by
        #3

        The solution is : U created the New User named "AFFORDABLE02" but u dont give the permission.. so give permission. So if u work on sqlserver then click on "AFFORDABLE02" user then click on "Permission" button and select the tables for select,delete,insert,update... your work is done... Now Enjoy... :) Dipan Patel.

        T 1 Reply Last reply
        0
        • D Dipan Patel From Gandhinagar

          The solution is : U created the New User named "AFFORDABLE02" but u dont give the permission.. so give permission. So if u work on sqlserver then click on "AFFORDABLE02" user then click on "Permission" button and select the tables for select,delete,insert,update... your work is done... Now Enjoy... :) Dipan Patel.

          T Offline
          T Offline
          TheJudeDude
          wrote on last edited by
          #4

          Thanx for the response! I had the Affordable02 as a user but not Affordable02\ASPET...added that one and gave permission! Worked great! While I have some fesh minds...how can you cotrol the size of a data grid?? I have tried setting the height properties, but that doesn't work. The problem is when there are just one or two returns from a select statement, the header and data regions are huge! But when more than 3 row are returned, it is normal size. Thanx in advance Jude

          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