Forum Replies Created

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

  • RE: DB Maintenance Plan fails routinely.

    Do you put your system database and user database in the same maintenance plan?

    I think you have to separate them into 2 different plans. You can look for this in...

  • RE: Left outer Query optimization

    how if we put:

    select col005 from [Baseball65K24] a where not exists( select 1 from [Baseball65K50] b where a.col005 = b.col007)

    would it run faster?

    thanks.

    Leo

  • RE: Table Resouces time-out

    I guess this is because your procedures are locking each other.

    You can try to set the ISOLATION LEVEL or use with(nolock) hint in your select statement.

    Leo

  • RE: please help me kill my cursor!

    i got a simple suggestion here.

    first, select all new user into a identity temp table. for example,

    create table user_temp(

       key bigint identity(1, 1),

       firstName varchar(50),

       emailAddress varchar(100)

    )

    insert into user_temp...

  • RE: slow sql server

    Hi,

    I am not sure your system is slow in which area.

    Have you checked your execution plan for all statements that you are running?

    Hm .... did you check whether your indexes...

  • RE: Slow Query

    what if we change from IN to EXISTS?

    SELECT     cycleName, framework, toolName, taskName, DATEPART(ww, execDate) AS WW, execDate, execHour,

                          SUM(CAST(StressTime AS decimal) / 3600) AS MachineHours, targetName

    FROM         dbo.tbl_execution_time_hourly ETH

    WHERE     EXISTS

                             ...

  • RE: Using SQL DB for login authentication to a website

    In my opinion, for a 2-tier-architectured application, we should separate the login from your front-tier and end-tier. so, you have different logins for your application.

    Reasons are:

    1. Increase security control of...

  • RE: WHERE sequence and performance

    i've learned something today.

    thanks a lot.

    Leo

  • RE: WHERE sequence and performance

    i've learned something today.

    thank a lot.

    Leo

  • Composite index is only useful for a query when the WHERE clause of the query matches the column(s) that...
  • RE: WHERE sequence and performance

    hm ... i read something about this somwhere. It says if your first condition match with your first column in your index, it will fasten the speed to build the query...

  • RE: Changing the seed and increment values on the identity column

    you have to put the column's data type after the column name (but before the IDENTITY keyword)

    for example,

     

    alter table alter column mycol int IDENTITY(200, 2)

     

    try and see

     

    Leo

  • RE: Changing dbo from sa to another user

    what i did was like this:

    1. go to sysusers and look for the uid that i want

    2. update sysobjects with the uid that i just found for those objects that i want...

  • RE: Giving pain to DBA

    thanks, Gabor.

    my previous SQL Server database was > 900GB.

    it is a database used by a factory. of course, it needs to be up 24 x 7.

    however, my transaction log is...

  • RE: Giving pain to DBA

    Sufian,

    u can try this code:

    backup log db_name with truncate_only

    dbcc shrinkfile (logfile_name, size)

    u can truncate the log even when ur database is online.

    u can put any parameter for the size. its...

  • Viewing 15 posts - 46 through 60 (of 72 total)