tags:

views:

19

answers:

2

In C# code I have a variable Guid? name.But,how to initialize this parameter to null,since I cannot assign null for a guid type

A: 
param = New SqlParameter("@GUID_ID", SqlDbType.UniqueIdentifier, 16)
param.Value = DBNull.Value
Mitch Wheat
A: 

Set the parameter value to DBNull.Value.

That does not work for Guid? name
jess