Forum Replies Created

Viewing 15 posts - 4,156 through 4,170 (of 8,761 total)

  • RE: Copy all data from Database A. to Database B.

    Jeff Moden (12/27/2015)


    C@mel (12/27/2015)I don't want to restore a backup of A. to B.

    I want a script to copy all data from A. to B.

    WHY? To what end? ...

  • RE: Salary vs contract rate?

    Jeff Moden (12/27/2015)


    Eirikur Eiriksson (12/26/2015)


    Jeff Moden (12/26/2015)


    I'm obviously living in the wrong part of the country (although I do have benefits, paid vacations, flexible hours, ability to work from home,...

  • RE: VARBINARY(N) produces error 16911 with sp_cursor cid, 40, 1

    There are several things wrong in this code, none of which have anything to do with the varbinary N or MAX. The most obvious ones are the wrong parameters passed...

  • RE: Datetime2

    patricklambin (12/27/2015)


    Eirikur Eiriksson (12/26/2015)


    The explanation isn't correct, "This determines the storage for the type, but only in varying the storage from 6 to 8 digits of precision." should be "This...

  • RE: Salary vs contract rate?

    Jeff Moden (12/26/2015)


    I'm obviously living in the wrong part of the country (although I do have benefits, paid vacations, flexible hours, ability to work from home, and live close enough...

  • RE: Maintenance Plans are not working as scheduled

    Piling on Jeff's good comment, unless there is a compelling reason I wouldn't suggest this great interval between the full backups, because the fact that the less one has to...

  • RE: Possible to insert unaffected by rollback?

    Here is a quick demonstration of my preferred pattern, more or less the same as Jacob's

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.TBL_TEST_TRAN') IS NOT NULL DROP TABLE dbo.TBL_TEST_TRAN;

    IF OBJECT_ID(N'dbo.TBL_TEST_LOG') IS NOT NULL...

  • RE: Datetime2

    The explanation isn't correct, "This determines the storage for the type, but only in varying the storage from 6 to 8 digits of precision." should be "This determines the storage...

  • RE: Need help on Grouping

    So far so good with the DDL but you are missing the sample data matching the expected results.

    😎

  • RE: Omitting 'DISTINCT'

    sql_only (12/25/2015)


    Is there a better way to code this?

    Yes there is, not only in terms of performance but it's also more legible and maintainable

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID('tempdb..#n') IS NOT...

  • RE: Maintenance Plans are not working as scheduled

    Quick suggestion, remove the maintenance plans and install Ola Hallengren's SQL Server Maintenance Solution[/url].

    😎

  • RE: Fail to retrieve XML

    foxyland.vfp (12/26/2015)


    Hi all,

    First of all, Merry Christmas 🙂

    Merry Christmas to you too.

    What I got is seven rows of all-null record set.

    Can anybody give me a hint where I did wrong?...

  • RE: The Most Common Query Blunders...

    100% agreeing with Gail on this one.

    😎

    Piling on a bit

    Most wanted (preferably dead) sql code objects and anti patterns:

    1. Multi statement multi function table value functions

    These functions tend to...

  • RE: PowerView... is it just me?

    pietlinden (12/25/2015)


    Was it removed in 2016? I didn't really ever use it much... just never had a reason to.

    That said, anybody know what MS's plans are with reporting? It...

  • RE: Comma separated values

    Quick solution

    😎CREATE TABLE #DeploymentPlan

    (

    WorkFlow VARCHAR(100)

    ,Deliverable ...

Viewing 15 posts - 4,156 through 4,170 (of 8,761 total)