Forum Replies Created

Viewing 15 posts - 736 through 750 (of 5,841 total)

  • RE: Effort to configure Logshipping/Mirroring/Replication/Always on

    Benki Chendu (9/22/2016)


    Hi All,

    I was asked this question by one of my customer.

    He wanted me to give him a rough idea about the effort to configure Logshipping/Mirroring/Replication/Always on ,...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Is there a better faster way then REPLACE in this example?

    Very slick Sergiy!! An elegant yet exceedingly simple solution to this need.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Strange Blocking

    What was the ACTUAL blocked resource? Are you absolutely certain it was blocking and not latch contention or something else?

    I like sp_whoisactive to see lots of details about such things....

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Is there a better faster way then REPLACE in this example?

    ghughes (9/21/2016)


    this is what I can do. I can write some sql, that will produce some tsql alter statement to a function that is driven by the bad...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Is there a better faster way then REPLACE in this example?

    Nicely done Luis. I completely missed that in nesting the REPLACEs you can make them operate in the order you want and thus could wrap this up in the desired...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Is there a better faster way then REPLACE in this example?

    1) You can probably save some CPU ticks if you nest REPLACEs up to whatever level they can be nested instead of doing that many separate SET statements. This savings...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: DBCC TRACEON (4199) affects all databases in a server

    If you really want trace flag 4199 to apply to just one database you are limited to modifying every query in said database you want it applied to and apply...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Group Concatenate Strings?

    Just found out while doing research that some other RDBMS' have this functionality built in!

    Also, Adam Machanic suggested a CLR UDA, and I found such on codeplex

    https://groupconcat.codeplex.com

    Not sure I can...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Group Concatenate Strings?

    Those are both rather gross (especially yours Eddie!!), but they do seem to give the right answer at least. Given I will have N columns and M rows I don't...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: need to extract text from given string

    komal145 (9/19/2016)


    Given string I need to get two values :

    example 1 string : Day20ReminderCampaign2016_09_15_13:46:57

    needed :

    1) Day20ReminderCampaign

    2 ) 20160915 13:46:57

    example 2 string Day3ReminderCampaign2016_09_19_02:28:39

    needed :

    1) Day3ReminderCampaign

    2 ) 20160919 02:28:39

    Please...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: PLE

    andrew gothard (9/16/2016)


    TheSQLGuru (9/16/2016)


    I honestly haven't used PLE as a metric in probably a decade. Avg disk sec/read and avg disk sec/write are WAY more appropriate IMHO.

    While obviously not expecting...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Shrinking a large DB

    Grant already addressed the data distribution/development stuff.

    I would think there is the potential for iterative shrinks to actually take a lot longer. Shrink works by moving pages and I don't...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: PLE

    I honestly haven't used PLE as a metric in probably a decade. Avg disk sec/read and avg disk sec/write are WAY more appropriate IMHO.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Shrinking a large DB

    I will disagree with others about reducing the data being a good thing. Obfuscation sure, but ONLY where REQUIRED.

    The OP stated this database was to be promulgated to developers so...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Shrinking a large DB

    Jeff Moden (9/15/2016)


    TheSQLGuru (9/15/2016)


    I don't think you need to shrink it to share it with a bunch of developers efficiently. Go get a copy of Redgate's SQL Clone.

    http://www.red-gate.com/products/dba/sql-clone/

    https://www.simple-talk.com/sql/sql-tools/clone-sweet-clone-database-provisioning-made-easy/

    Tell Richard...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 736 through 750 (of 5,841 total)