Forum Replies Created

Viewing 15 posts - 1,456 through 1,470 (of 2,462 total)

  • RE: Primary Key creation - before and after bulk insert

    Arjun Sivadasan (8/13/2010)

    1. Do I create PK before or after the insert (or if it depends, what are the factors)?

    well it depends , sorting willbe done in either of...

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

  • RE: Rebuild on NONclustered Index

    appple (8/11/2010)


    I done Rebuild On Non clustered Index,

    before rebuild on my index, framentation percentage is 80%,

    after rebuilding indxes it is showing me same percentage,

    Can Please Suggest me on...

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

  • RE: Book on Query Tuning and Optimization

    Reading books : storing data in table variables

    small practice : storing data in temp table

    lots of practice: storing data in physical table

    daily a...

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

  • RE: How to see the open transactions??

    SureshS_DBA (8/13/2010)


    Hi Bhuvenesh

    the inputBuffer gives just the last transaction for that spid. As i metioned, If I ran another statement in same sesin, where I opened transaction, then it will...

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

  • RE: SQL Server Instance

    Read this Multiple Instances of SQL Server

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

  • RE: Recording steps when executing a stored procedure

    Post the Sp you are using for deletion along with related index/table definfiton.

    Additionally, you can use "batch approach" to delete the heavy data volume.

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

  • RE: SQL T-Script assist needed.

    try this ---------------------------------------------

    -- Script to get file sizes from SQL Database

    -- Script by Gareth Thompson (2010/08/06)

    -- Tested on SQL 2005 and 2008.

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

    SET QUOTED_IDENTIFIER OFF

    SET NOCOUNT ON

    DECLARE @dbname varchar(50)

    declare @string varchar(250)

    set...

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

  • RE: SA password reset

    that area(sp.script/job) will get failed where you have hardcoded the password

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

  • RE: How to see the open transactions??

    this can give you

    declare @spid int

    select @spid = spid from sys.sysprocesses where open_tran = 1

    dbcc inputbuffer(@spid)

    but it needs to be executed ...

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

  • RE: Child and parent Relation

    CELKO (8/11/2010)


    You might want to look at the Nested Sets model for this. Life will be better.

    Any example or link ?

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

  • RE: When would be the order by faster ?

    CELKO (8/11/2010)


    You really don't understand SQL yet and you keep posting the wrong kind of questions.

    Yes i accept that i am not good in Sql but this is the...

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

  • RE: Merging two tables

    Post the table defintion/index defintion and sample data along with desired sample output.

    See how to post queries article from my signature:-)

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

  • RE: Stored Procedure - Locking Issue

    you can also use profiler to see where things are being holding up

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

  • RE: Warning in Scheduled job

    ekknaveen (8/11/2010)


    There is a SP running and its very big to paste it here. But can anyone tell me why its coming and how we can overcome with this. It...

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

  • RE: Warning in Scheduled job

    is there any sql script or stored proc running under it ? POst it

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

Viewing 15 posts - 1,456 through 1,470 (of 2,462 total)