Forum Replies Created

Viewing 15 posts - 511 through 525 (of 2,462 total)

  • RE: sql procedure

    pallavi.unde (1/14/2013)


    i want to concat row with comma separator and before that need to add one statement which is common ..

    post the sample data with expected output

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Using a View in aa query is slower than using the table directly

    post the definition of all related queries along with view

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Wait_type= Sleep_Task?

    M@hesh (1/13/2013)


    Job is taking much time to execute, when i check the Wait type it shows 'Sleep_Task' and there is no blocking in the server.

    it can, but for better...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: replication issue

    yogesh.bhor (1/14/2013)


    The concurrent snapshot for publication 'Publication_name' is not available because it has not been fully generated or the Log Reader Agent is not running to activate it. If generation...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Torn page issue

    yes, you can try Checkdb and at a side , i will suggest again go through the link which i posted above

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: ORDER BY non-sequential number sequence

    steve 50602 (1/13/2013)


    If I wanted the sort order changeable via the website, then I would definitely use something like CHARINDEX, as it seems a pretty flexible solution. I'd probably just...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Query causing CPU Spikes on SQL Server 2008 r2

    anthony.green (1/14/2013)


    There is remote query timeout setting in SQL but that only takes affect if you are quering a remote server using something like linked servers, there is nothing in...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Torn page issue

    I dont think disk shortage could lead to torn page, it generally happens because of system/disk outage.

    see the link http://jeffprom.wordpress.com/2008/08/22/fixing-torn-page-headers/

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Has to Be a Better Way

    anthony.green (1/11/2013)


    Full text indexing would be an option using the contains clause

    SELECT ..... FROM SomeTable

    WHERE CONTAINS(ColumnName, 'abc or def or ghi ....... ')

    + 1

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Query causing CPU Spikes on SQL Server 2008 r2

    anthony.green (1/14/2013)


    As for the time out, that is set at the connection string, SQL doesnt have a time out setting for local queries, they run until they are told to...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Quertion regarding update when there relationship between two tables

    Vedran Kesegic (1/11/2013)


    I hope it is not your regular procedure, because updating primary key which is by default also a clustered index key, is a very bad idea because of...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SQL Query causing CPU Spikes on SQL Server 2008 r2

    anthony.green (1/14/2013)


    Could you not re-write the app to use connection pooling instead of spawning a new SPID as and when the app needs it?

    A side question , can...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: SELECT vs INSERT INTO

    i think "insert into select " provide better readabilty when we use this approach in "long time used queries/stored proc". we can easily see what are the columns and what...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: CXPACKET wait types...

    Another thing which we can try here is

    ----instead of

    WHERE StatementID IN (SELECT StatementID FROM MyDB_ARCHIVE.dbo.StatementHeader)

    -----test it

    WHERE exists (SELECT 1 FROM MyDB_ARCHIVE.dbo.StatementHeader A where A.StatementID =...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Script to list columnnames

    beyan (1/11/2013)


    I will try to see if i can get the identity columns out.

    for indentity columns , check the column is_identity in sys.columns table , its a bit wise...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 511 through 525 (of 2,462 total)