Forum Replies Created

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

  • RE: Return a parameter with Exec

    Thx Frank ! Your solution is better for performance i think.

  • RE: Return a parameter with Exec

    K good it works ! I've found the solution :

     

    DECLARE @Where varchar(1000)

    CREATE TABLE #Temp (Nb int)

    SET @Where = ' ABO_ID =' + Cast(@aboId as varchar) + ' and SITE_ID...

  • RE: Return a parameter with Exec

    Ok- Thx

    But have you got a sample code to do this ?

    Thx again

  • RE: Add automatically a record in a linked table

    Ok. thx a lot.

  • RE: Another cast problem

    Well my original SP is :

    ALTER  PROCEDURE MYPROC(@idSite int, @Type varchar(4)) AS

    DECLARE @strReq varchar(1000)

    SET @strReq = 'SELECT  DLZ_EMAIL.EMAIL_LIB, COUNT(*) AS nb_email

         FROM DLZ_EMAIL  WHERE DLZ_EMAIL.DATE_DEB <=GETDATE() '

    If @Type='HTML'

     begin

      SET...

  • RE: Another cast problem

    And for my second question have you got an idee?

    'cos i can't do this :

    SET @strReq = 'SELECT  DLZ_EMAIL.EMAIL_LIB, @nb-2 = COUNT(*)

         FROM DLZ_EMAIL  WHERE DLZ_EMAIL.DATE_DEB <= GETDATE()'

    @nb-2...

  • RE: Another cast problem

    Oh YES !!! It works !

    I believed that a CAST had to be made.

    Thx a lot SQLBill ... I'm so stupid )))))

     

  • RE: Another cast problem

    SQLBill:

    'cos when i just do :

    SET @strReq = 'SELECT  DLZ_EMAIL.EMAIL_LIB, COUNT(*) AS nb_email

         FROM DLZ_EMAIL  WHERE DLZ_EMAIL.DATE_DEB <=' + GETDATE()

    it tellls me the same message : "Syntax error converting datetime...

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