returning uniqueidentifier

  • hi all,

    I have a stored procedure that creates a record and generate a uniqueidentifier.

    I call the procedure in Delphi, with ADOcommand.

    Well, I just want the generated Uniqueidentifier to come back to me (in delphi).

    How can I do?

  • create procedure dbo.yourprocname @param uniqueidentifier output

    as

    begin

    ...

    select @param = columnname from table where x=z

    end

    and from Delphi use the Returned value of the output parameter

     

    hth

     


    * Noel

  • ok, thanks.

    but when I call the procedure from delphi, I have to pass the parameter. It doesn't work with strings...

  • May be I don't know much about Delphi but I think you will need "TGUID" type for the value


    * Noel

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

You must be logged in to reply to this topic. Login to reply