MTSkull
Well-known member
How do I execute an SQL statment against a dataset object in memory.
I have a dataset that I recieved from the SQL server. I need to set a primary key for the table in the dataset (the SQL Server table doesnt have a PK and I am only allowed read only access) I want to use the sql command
to force the professional_id field to be the primary key. This field is unique. Then I can put the row I want in to a Datarow object to be passed to anouther part of the program.
Thanks
Brian
I have a dataset that I recieved from the SQL server. I need to set a primary key for the table in the dataset (the SQL Server table doesnt have a PK and I am only allowed read only access) I want to use the sql command
Code:
strSQL = "Alter Table " & PROF_TABLE_NAME
strSQL &= " modify column (professional_id int(6) not null primary key)"
Thanks
Brian