Results 1 to 4 of 4

Thread: Back SQL SERVER 2000 thru VB 6`

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    19

    Back SQL SERVER 2000 thru VB 6`

    How to backup Sql server 2000 MDF as well as LDF file from VB6.0. I expect a query for that since it is the only way to copy the said files with out stopping sql server service.

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Back SQL SERVER 2000 thru VB 6`

    Welcome to the forum!

    There are many threads that talk about this - search for BACKUP FUNDS and you will find dozens.

    I just did that and copy/pasted this post from another thread...

    This thread has some great info:

    http://www.vbforums.com/showthread.p...t=backup+funds

    Basically, this is the T-SQL BACKUP command syntax:

    Code:
    BACKUP DATABASE Funds 
       TO DISK = 'c:\Funds_copy.bak'
    The above thread talks about putting that into a STORED PROCEDURE and have the destination be a variable.

    You can also setup regular backup's through ENTERPRISE MANAGER under the DATABASE MAINTENANCE PLAN wizard.

    The perfect thing about a BACKUP is that it can be done with users in the database and it properly handles taking the DATA and LOG portions in a fashion that allows proper RESTORE

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    19

    Re: Back SQL SERVER 2000 thru VB 6`

    Dear friend,, I think u didn't get my question... I have seen many posts regardin this..


    I want to copy the "MDF" as well as "LDF" files with out shutting down the sql server.. and not the .bak file....


    Hope u can help me... thanks in advance

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Back SQL SERVER 2000 thru VB 6`

    Quote Originally Posted by manuadoor
    Dear friend,, I think u didn't get my question... I have seen many posts regardin this..


    I want to copy the "MDF" as well as "LDF" files with out shutting down the sql server.. and not the .bak file....


    Hope u can help me... thanks in advance
    You cannot copy the MDF and LDF files without shutting down the server or detaching the database.

    SQL server has these files open with data streams being manipulated at all times between them.

    Why do you want to do something like this???

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

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