Forum Replies Created

Viewing 15 posts - 2,176 through 2,190 (of 2,462 total)

  • RE: automatically restore recent backups

    jsb12

    can you please tell me exactly , at what time full backup is taken and what time log backup

    and also at what time you are planning to restore...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: automatically restore recent backups

    jsb12 (2/15/2010)[/b

    The problem is that if the copy job that copies from other server fails, older backup might be applied.

    Well i dont think it will restore wrong backup if copy...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Server Agent Job failing while scheduleing LInked server SP

    Goto properties of job >> general tab>> select owner = 'Sa' or the login you want to select

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Server Agent Job failing while scheduleing LInked server SP

    Do one thing , open job ( right click and open) and set owner's_name = login which you are using for executing that Sp in mgmt studio , if it...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: MSDB Job History Tables

    If this happens, put a ID int identity column and set composite key on job_id and ID.

    then you can go for Clus. Index

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Indexed Views on Sql 2005

    there are two things :

    first since you have composite key , it means you can have clustered index on it

    and second thing i guess , we can...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: problem with DDL trigger and execute as

    RBarryYoung (2/9/2010)


    You will need to set the source database to TRUSTWORTHY. Note that doing so has security implications.

    HOw to set this setting ?

    if i set this user with...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: How to create a view dynamically thru a procedure

    DECLARE @sql varchar(max), @Database1 varchar(300)

    set @Database1 = 'tempdb'

    SET @sql='

    USE '+@Database1+';

    IF EXISTS (SELECT 1 FROM SYS.VIEWS WHERE NAME =''test_view'')

    BEGIN

    DROP VIEW test_view

    PRINT ''VIEW EXISTS''

    END'

    PRINT @sql

    --EXEC(@sql)

    SET @sql=''

    SET @sql='USE '+@Database1+'

    ;

    CREATE VIEW test_view

    AS

    BEGIN

    SELECT...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Drop Consatraint

    this will give you all constraint in particular database.

    select * from sys.objects where type_desc like '%_CONSTRAINT'

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Need one trick for sorting !!!!!!!!!

    that is written in a historical stored proc and i have used the apporach u told me

    but can i do it without using temptabl/table variable ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Why it is failing ?????????

    Good catch , i also recovered the issue. but did u get any sign that this script contains

    junk character before copying it to MS-word/notepad.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Why it is failing ?????????

    Msg 102, Level 15, State 1, Line 21

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 68

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Line 73

    Incorrect syntax near...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: how to take the backup of the datbase excluding some tables.

    on simple note , i can tell u that whenver we create any clustered index on any table . the table will be moved to filegroup mentioned with that index...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Query Column Dynamic Alias Name Issue

    I hope this will work for u

    select + 'YEAR' + CAST (year(DATEADD(year,-1,getdate())) AS VARCHAR(20))

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: HOw to script out all the jobs from one instance

    thanks . it worked for me 🙂

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 2,176 through 2,190 (of 2,462 total)