Forum Replies Created

Viewing 15 posts - 8,026 through 8,040 (of 8,753 total)

  • RE: Covering Index Issue

    itsgaurav (6/11/2014)


    I Create an Index Like

    Create Nonclustered Index In_product_pdid

    ON Product(pd_id)

    INCLUDE pd_desp; <- Include product description column with Index

    GO

    My Question is in 60% query i need pd_desp...

  • RE: Developers vs. DBAs

    Thanks Jim, a worthy subject, although somewhat simplified. Often it tends to be not only two sides but four or five, including database developers, business analysts and solution-, database- and...

  • RE: Do @@Identity And Scope_Identity Always Return The Record Just Added?

    It is safer to use the IDENT_CURRENT function as it "returns the last identity value generated for a specific table in any session and any scope."

    😎

  • RE: Counting the characters in a string before a space

    You can use the DelimitedSplit8K [/url] for this.

    😎

  • RE: Would like some feedback on contractors as employers

    J Livingston SQL (6/11/2014)


    In a similar vein .....

    what's the current UK market like?

    As for the UK market goes, the demand is there but the remuneration isn't brilliant, especially in the...

  • RE: output identity values

    Sean Lange (6/11/2014)


    Eirikur Eiriksson (6/11/2014)


    Grin aside, the last comment is uncalled for, it will not earn you any respect.

    I don't think Joe is all that worried about earning respect. Might...

  • RE: output identity values

    CELKO (6/11/2014)


    What you posted is not tables at all! No keys, no DRI and very poor design.

    The proprietary, non-relational IDENTITY is a table property and not a column (but...

  • 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...

Viewing 15 posts - 8,026 through 8,040 (of 8,753 total)