Forum Replies Created

Viewing 15 posts - 5,986 through 6,000 (of 19,560 total)

  • RE: Diff backup fails because no full made

    Here is a rewrite of the script to support that.

    DECLARE @DatabaseName VARCHAR(128) = 'TrainingDB'

    SELECT *

    FROM msdb.dbo.backupset a

    LEFT OUTER JOIN msdb.dbo.restorehistory rh

    ON a.backup_set_id = rh.backup_set_id

    WHERE database_name = @DatabaseName

    AND [type] = 'D'

    AND...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: xp_dirtree unable to see files in the local file server

    What's the service account for sqlserver?

    This can sometimes have an effect on the output of xp_dirtree.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Woohoo MCTS passed

    congrats

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: SSMS maxing out memory

    Is it the ssms process or is it SQL server that keeps doing that?

    32 bit or 64 bit?

    does it happen when executing code or just with ssms open?

    Does the same...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Today's Random Word!

    jasona.work (7/11/2012)


    EL Jerry (7/11/2012)


    SQLRNNR (7/11/2012)


    exploding grapes

    Exploding Gremlins

    "El" Jerry.

    Mogwai

    Gizmo

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: TSQL for result DB name, Size and Recovery model

    Lynn Pettis (7/11/2012)


    You keep asking the same question. There are two system views that will help you: sys.databases and sys.master_files. Look up these views in Books Online and...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: TSQL for result DB name, Size and Recovery model

    Here's a starting point for you

    Select *

    From sys.databases

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Diff backup fails because no full made

    Try something like this:

    DECLARE @DatabaseName VARCHAR(128) = 'TrainingDB'

    SELECT *

    FROM msdb.dbo.backupset a

    WHERE database_name = @DatabaseName

    AND [type] = 'D'

    AND server_name = @@servername

    AND NOT EXISTS (SELECT *

    FROM msdb.dbo.backupset a

    WHERE database_name = @DatabaseName

    AND fork_point_lsn...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: String Length

    thanks for the question.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Today's Random Word!

    Ray K (7/11/2012)


    capn.hector (7/11/2012)


    rhythmk (7/10/2012)


    capn.hector (7/10/2012)


    jasona.work (7/10/2012)


    SQLRNNR (7/10/2012)


    Cliff Jones (7/10/2012)


    crookj (7/10/2012)


    Daniel Bowlin (7/10/2012)


    rhythmk (7/9/2012)


    Possinator (7/9/2012)


    SQLRNNR (7/9/2012)


    Cliff Jones (7/9/2012)


    Ray K (7/9/2012)


    Revenant (7/9/2012)


    rhythmk (7/9/2012)


    Brandie Tarvin (7/9/2012)


    Daniel Bowlin (7/9/2012)


    Heatwave

    Heatstroke

    Engine

    Piston

    V6

    V8

    HEMI

    Barracuda

    Fearsome

    Foursome

    Quartette

    Beatles!

    Monkees

    MonkeeMobile!

    wiener mobile

    Hot Dog

    Microwave

    Amana

    exploding grapes

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Searching Database for spesific column in all tables

    You're welcome.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Urgent help needed, Max Growth by DB

    CREATE TABLE #FileProp (dbid INT,FILE_ID INT, SpaceUsed DECIMAL(14,2));

    GO

    EXECUTE sp_msforeachdb 'USE ?; Insert Into #FileProp (dbid,FILE_ID,SpaceUsed)

    SELECT database_id,file_id,FILEPROPERTY(name,''SpaceUsed'') from sys.master_files where DB_NAME(database_id) = ''?'''

    SELECT DB_NAME(database_id) AS DBName,physical_name,CONVERT(DECIMAL(14,2),size)/128 AS FileSize, growth

    ,CONVERT(DECIMAL(14,2),max_size)/128 AS...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: !HELP! T- SQL Script which displays DataName, Physical_location, DataSize, DBGgrowth, DB Max, Available Free Space Data LogSize, LogGrowth, Log Max...

    Please post responses to this thread:

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

    We do not want to get the answers fragmented.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Urgent help needed, Max Growth by DB

    Post the query that you decided to settle on adapting for your needs. I am assuming that you followed recommendation and actually made changes to queries to adapt rather...

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • RE: Monitoring tool

    Confio Ignite is an excellent tool. IMHO - best tool out there for monitoring wait stats.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 15 posts - 5,986 through 6,000 (of 19,560 total)