Forum Replies Created

Viewing 15 posts - 2,881 through 2,895 (of 5,103 total)

  • RE: TOP create syntax error

    Sorry for me to be the bad news bearer

    But is is really important that you patch that server ASAP

  • RE: Dynamic Update

    declare @sql varchar(1000), @x varchar(10)

    set @x = 'field'

    set @sql = 'update table set column = ''' + @x + ''''

    exec(@sql)

  • RE: Near Number Function

    But I don't see a way to order it the way you want

    select *

    from #EmpAges

    where age between (@age - @Diff) and (@age + @Diff)

    order by abs(age - @age) , age

  • RE: Rollup of Columns

    All you need to do is a join of the the two like:

    Select Normal.PERSONFULLNAME,PERSONNUM,Unit,Department,ApplyDate,Total,TotalAccrossDept

    FROM

    (

    select PERSONFULLNAME,PERSONNUM,Unit,Department,ApplyDate,SUM(Regular) Total from VP_KSS_Overtime

     where

      ApplyDate between CURRPAYPERIODSTART and CURRPAYPERIODEND

    group by PERSONFULLNAME,PERSONNUM,Unit,Department,ApplyDate

    ) Normal

    join

    (

    select PERSONFULLNAME,...

  • RE: Typical Trigger Issue

    Here is a bit of explanation for you:

    Nested triggers is a setting that by default is turned off and what it does is

    that if an update happens in the...

  • RE: Typical Trigger Issue

    Ok, First things first:

    This is basically the trigger you need:

    ALTER TRIGGER TriggerOne ON YourTable

    AFTER  Update

    AS

    Update S set ModifiedDate = GetDate()

      FROM YourTable S

        JOIN Inserted I

          ON I.ID = S.ID

  • RE: Rollup of Columns

    Let me try to understand what you expect as output:

    PERSONFULLNAME

    ,PERSONNUM

    ,Unit

    ,Department

    , TOTAL NUMBER REGARDLESS THE DEPARTMENT ???

     

    if not that can you post an example on how you want the output to...

  • RE: Multiple inserts

    I haven't promised anything ... yet

    I am also as an employee as you are. Even though I do consulting on the side. If I get to see that the consulting...

  • RE: Rollup of Columns

    select Employee, sum(Hours) Total  from Table group by Employee

    where is the problem ???

  • RE: TOP create syntax error

    RTM = Release To Manufacture.

    You have the original retail version of SQL server installed you need to at least go to SP3a or SP4 if you can!!!

    Cheers!

     

  • RE: Multiple inserts

    Sushila-- don't need to thank me it feels good when you put peoples perspectives on the line and make the right thing

    Remi --...

  • RE: Running an app on another box

    Sorry to hear that, because

    1. is Free

    2. is proven

    3. is easy to use

    4. not intrusive

    5. self contained

     

    but well it was a shot!

     

  • RE: Multiple inserts

    Not so sure you wouldn't... those monster tend to pay big $$$

    even when the Drs only provided all the necessary info after 5 -...

  • RE: Multiple inserts

    I just wouldn't want to be the guy who has to fill 112 fields to add a student.

    I worked once for a pharmaceutical company and the Clients were Drs....

  • RE: TOP create syntax error

    may I ask what SP level is your server running?

    select serverproperty('ProductVersion'),serverproperty('ProductLevel')

     

Viewing 15 posts - 2,881 through 2,895 (of 5,103 total)