Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: Simple SQL using IN

    Hi Brendan,

    The reason it fails is that the puTOP_SECTIONID is treated as a single value of "8,10,2,4" and not individual values of 8, 10, 2, 4.

    The IN clause is...

  • RE: backup master,msdb and tempdb databases issues

    Hi,

    If you need to backup tempdb then backup the model database as it is used as a template for creating the tempdb database when the server is started.  The only...

  • RE: Retriving image datatype

    Hi venkat,

    Have a look at the function READTEXT in the SQL help it will explain how to retrieve the image data.

    Its basically a three part operation. 

    Regards

    Richard...

  • RE: ALTER TABLE IN SP!

    Hi Lars,

    Thats because the table name has to be actual name and not variable.  The way around this is to use dynamic sql.  There is a performance hit, not much,...

  • RE: Error when trying to create trigger on view

    Hi,

    You can only use INSTEAD OF triggers on views with the WITH CHECK OPTION set.  Personally I would create the trigger on the table.  That way all entries points to...

  • RE: compute by [altered date] ???

    Hi David,

    After re-reading your query I suddenly realised you where trying to calculate the number of orders for the month

    Sorry for the bum answer...

  • RE: compute by [altered date] ???

    Hi,

    Try this. 

    select convert(char(7),OrderDate,120), CustomerID, count(*) from dbo.Orders

    group by OrderDate, CustomerID

    order by OrderDate

    compute sum(count(*)) by OrderDate

    I think it will generate what you want.

    You do not need to specify the convert...

Viewing 7 posts - 1 through 7 (of 7 total)