Connection String Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scadhasini
    New Member
    • Dec 2006
    • 21

    Connection String Problem

    HI

    I am working with DotNetNuke 4th version.i am using VS2005.Data is storing in .mdf file.i am using server explorer for database operations.but if my server explorer is open and if i try to run apllication its giving following error

    "ERROR: Could not connect to database specified in connectionStrin g for SqlDataProvider "

    for this every time i am closing connection and closing server explorer window.
    then only its working.

    same way if apllication is running and i try to open the server explorer its giving error.
  • supunf
    New Member
    • Dec 2006
    • 6

    #2
    try to connect to the database by writing the connection string in code (may be in app.config file or web.config)

    sample

    connectionStrin g="Persist Security Info=False;Inte grated Security=SSPI;d atabase=NotesMa nager;server=(l ocal);user id = sa;pwd = Password";

    rgds

    Supun

    Comment

    • Scadhasini
      New Member
      • Dec 2006
      • 21

      #3
      Originally posted by supunf
      try to connect to the database by writing the connection string in code (may be in app.config file or web.config)

      sample

      connectionStrin g="Persist Security Info=False;Inte grated Security=SSPI;d atabase=NotesMa nager;server=(l ocal);user id = sa;pwd = Password";

      rgds

      Supun
      I am giving same way,if apllication is running if i try to open the the server explorer its giving folowing error
      " Could not locate entry in sysdatabases for database"check name correctly.

      Comment

      • Scadhasini
        New Member
        • Dec 2006
        • 21

        #4
        Originally posted by Scadhasini
        I am giving same way,if apllication is running if i try to open the the server explorer its giving folowing error
        " Could not locate entry in sysdatabases for database"check name correctly.

        Thanks ...
        I solved my prob..........

        Comment

        Working...