Forum Replies Created

Viewing 15 posts - 8,041 through 8,055 (of 8,761 total)

  • RE: Regroupement sur interval de date

    Here is a solution entirely based on SQL 2012 window functions, I left it a little long winded to make it easier to follow.

    😎

    USE tempdb;

    GO

    IF OBJECT_ID('tempdb.dbo.sales') IS NOT NULL...

  • RE: SQL Server 2014 is very slow

    Roust_m (6/10/2014)


    Hi,

    Just installed standard editon, put tempdb on SSD and configured buffer pool extension to SSD. Ran some production replay trace. Very slow. Eats a lot of...

  • RE: Problem with generating XML in MS SQL

    Evil Kraig F (6/10/2014)


    Sub,

    What performance concerns are you worried about from the concatonation technique? You should see little to no performance difference for a concatonation technique vs. a more...

  • RE: automatically create insert statements for table data

    SQListic (6/10/2014)


    Hi,

    How to create insert statements of the data from a table for top 'n' rows. I know we can create using generate scripts wizard, but we can't customize the...

  • RE: SQLCMD Query to Disable jobs

    From the top of my head, it would be

    😎

    EXEC dbo.sp_update_job @job_name = N'Job_Name',@enabled = 0

    GO

    From the command line

    sqlcmd -S server -d database -Q "EXEC dbo.sp_update_job @job_name = N'Job_Name',@enabled =...

  • RE: Just curious, what are your SQL pet peeves ?

    TomThomson (6/10/2014)


    Eirikur Eiriksson (6/10/2014)


    Somehow I struggle with accepting the justification for zero division used for projection (Riemann) when it counts for a fraction of a permille in terms of application.

    😎

    a...

  • RE: output identity values

    The Dixie Flatline (6/10/2014)


    That's where we disagree. 🙂

    When I set statistics time,io on for the JOIN solution, it gives the following results:

    Table '#B558B379' Scan count 0, logical...

  • RE: Just curious, what are your SQL pet peeves ?

    below86 (6/10/2014)


    Having a consistent naming convention for fields. I am as guilty as anybody at not doing this, but it is driving me nuts now. Years ago we...

  • RE: Just curious, what are your SQL pet peeves ?

    TomThomson (6/10/2014)


    Koen Verbeeck (6/10/2014)


    What? You are not by default talking about the Riemann sphere? 😀

    As neither SQL nor T-SQL supoprts a complex number type, it's quite clear that the extended...

  • RE: equal (=) comparison of strings

    N_Muller (6/10/2014)


    Is there a limit on the size of the strings on both sides of the '=' sign for string comparison? If I have two varchar(max) strings, will the...

  • RE: XML,CLOB and BLOB datatype

    What have you tried so far?

    😎

  • RE: Problem with generating XML in MS SQL

    subbubally (6/9/2014)


    Hi Eirikur,

    Thanks for your reply, i already tried this solution too, if we go by concatenation, there may be performance in future, that's the reason, i avoided...

  • RE: Problem with generating XML in MS SQL

    You need a little bit of trickery here.

    😎

    USE tempdb;

    GO

    SELECT

    (

    SELECT

    ...

  • RE: Question related to Identity column

    rockstar283 (6/9/2014)


    IMHO, the simplest way is to restore a backup of production over the dev with replace unless the size is an issue. The second bird you hit with this...

  • RE: output identity values

    Thanks for the explanation:-)

    There is not much difference in the actual work though, the matching "old" values must be selected from the existing set, based on which ever matching criteria....

Viewing 15 posts - 8,041 through 8,055 (of 8,761 total)