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. aspnetdb

aspnetdb

Scheduled Pinned Locked Moved ASP.NET
database
5 Posts 4 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.
  • Y Offline
    Y Offline
    y_mmohd
    wrote on last edited by
    #1

    When I change the aspnetdb.mdf to XXXYYY.mdf in the app_data and in the web.config and try to connect using a user name and pass word I can’t access. What should I do to rename the aspnetdb.mdf database and can access secure locations. Thanks thanks

    E A A 3 Replies Last reply
    0
    • Y y_mmohd

      When I change the aspnetdb.mdf to XXXYYY.mdf in the app_data and in the web.config and try to connect using a user name and pass word I can’t access. What should I do to rename the aspnetdb.mdf database and can access secure locations. Thanks thanks

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Is this the database you use for the membership roles etc. You will need to find out where the orignal connection string is and change this if its possible. Personally Ive never tried.

      Deliver yesterday, code today, think tomorrow. "http://www.heuse.com/cphumor.htm"

      1 Reply Last reply
      0
      • Y y_mmohd

        When I change the aspnetdb.mdf to XXXYYY.mdf in the app_data and in the web.config and try to connect using a user name and pass word I can’t access. What should I do to rename the aspnetdb.mdf database and can access secure locations. Thanks thanks

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        did you check the connection string ?

        cheers, Abhijit Read My Latest Article : Exploring Caching In Asp.net

        1 Reply Last reply
        0
        • Y y_mmohd

          When I change the aspnetdb.mdf to XXXYYY.mdf in the app_data and in the web.config and try to connect using a user name and pass word I can’t access. What should I do to rename the aspnetdb.mdf database and can access secure locations. Thanks thanks

          A Offline
          A Offline
          AlexeiXX3
          wrote on last edited by
          #4

          Add this to your web config

          <connectionStrings>
          <clear />
          <add name="LocalSqlServer" connectionString="your connection string"
          providerName="System.Data.SqlClient" />
          </connectionStrings>

          Notice that name=LocalSqlServer, it must be left with that name if you want to use the membership provider with default values

          Alexei Rodriguez

          Y 1 Reply Last reply
          0
          • A AlexeiXX3

            Add this to your web config

            <connectionStrings>
            <clear />
            <add name="LocalSqlServer" connectionString="your connection string"
            providerName="System.Data.SqlClient" />
            </connectionStrings>

            Notice that name=LocalSqlServer, it must be left with that name if you want to use the membership provider with default values

            Alexei Rodriguez

            Y Offline
            Y Offline
            y_mmohd
            wrote on last edited by
            #5

            thanks for help, the code in the web.config is providerName="System.Data.SqlClient" /> i need to host this site.so i need to change aspnetdb.mdf to other name. what is the best solution for this problem

            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