T
Tem
I have a string array tags with content as follows
string[] tags
cat
animal
pet
I need to insert all 3 rows with a single INSERT statement
INSERT INTO Tags (TagName, PhotoID) VALUES (@Tag, SCOPE_IDENTITY())
command.Parameters.Add("@Tag", SqlDbType.NVarChar).Value = tags
How can I do that?
Thanks
Tem
string[] tags
cat
animal
pet
I need to insert all 3 rows with a single INSERT statement
INSERT INTO Tags (TagName, PhotoID) VALUES (@Tag, SCOPE_IDENTITY())
command.Parameters.Add("@Tag", SqlDbType.NVarChar).Value = tags
How can I do that?
Thanks
Tem