Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 2,462 total)

  • RE: DBCC SHRINKFILE not working for datafile

    Try with DBCC shrinkdatabase ...and if it still doesnt work ..take a full backup and then try shrinkdatabase

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

  • RE: DBCC SHRINKFILE not working for datafile

    Anyways ,,if you still want to shrink data file ..you can use the TRUNCATE_ONLY option in DBCC shrinkfile

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

  • RE: DBCC SHRINKFILE not working for datafile

    Why are you trying to shrink data file ..it can leads to fragmentation i.e poor index selection.

    instead you can go for log shrinking

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

  • RE: check history of lock info

    What kind of lock ? Do you mean different transactional locks like shared, update locks etc ??

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

  • RE: Strange--About SELECT @s=@s+name FROM ***

    ColdCoffee (9/6/2010)


    i increased the VARCHAR to 12 and voila, i get the desired result "always"...Hmm..

    yes .. but size should work according to select len('10_samjack') which is 10 which...

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

  • RE: Strange--About SELECT @s=@s+name FROM ***

    i also caught the same as chris , varchar(10) is playing the trick , but why ? , dont know:unsure:

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

  • RE: Strange--About SELECT @s=@s+name FROM ***

    ColdCoffee (9/6/2010)


    Now if u see, the first and third uses @s1, which is VARCHAR(10) , but the first one truncates the result to only one values 10_jack, while the third...

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

  • RE: Strange--About SELECT @s=@s+name FROM ***

    ColdCoffee (9/6/2010)


    Execute them, u will find it strange..

    Still nothing.

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

  • RE: Search with wildcards from Stored proc parameter

    Craig Farrell (9/2/2010)


    SELECT OrderID, OrderName FROM <table>

    WHERE LEFT( OrderName, LEN(@SearchStartsWith)) = @SearchStartsWith

    this is bad from performance perspective , never use function with where caluse column , it will force sql...

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

  • RE: Strange--About SELECT @s=@s+name FROM ***

    can you elaborate it ? i saw the exec plan but didnt get anything bad there

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

  • RE: how to check table creation statement

    refer these links

    http://www.sql-server-performance.com/articles/audit/ddl_triggers_p1.aspx

    http://www.sqlteam.com/article/using-ddl-triggers-in-sql-server-2005-to-capture-schema-changes

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

  • RE: ETL into database - auto update stats vs UPDATE STATISTICS

    Chris Howarth-536003 (9/6/2010)


    Turn the auto stats update off and perform an UPDATE STATISTICS...WITH FULLSCAN after the load, assuming that you have time in your maintenance window to perform a full...

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

  • RE: Cluster Index - Huge Table - 0 Fragmentation - Clustered Index Scan???

    is your non-clustered index UNIQUE ? i dont think so

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

  • RE: sql server agent

    try two things .

    try to login with sa and then look for it

    and see whether that is running or not ?

    and last restart the sql server

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

  • RE: table tuning

    Is that table is on dev enviroment( or local system ) or production. additionally , do you face same problem with other tables also ? my guess is "network problem"...

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

Viewing 15 posts - 1,351 through 1,365 (of 2,462 total)