Forum Replies Created

Viewing 15 posts - 1,636 through 1,650 (of 2,462 total)

  • RE: How to capture the old version of an SP, View or Function in a DDL trigger

    i dont think you can see the older version of Sp unless you are preserving it in Audit table with the help of DDL trigger.

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

  • RE: High index defragmentation remains constant - always

    This table has only 700 rows and its showing fregmentation > 83% with following query i found that it should be REBUILD

    HOw did you figure out this ?...

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

  • RE: Timeouts

    paul.corujo (6/2/2010)


    The sp in question run in SSMS in under 1 second. How would I determine why it is taking more than 30 when called via the application.

    if...

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

  • RE: Automating job scripts

    dave-dj (6/3/2010)


    the problem is I get - variable .... not defined as a scalar value.

    post your script

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

  • RE: Missing Index suggestion by SQL Server DMV

    Shamshad Ali (6/3/2010)


    while the same was test on applying indexes on FKeys without any performance improvements (reads/CPU/Duration) No change.

    that depends on the volume of data.i guess you don't have high...

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

  • RE: Missing Index suggestion by SQL Server DMV

    Shamshad Ali (6/2/2010)


    There are 210 tables, 24 views, 280 SPs, 50 functions with DB size of 8 GB. I am looking for a quick way to figureout the indexes issues....

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

  • RE: Missing Index suggestion by SQL Server DMV

    i would say

    1 run the exec plan.

    2 capture the scans and lookup there.

    3 modify/create indexes.

    4 again run the exec plan to see the improvement.

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

  • RE: CHAR vs INT Design Consideration

    Ravi-376012 (6/2/2010)


    ContactID BIGINT NOT NULL IDENTITY(1,1) PRIMARY KEY,

    FName VARCHAR(50) NOT NULL,

    LName VARCHAR(50) NOT NULL,

    Address1 VARCHAR(255),

    Address2 VARCHAR(255),

    ----,

    StateID INT,

    .....)

    Now I have two options one is to have a State lookup table using

    StateID...

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

  • RE: Update Statement has a lock

    PradeepVallabh (6/1/2010)


    I have a lock on the update statement.....After carefully examining the execution plan i noticed there is a 93% Cost on Clustered Index Update pk_xyz_abc....Is there anyway to tune...

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

  • RE: TSQL Return start/end price and start/end datetime by product name.

    elutin (6/2/2010)


    As promised, another version. It contains much more code, but it's probably the fastest way to do what you require:

    --We need to copy the data from the master table...

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

  • RE: Import Export

    Always try to keep column's name and their datatypes same.

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

  • RE: TSQL Return start/end price and start/end datetime by product name.

    post your problem according to the article referred in my signature to get faster response

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

  • RE: Question about "Execute as "

    halifaxdal (5/31/2010)


    execute a sp or fn on a linked server with a read-access account but execute it as another account (not knowing the password)?

    i dont think it can be...

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

  • RE: Msg vs Message

    it could be because of windows patch or sql server patch/Service pack

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

  • RE: Can you restore a DB with an MDF file?

    Jacob Pressures (5/27/2010)


    these files were hard to even remove from the data folder.

    take the database offline and then take out the mdf

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

Viewing 15 posts - 1,636 through 1,650 (of 2,462 total)