Forum Replies Created

Viewing 15 posts - 1 through 15 (of 86 total)

  • RE: how to fetch records which throws error?

    pietlinden (2/27/2015)


    Some days, it helps if you think before typing...

    you could do it in batches and use a TRY CATCH block for the failure, and write the failed group of...

  • RE: List the Objects referenced outside of the db

    Eirikur Eiriksson (2/23/2015)


    Quick suggestion, use the sys.sql_expression_dependencies system view

    😎

    SELECT

    SD.*

    FROM sys.sql_expression_dependencies SD

    WHERE SD.referenced_database_name IS NOT NULL

    ;

    Great.. works fine

  • RE: How to find most used column in every table

    GilaMonster (2/4/2015)


    No, and most used does not mean that it must be indexed. Indexing is a little more complex than that.

    See the entries on my blog in the indexing category.

    Ok....

  • RE: How to schedule transaction replication in sql server

    Andrew G (1/21/2015)


    You should probably either run the log reader continuously or frequently and then set the distribution agent to 24 hours, if your aim is to have a replicated...

  • RE: Index Seek not happening

    ScottPletcher (12/4/2014)


    If you (almost) always do lookups on the table based on "businessid", then cluster the table on businessid. If you need to keep the PK, make the PK...

  • RE: Is there any chance to rearrange the execution plan manually?

    SELECT N.NeedId,N.NeedName,N.ProviderName

    FROM dbo.Need N

    JOIN dbo.NeedCategory NC

    ON...

  • RE: How Update works for unique values?

    Thanks for the info.. its really strong informative..

  • RE: Adding certain Rows specific

    kriskumark96 (11/25/2014)


    Hi All,

    I got a table where i need to add certain rows and minus the valu with a row can any one help in this regard.

    I am attaching a...

  • RE: Need Solution

    Hope this will help,

    I just used self join for these kind of approaches.

    with cte as

    (

    selecta.seq as a_seq,a.Name a_name,a.Purchased_date as a_Purchased_date,

    b.seq as b_seq,b.Name b_name,b.Purchased_date as b_Purchased_date

    from#Temp_data...

  • RE: DML operations vs data compression

    Koen Verbeeck (9/29/2014)


    To enable compression on a table or index, it needs to be rebuild.

    This can be done with ALTER TABLE or ALTER INDEX.

    More info:

    Enable Compression on a Table or...

  • RE: Help to drill down the query

    Sean Lange (7/31/2014)


    What part(s) don't you understand?

    the join part.. how it iterates all the data

    FROMEmployee e

    INNER JOINDirectReports d

    ...

  • RE: How this works?

    ChrisM@Work (7/24/2014)


    -- make a table with two rows, two columns

    DECLARE @t TABLE( ID INT IDENTITY, data VARCHAR(20))

    INSERT INTO @t(data) SELECT 'Jacob'

    INSERT INTO @t(data) SELECT 'Sebastian'

    SELECT * FROM @t

    GO

    ----------------------------------------------------------------------------------------------------

    DECLARE @t...

  • RE: How this works?

    Luis Cazares (7/24/2014)


    I hope that you're using that code for learning purposes only and not instead of REVERSE() function.

    yes of course

  • RE: Ideas for Huge Update using SSIS

    Jack Corbett (6/10/2014)


    First you have to define what you mean by fast.

    .

    If I use my query runs about 3 to 4 hrs

    I wanted to minimize the time...

  • RE: Need Query for calculation total

    yuvipoy (5/20/2014)


    The pic is not clear can u tell in select statement

    like 1+4 and so on....

    since id 1 is not clear.

    for 2 it is like ?

    Select 1+4=5

    Select 4+2=6

    Select 2+4=6

    Select...

Viewing 15 posts - 1 through 15 (of 86 total)