Forum Replies Created

Viewing 10 posts - 31 through 40 (of 40 total)

  • RE: DTS server name

    As I can see I am not alone with my pain

    Thanks to everyone!

    I modified DTS manually on the new server and we will...

  • RE: Scripted Jobs to a new server

    Oh, yes! it was the OSQL ! Thank you people, you made me think!

    osql  -SServerName -dmsdb -i"d:\MSSQL\BACKUP\TEST\TESTScript_JOBS.txt" -E

    and it worked

     

  • RE: Scripted Jobs to a new server

    Thanks to all!

    The databases will be already on the new server and jobs will be modified a little manually after all (like the email operator or output file path).

    The...

  • RE: Scripted Jobs to a new server

    Need to create the job to run the script (script created already).

    Have a problem to remember the command line - is it something with xp_cmdshell or ...?

    Thanks!

  • RE: From Cursor into Table

    Thank you! I did not look at that table at all, just checked sp_helpfile and sp_helpdb trying to find where the files name are coming from silly me 

  • RE: Question of the Day for 22 Aug 2005

    and that LEN will confuse you here too:

    DECLARE @val CHAR(2)

    SET @val = 'D'

    print 'copy c:\temp\test.txt' + @val + ':\temp\test.txt' 

    It will be 'D space' ...

  • RE: Sum and Group by

    Thank you very much! I did it and the GROUP worked!

    I did not know about record count counting problem

  • RE: Sum and Group by

    Went this far

    select count(@@rowcount), sum(amount)

    from TableName

    Now - can we break the count(@@rowcount) for the Group By ?

    count(@@rowcount)/3 is not good....

  • RE: Sum and Group by

    OK, now I am thinking if the NumberOfTheWeek is too easy to perform this procedure. What if :

    CustomerID           Amount

    12                          5

    56                          12

    51                          45

    123                         47

    456                         63

    125                          2

    10                          55

     

    If it needs to be...

  • RE: Sum and Group by

    THANKS!

    group by (numberoftheweek-1)/3 - worked perfect!

    Now, Sergiy, why it's numberoftheweek-1? (because it starting to count from 0?)

     

Viewing 10 posts - 31 through 40 (of 40 total)