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. how to run database page in IIS

how to run database page in IIS

Scheduled Pinned Locked Moved ASP.NET
asp-netdatabasewindows-admintutorialquestion
7 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.
  • H Offline
    H Offline
    hotthoughtguy
    wrote on last edited by
    #1

    when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?

    T N 2 Replies Last reply
    0
    • H hotthoughtguy

      when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      Don't use integrated security and specify a username and password in your connection string.

      H 1 Reply Last reply
      0
      • T T M Gray

        Don't use integrated security and specify a username and password in your connection string.

        H Offline
        H Offline
        hotthoughtguy
        wrote on last edited by
        #3

        string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase"; hv i to use this string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";

        T 1 Reply Last reply
        0
        • H hotthoughtguy

          string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase"; hv i to use this string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          hotthoughtguy wrote:

          string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";

          Something like that. I think it is user id instead of username, and of course no quotes around the values. For a good reference see http://www.connectionstrings.com/[^]

          1 Reply Last reply
          0
          • H hotthoughtguy

            when i m accessing database from my Default.aspx page exception raises i:e Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'. any idea how to solve this?

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            It is bad manners to post the same question to multiple forums


            I know the language. I've read a book. - _Madmatt

            H 1 Reply Last reply
            0
            • N Not Active

              It is bad manners to post the same question to multiple forums


              I know the language. I've read a book. - _Madmatt

              H Offline
              H Offline
              hotthoughtguy
              wrote on last edited by
              #6

              altight.. sorry

              H 1 Reply Last reply
              0
              • H hotthoughtguy

                altight.. sorry

                H Offline
                H Offline
                hotthoughtguy
                wrote on last edited by
                #7

                well thanks for that link

                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