Forum Replies Created

Viewing 15 posts - 76 through 90 (of 149 total)

  • RE: Automated Database Restore script for Reporting DB

    --Drop previous reporting database

    ----------------------------------------------------------

    PRINT 'Check if DB exists if so drop'

    GO

    IF EXISTS(SELECT * FROM SYS.DATABASES WHERE NAME='ReportDB')

    BEGIN

    --Remove any connections

    ALTER DATABASE ReportDB

    SET SINGLE_USER WITH

    ROLLBACK IMMEDIATE

    --Drop DB

    DROP DATABASE ReportDB

    END

    GO

    setting db in single...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: How to create a batch file for executing any sql command

    In command prompt type

    SQLCMD/?

    It will show various options,which will help you to create batch file .

    if you want to execute test.sql trough batch file , you can use

    SQLCMD -Sservername...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: sp_send_dbmail error : Attachment file ***** is invalid

    Casper101 (11/14/2012)


    When I try to send and Attachment (@file_attachments ) with sp_send_dbmail, I receive this error:

    "Attachment file ***** is invalid"

    The file does exist and the SQL login is sysadmin.

    The file...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Unable to Rebuild or Reorganize an Index

    rummings (11/12/2012)


    I was hoping to rebuild all indexes on one of our SQL Server 2008 databases over the weekend. The database is used on our campus to record data from...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Fantasy football 2012

    Happy Diwali to all and have a great Year ahead 🙂

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Release unused space in the mdf file

    dsanchez-630020 (11/9/2012)


    Is there away without shrinking the database to get back the space when we delete big files in our database?

    did you try rebuilding your indexes ?

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: changing my domain to SQL SERVER

    there are so many similar posts like this , where some experts put there opinions, you can check there

    http://www.sqlservercentral.com/Forums/Topic1361075-391-1.aspx

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Ideal Shrink Size

    Rebuilding clustered indexes can free up unused space.

    But as you provide default value 20 GB to data file , it will not fall below 20 GB.

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: changing my domain to SQL SERVER

    You mean T-SQL developer or DBA ?

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Count no of 100's and 50's in a runs column

    Post DDL before CELKO come 😀

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: SQL Server 2005

    do you have copy of mssqlresource database files before the installation of service pack .

    if you are lucky and you have copy of these db files , you can...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Copy Some Table data from production

    You can use import export wizard .

    and wherever you need data for specific date and dept ,use query in the import wizard

    select * from yourtable where date ='date...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Nanoseconds

    Koen Verbeeck (11/8/2012)


    sanket kokane (11/7/2012)


    I got it wrong ...

    you should mention sql server Version in question .

    Sysdatetime () not present in sql 2000 and 2005

    So, for which versions do you...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Problems Shrinking Log File

    McSQL (11/8/2012)


    Ah apologies, yes you're right, you would have to set RECOVERY to SIMPLE and then run the shrink commands in SQL 2008.

    Forgot that this was a discountinued command in...

    -----------------------------------------------------------------------------
    संकेत कोकणे

  • RE: Query Help

    Eugene Elutin (11/8/2012)


    sanket kokane (11/7/2012)


    I'm testing on some part of the application .

    My Table structure is like

    create table test (id char (8))

    I want , whenever user insert value ,lets...

    -----------------------------------------------------------------------------
    संकेत कोकणे

Viewing 15 posts - 76 through 90 (of 149 total)