Forum Replies Created

Viewing 15 posts - 106 through 120 (of 306 total)

  • RE: Command to know the Name of the database of a backup file

    ohhh... ok thanks.. i guess my backup script will be stuck in the mssql format (dbname_db_YYYYDDMMHHMM.BAK) 🙂

  • RE: Tally Table

    Jeff Moden (5/4/2008)


    Gosh, I sure hope so, Lester. Thank you for the confidence. I look at some of the articles I've written and say to myself, "Everyone probably...

  • RE: Tally Table

    Jeff Moden (5/3/2008)


    Nicely done, Matt! I guess my only exception to what you said is that I use it to "replace loops" all the time. Although.... I'll agree...

  • RE: Restoring multiple databases thru script

    Sorry to say angelin as of now the script only restores 1 mdf and 1 ldf if i have time i will try to modify the script to include multiple...

  • RE: Restoring multiple databases thru script

    If the format of your backup file is the same with the MSSQL 2000 format e.g. dbName_db_YYYYMMDDHHMM.BAK maybe this will help

    http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/31995/

  • RE: Database Refresh

    If network is not a problem it can be done but sometimes backing up direclty to another server/pc may result to a corrupt backup file. So what you can do...

  • RE: DTS to an excel spreadsheet

    YOu can use the openrowset property to export data from sql to excel (key in OPENROWSET in BOL) as for the format you can use a cursor (not recommended) because...

  • RE: XP_SQL2EXCHANGE Without Outlook MAPI?

    In Outlook you can create a distribution list somewhat like group mail where in you will create a group then populate it with email addresses so that you will only...

  • RE: DTS export with dynamic filename..?

    You can use sql "OPENROWSET" that is what im using and i can easily generate an excel file (report) with dynamic name on it example lester_yyyymmdd.xls try reading this good...

  • RE: BCP and remote paths

    if what you are talking is if you can bcp a table storing in a text file and save to another location in the network, yes it can be done...

  • RE: check file created monthly

    Almost forgot some points to consider

    1. Where will the created report be placed??

    2. Does it have (the place where the report will be dump) a sql server install in...

  • RE: check file created monthly

    Example :

    exec master..xp_cmdshell 'dir /od C:\*.xls'

    This will search all file with xls(excel) extension. you can insert the output to a table

    example :

    insert into tablw_name

    exec master..xp_cmdshell 'dir /od C:\*.xls'

    From here you...

  • RE: check file created monthly

    If the filename is static and only the date is changing example : Lester_20080327.xls then you cna use xp_cmdshell to locate the filename in a specified location then use xp_sendmail...

  • RE: OPENROWSET(INSERT) ERROR COLUMNS NAMES

    Are you sure the numbers of columns in the excel file is equal to the number of columns in your '*'? select * from table1? please check...

  • RE: Database exclusions in backup

    The best way (for now since you will buy a third party backup application) is to script your backup procedure. Just exclude those databases that do not need backups. In...

Viewing 15 posts - 106 through 120 (of 306 total)