Forum Replies Created

Viewing 15 posts - 46 through 60 (of 199 total)

  • RE: how to write this query

    here is the table

    CREATE TABLE [dbo].[TBL_REPORT_COLLECT_USERS_CONNECTION](

    [RUN_TIME] [datetime] NOT NULL,

    [USERS_COUNT] [int] NOT NULL,

    [CONNECTION_COUNT] [int] NOT NULL

    here is the insert every hour

    INSERT INTO TBL_REPORT_COLLECT_USERS_CONNECTION(RUN_TIME,USERS_COUNT,CONNECTION_COUNT)

    SELECT GETDATE()AS 'RUN_TIME',COUNT(DISTINCT loginame) AS 'USERS_COUNT',count(spid)AS 'CONNECTIONS_COUNT'

    FROM master.sys.sysprocesses

    WHERE...

  • RE: query use different execution plan

    my problem is right there,when i clean the buffer on both server the first run take 1.5min in both of them.

    but on the second run without the buffer clean the...

  • RE: query use different execution plan

    OK.

    and the difference in the sql server machine while the database are the same,can i check anything on that matter?

  • RE: query use different execution plan

    no physical reads on the new server on the second run.

    if i remove the (ltrim(rtirm()) the results are very good.

    why the ltrim rtrim do that?

  • RE: query use different execution plan

    no i can't change the query.

    this is the weird thing i run the query a lot of time in the slow server and the results are the same 1.5 min...

  • RE: query use different execution plan

    execution plans attached.

    THX

  • RE: query use different execution plan

    hi

    i upload the database to new server (more stronger CPU,MEM,DISK I/O).

    and i see strange results when i run the same query.

    is there any explanation to that kind of results while...

  • RE: query use different execution plan

    thanks for the replay.

    what are my other options if i can't use HINT on the query because i can't mess with the query that come out from the ERP?

  • RE: logon logout auditing

    what i meant is if the user successfully made the logon but failed in the trigger because something is wrong with the trigger (the table was delete or no permission...

  • RE: logon logout auditing

    how i can write this logon trigger that if i the user have an error in the trigger his logon processes will still be successfully but i will be notified...

  • RE: logon logout auditing

    yes this is one of my thought.

    the question is when working with the profiler for logon and logout event,

    how i can calculate to actual time that the user spent in...

  • RE: logon logout auditing

    thanks for your help.

    i'm looking on different approach and i will update later.

  • RE: logon logout auditing

    why i can't filter the login to capture only users that use the erp.

    we have a table with the erp users in database called system.

    when i add the syntax to...

  • RE: logon logout auditing

    hi,

    i need to know how much time the user spent in the erp program.so if the user enter to the program and then he open new windows from that program...

  • RE: help with the xp_cmdshell

    so how other counters work in the xp_cmdshell and other not?

Viewing 15 posts - 46 through 60 (of 199 total)