CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    55

    Exclamation database Restore problem

    hi everyone,
    coming to the point directly,
    VB.Net WITH SQL SERVER 2000
    PROBLEM:using SQLDMO reference,i am successdfull in taking database backup USING MY APPLICATION,
    BUT,problem is when i try to restore that backup USING application that is connected to that database,i get error:cannot get exclusive access to the database as its already in use,
    i agree if connection to the database is open.
    but i have closed connection like con.close()
    so what can be the problem??

    i have tried connecting and disconnecting the server,please help me

    i hope i am clear with it,if any confusion,please come up

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: database Restore problem

    It means that something *else* is connected, so that you can't restore it.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jan 2007
    Posts
    55

    Re: database Restore problem

    no nothing else is connected,there isnt anything to be connected except my database connection string,whose connection is already closed

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: database Restore problem

    Try setting it to NOTHING
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured