Forum Replies Created

Viewing 15 posts - 16 through 30 (of 56 total)

  • RE: Query Performance - Advice needed on small query -- plan attached

    Michael T2 (12/13/2012)


    using that, i still have the table scans. if i only use

    and (txSubtype > 'BACKORDER'

    or txSubtype < 'BACKORDER'

    then the scans go away.Strange.

    I am going to read up...

  • RE: delete top(8000) takes 1 second, delete top(9000) takes 42 seconds !!

    Great, thanks, job done.

    Sarging the WHERE clause to:

    WHERE [DateTime] < DATEADD(hour, 48, @MaxBuffer)

    did the trick and gave an index seek rather than scan, right upto "top(90,000)" (and...

  • RE: delete top(8000) takes 1 second, delete top(9000) takes 42 seconds !!

    Many thanks guys for all the replies and suggestions.

    I have forced the serial plan for this one query using maxdop1.

    I did also out of interest temporarily try upping...

  • RE: Separate Accounts

    Michael Valentine Jones (8/10/2012)


    I agree on the having a different account of each SQL Server with a long random password, but I think you need to store the password. ...

  • RE: Script SQL 2005 Security

    It runs quick on my server!

    (< 1sec)

  • RE: CPU & Memory usage

    Ok got it!

    Looks like the xml records have a typo on our system -

    <SchedluerMonitorEvent>

    should be

    <SchedulerMonitorEvent>

    !!!

    Hope this helps anyone else in the same boat.....

    Rgds, Dave

  • RE: CPU & Memory usage

    Hi MarkusB,

    I'm running your script for the cpu ticks, it's great thanks.

    However it returns only null values in the output (the timestamp is fine....) like this:

    2012-03-21 14:18:54.977NULLNULLNULL

    2012-03-21 14:17:54.977NULLNULLNULL

    2012-03-21 14:16:54.980NULLNULLNULL

    If I...

  • RE: Data Gravity

    An interesting example of data gravity and cloud computing and personal data being physically held somewhere with more lax laws in your editorial Steve.....

    In Europe, at least, I think the...

  • RE: What actualy is the "Initial Size (MB)" displayed in the 'Files' tab of database properties ?

    The initial size is the size that you have set (or left as the default) in the model database for that sql server.

    In mine it is set to 3MB for...

  • RE: Identify the Column for 'String or binary data would be truncated'

    Bah!

    Msg 8152, Level 16, State 2, Line 91

    String or binary data would be truncated.

    The statement has been terminated.

    Since the engine was trying to run the program, the least it could...

  • RE: Last 5 rows

    i have two tables....1st one has columns name RlseId and a datetime column..

    2nd table has TrackID(primary key,automatic generated) , RlseId(foreign key of 1st table) and RlsTrackId...but no date time column...

    whenever...

  • RE: Last 5 rows

    i want the last 5 rows based on last insertion...because i don't have any date time column...so how could i get it..?

    more over my requirement is to get the...

  • RE: Last 5 rows

    Although they may not always be in random order, I find it best if all rows are treated as being in a random order!

    Until sorted by "order by".

    🙂

  • RE: Last 5 rows

    Doh!

  • RE: Last 5 rows

    how do i select last 5 rows without any sorting order?

    Do you have a business requirement behind this request? If so, what is it!

    When you say the...

Viewing 15 posts - 16 through 30 (of 56 total)