How can I insert NULL value into Stored Proc parameter datatype uniqueidentifier.
My stored proc
My code
Evidently, it can't cast 'string' into 'uniqueidentifier'
Thank you
My stored proc
Code:
REATE PROCEDURE [bookstore_insert_WebList]
( @ParentID [uniqueidentifier],
@MasterID [uniqueidentifier],
@ListLevel [int],
My code
Code:
tmpCommand.Parameters.Add(New SqlClient.SqlParameter("@ParentID", SqlDbType.UniqueIdentifier))
tmpCommand.Parameters.Add(New SqlClient.SqlParameter("@MasterID", SqlDbType.UniqueIdentifier))
.
.
.
tmpCommand.Parameters("@ParentID").Value = vbNullString
tmpCommand.Parameters("@MasterID").Value = vbNullString
Evidently, it can't cast 'string' into 'uniqueidentifier'
Thank you