Forum Replies Created

Viewing 15 posts - 331 through 345 (of 359 total)

  • RE: cursor issue

    are you sure it runs fine manually have you tested with the same data roll the data back and then run tried as a scheduled job?

  • RE: cursor issue

    EEEK a cursor within a cursor, do you have any representative data and tables that we can use to view your code and test any sugestions we have.

    Prehaps we can...

  • RE: cursor issue

    HI, so if the cursor fails at some point when run on its own, sounds like this needs addressing first, Next in a stored proc if you set set xact...

  • RE: Set corect week from datepart

    HI

    you would get week 52 not 0

  • RE: Set corect week from datepart

    HI, well im not sure if you can change the system variable to get what you want however if norway are 1 week behind you could use dateadd to take...

  • RE: Set corect week from datepart

    Just out of interest how do you work out that today should be week 25?

  • RE: Convert with Case in SP Failure

    Alter your clause to look like this and it should work ok, you had your when in the wrong location

    case ISNULL(org.is_round,1) when 1 THEN

    ...

  • RE: report generation SP...

    HI,

    looking at your tables and the information you requested here is some basic syntax for a simple SP you will might want to pad it out a little

    Also, if we...

  • RE: Help with formating a QUERY ???

    HI, why would you have a table with colors with the same ID for multiple colours?

    this would give you the results for 1 person you just need to follow it...

  • RE: need help explain a query

    Hi looking at your query would i be correct in saying that the results that are returned are not what you expected?

    its always easier to work out what your query...

  • RE: get minutes from datetime with leading zero

    Hi

    This is not ideal but you could look to do the following

    declare @date datetime

    set @date='2011-06-21 20:03:01.450'

    select cast( @date as varchar),substring(cast( @date as varchar),charindex(':',cast( @date as varchar))+1,2)

  • RE: Nested Joins? or Selects?

    i agree with the others left outer joins may be needed, do you have any examples tables and representative data, it would be easier to help you with this information

  • RE: Query Problem - Please Help

    Hi, IM going to make an aussmption here that each time you run the script for each school you change

    WHERE students.schoolid=6049142

    Have you tried using the IN clause?

    WHERE students.schoolid...

  • RE: Help with update statement

    HI, i am not too sure what you mean either however, looking at your set statement it might be worth you looking up CASE statements

    for example i have a test...

  • RE: temp table in user database?

    HI, try looking up variable temp tables, as i understand it these work from memory however, i do think that there is a limit to the amount of data that...

Viewing 15 posts - 331 through 345 (of 359 total)