Hello,
I have a question about the syntax using an ASP page to alter a field in a SQL2K table. My code looks like this;
strSQL = "ALTER TABLE press "
strSQL = strSQL & "MODIFY COLUMN rdesc VARCHAR(512) NULL "
I get this error message when I attempt to run the code by launching the page in a browser is as follows;
Incorrect syntax near the keyword 'COLUMN'.
The field is 456 and I want to increase it to 512. I've tried many different ways but no luck. I can add a field and drop a field but cannot seem to modify one. Thank you for any help you might be able to give me.
Riley
I have a question about the syntax using an ASP page to alter a field in a SQL2K table. My code looks like this;
strSQL = "ALTER TABLE press "
strSQL = strSQL & "MODIFY COLUMN rdesc VARCHAR(512) NULL "
I get this error message when I attempt to run the code by launching the page in a browser is as follows;
Incorrect syntax near the keyword 'COLUMN'.
The field is 456 and I want to increase it to 512. I've tried many different ways but no luck. I can add a field and drop a field but cannot seem to modify one. Thank you for any help you might be able to give me.
Riley