Forum Replies Created

Viewing 15 posts - 166 through 180 (of 492 total)

  • RE: tempdb file deleted

    Tara-1044200 (1/5/2012)


    here is how i laied out.

    tempdev1D:\DATA\tempdb.mdfPRIMARY1073741824 KB1073741824 KB10%data only

    templog2D:\LOG\templog.ldfNULL512 KBUnlimited10%log only

    tempdb23F:\DATA\tempdb2.ndfPRIMARY3072 KBUnlimited1024 KBdata only

    tempdb34E:\DATA\tempdb3.ndfPRIMARY3072 KBUnlimited1024 KBdata only

    and the D drive also has 450gb od space for OS paging

    If...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Value of reverse replication

    I've worked with this sort of scenario before and it can be worth while setting this up.

    In the event of a planned failover, e.g. for maintenance, where you need to...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: how different could it be joining a #temp_table Vs @table_variable?

    Also, it is commonly believed that one can't create an index on a table variable, however, this can be achieved by declaring a primary key like in the example below....

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: how different could it be joining a #temp_table Vs @table_variable?

    I may be wrong as I can't see your data, but it looks like this portion of your code always returns one row:

    If @RId is not null and @ADt...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: How to verify SA password is not blank

    SKYBVI (11/17/2011)


    @leo-2 & mark

    The script provided by you not working.

    Can you confirm it is working on your side?

    Regards,

    SKYBVI

    This only works on SQL 2005 up. I've tested it and I know...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: How to verify SA password is not blank

    The OR line has an extra parameter. Note the extra ,1 in the brackets.

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: How to verify SA password is not blank

    You need to use the PWDCOMPARE function:

    Reat this article: http://msdn.microsoft.com/en-us/library/dd822792.aspx

    Use it like this,

    SELECT name FROM sys.sql_logins

    WHERE PWDCOMPARE('', password_hash) = 1

    OR PWDCOMPARE('', password_hash, 1) = 1 ;

    Cheers

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: 140GB database file getting too big for disk

    Consider just adding another file on a new drive and letting the data flow over into that. Then restrict growth on the original .mdf to it's current size.

    Another option is...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: SQL Agent History MAX Rows is reset to defaults

    The problem has been resolve. There was a SQL Monitoring System patch release that changed the settings.

    Cheers

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: SQL Agent History MAX Rows is reset to defaults

    If these aren't the defaults, then I suspect they may be maximums, particulalry the 250000 value. The strange thing is I have another client and every one of their servers...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Inception Dates

    This will give you a script you can run against each database. It will return you the min date as the first column and the table and column names as...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: Need to Transfer the data from a table from one instance to few other instances in a same domain

    Consider using BCP out to create a file on file server that all the other instances can see, then use BCP in from each of the instances that need the...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: All the jobs dependent on a database

    This will list all the jobs and their databases assuming the developer was disiplined enough to set the correct database on each job step, and didn't use the database name...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: litespeed bkup n restore...refresh database prod to dev

    I've also got the attached document. I set it up about 2 years ago, but I can't imagine it's changed much.

    Cheers

    Leo

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

  • RE: litespeed bkup n restore...refresh database prod to dev

    I have this in my notes

    EXEC master.dbo.xp_backup_database

    @database = 'MyDB'

    , @filename = '\\MyServer\g$\backup\daily\MyDB.bkl'

    AND

    EXEC master.dbo.xp_restore_database

    @database = 'MyDB',

    @filename = '\\MyServer\g$\backup\daily\MyDB.bkl',

    @with = 'move "MyDB_data" to "g:\data\MyDB.mdf"',

    @with =...

    Leo
    Nothing in life is ever so complicated that with a little work it can't be made more complicated.

Viewing 15 posts - 166 through 180 (of 492 total)