I have a procedure that begins like this::
Create Procedure dbo.SRIPContracts
@ContractID varchar(30) = Null
As
If @ContractID Is Null
@contractID = NewID()
but this fails because of the data type conflict. I can not change the datatype of contraactaID when I declare it because the parameter is coming from a classic asp page and the QueryString is a varchar. However, I need to convert the varchar to uniqueidentifier inside the stored proc.
Any idea?