A
Andrew
Vb.net 2005 app
I am looking up records in a sql 2005 database and I grab the
uniqueidentifier and put it into a variable (gID) of type GUID.
When I try to create a new record in a new table and link a uniqueidentifier
field with variable( gID) I get the following error:
operator & is not defined for types string and system.guid
my code is:
cmd.CommandText = "INSERT INTO sim_groups
(service_item_lib_id,service_item_group_name,description,delete_ind,create_timestamp)" & _
"VALUES (" & gLibID & ", '" & GroupName & "', '" & GroupDes &
"', 'N',current_timestamp)"
cmd.CommandType = ADODB.CommandTypeEnum.adCmdText
cmd.Execute()
the variable name is gLibID and the field going into service_item_lib_id
witch is a uniqueidentifier..
I don’t remember how to overcome this, can anybody help?
I am looking up records in a sql 2005 database and I grab the
uniqueidentifier and put it into a variable (gID) of type GUID.
When I try to create a new record in a new table and link a uniqueidentifier
field with variable( gID) I get the following error:
operator & is not defined for types string and system.guid
my code is:
cmd.CommandText = "INSERT INTO sim_groups
(service_item_lib_id,service_item_group_name,description,delete_ind,create_timestamp)" & _
"VALUES (" & gLibID & ", '" & GroupName & "', '" & GroupDes &
"', 'N',current_timestamp)"
cmd.CommandType = ADODB.CommandTypeEnum.adCmdText
cmd.Execute()
the variable name is gLibID and the field going into service_item_lib_id
witch is a uniqueidentifier..
I don’t remember how to overcome this, can anybody help?