Forum Replies Created

Viewing 15 posts - 5,311 through 5,325 (of 18,926 total)

  • RE: Running xp_cmdshell

    remove the nooutput so you can see what's going on.

    You could also run that from the real cmd line so you get the real error message (if there's one)

  • RE: FETCH API_CURSOR0000000000000212

    So the single query sometimes take 5 seconds and sometimes 15 minutes?

    Are the stats up to date? When was the last stats update and what type of date is...

  • RE: Shrinking SQL 2000 Database

    John Mitchell-245523 (6/23/2011)


    OK, let's try this a different way. Please run this and post the results:

    USE <InsertYourDBNameHere>

    SELECT type_desc, name, physical_name, size * 8.0/1024/1024 AS file_size

    FROM sys.database_files

    Thanks

    John

    Sys schema for sql...

  • RE: Query performance

    vinod.saraswat (6/23/2011)


    Its business key column not from the DTA

    Please post table definition including keys and actual execution plan (as attached file).

  • RE: FETCH API_CURSOR0000000000000212

    anthony.green (6/23/2011)


    Yeah its nasty, from what I have heard about the whole Dynamics range, is that it was purchased off a company that was developing the suite for Oracle, obivously...

  • RE: Query performance

    vinod.saraswat (6/23/2011)


    Hi All,

    Its doing the clustered index scan.

    ... any reason you can't add the non clustered index on the item column??

  • RE: FETCH API_CURSOR0000000000000212

    anthony.green (6/23/2011)


    Is this Dynamics AX by any chance?

    ... I see the same kind of things with Dynamics Nav. Nice application to code in... not the fastest to run queries...

  • RE: Query performance

    Rhox (6/23/2011)


    You can save this query and run the Database Engine Tuning Advisor against it...

    This will create scripts to make your indexes

    NEVER a good idea to blindly do what the...

  • RE: Query performance

    Warwick rudd (6/23/2011)


    Does your table have an index on the column in your where condition ?

    That's the only it'll ever run fast... and ideally that index needs to have...

  • RE: FETCH API_CURSOR0000000000000212

    Is this just 1 query or a series of queries in a loop (most likely client side)?

  • RE: select query is getting slow

    vivekvinodhraj (6/23/2011)


    i think, iam using sql 2005.. i will try to download 2008 express edition and copy the database to it..

    On the same server where your query is running slowly...

  • RE: select query is getting slow

    vivekvinodhraj (6/23/2011)


    Ok fine then, i will do onething. i will try to download new version of sql and try it..

    Won't help if you don't plan to upgrade.

    What version are you...

  • RE: select query is getting slow

    It takes over 1 second to return 1-5 rows from 1 table????

    Then you have serious problem somewhere on the hardware. The thing is I've never tuned a sql 7...

  • RE: select query is getting slow

    Does the table have a clustered index? Is the table fragmented?

    I see no use of the index, are you sure it's there?

    What's the plan when the query runs fast?

  • RE: MSDB growth on sysjobstepslogs due to whitespace

    Did you consider doing this sequence?

    select * from base into ##temp

    truncate base

    insert into base select * from ##temp

    Might have solved it for you.

Viewing 15 posts - 5,311 through 5,325 (of 18,926 total)