Forum Replies Created

Viewing 15 posts - 151 through 165 (of 243 total)

  • RE: backup newly created database automatically

    Yes u get error, but backup id done..

    u can see the backup and database is also created..

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Database Mirroring or Log shipping on different server

    If i choose Clustering, which should preferable Active /Active or Active/Passive?

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: what is difference between restore and recovery?

    Restore is process ro any database backup to existing database or create a new database.

    and

    Recovery is the process to take database online and suppose u restore first full backup...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Database Mirroring or Log shipping on different server

    Can you please explain me the difference between Active/Active clustering and Active/Passive clustering.

    I am very confuse.

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Missing Indexes

    SELECT object_name(object_id), d.*, s.*

    FROM sys.dm_db_missing_index_details d

    INNER JOIN sys.dm_db_missing_index_groups g

    ON d.index_handle = g.index_handle

    INNER JOIN sys.dm_db_missing_index_group_stats s

    ON g.index_group_handle = s.group_handle

    WHERE database_id = db_id()

    ORDER BY object_id

    This script help u...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: data refresh

    You can setup Replication ,Mirroring or Log Shipping in this case.

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: No.Of users per second exceding

    You can set no of maximum user from configuration.

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Database mail

    SP_CONFIGURE 'Database Mail XPs',1

    GO

    RECONFIGURE

    GO

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: backup newly created database automatically

    THIS WORK BEST :

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE trigger [BACKUP_NEWDB]

    on ALL server

    for CREATE_DATABASE

    as

    begin

    COMMIT TRANSACTION

    DECLARE @NEWDB VARCHAR(500)

    DECLARE @BACKUPSQL...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: backup newly created database automatically

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE trigger [BACKUP_NEWDB]

    on ALL server

    for CREATE_DATABASE

    as

    begin

    DECLARE @NEWDB VARCHAR(500)

    DECLARE @BACKUPSQL NVARCHAR(500)

    SET @NEWDB = (SELECT TOP 1 NAME FROM...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Listing table names and columns in a database

    select table_name, column_name

    from information_schema.columns

    order by table_name

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: One big issue with xp_cmdshell command to create text file

    Sorry @filecontent is not displayed, bec it contains open tag ' '

    so, can u tell me, how can i write ' ' in file ?

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: Logins

    U can make DDL trigger to trackout DML changes from user.

    and make DDL trigger to trackout DDL Trigger for structure change.

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: view a running trace

    U can not reconnect it, but u can find it and stop it

    select * from fn_trace_getinfo(0)

    u can find traceid and to stop run below:

    sp_trace_setstatus [ @traceid = ] trace_id ,...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

  • RE: How to identify which table causes Blocking locks?

    For that u have to run query

    select * from sys.sysprocesses

    when u run the qury, u will be find waitresources, it will be like 12:12344:778

    From that u have to analize...

    _____________________________________________________________________________________________________________
    Paresh Prajapati
    ➡ +919924626601
    http://paresh-sqldba.blogspot.com/[/url]
    LinkedIn | Tweet Me | FaceBook | Brijj

Viewing 15 posts - 151 through 165 (of 243 total)