ALTER TABLE Physician
Modify (RefLastName nvarchar(500),
RefFirstName nvarchar(500));
Getting Incorrect syntax error...
ALTER TABLE Physician
Modify (RefLastName nvarchar(500),
RefFirstName nvarchar(500));
Getting Incorrect syntax error...
Are you adding columns or changing the size?
You might first try looking up alter table in BOL and then come back here if that doesn't help.
The way you use ALTER TABLE
is not like CREATE TABLE
. You mention changes to the table elements rather than specifying all columns from scratch. Like:
ALTER TABLE TableName
ADD LastName NVARCHAR(100) NOT NULL
What is your syntax error ?
I looked at http://www.techonthenet.com/sql/tables/alter%5Ftable.php
Maybe try with:
ALTER TABLE Physician
Modify (RefLastName varchar2(500),
RefFirstName varchar2(500));
I'm not sure what you're trying to do. Are you changing the size? If so, this is enough:
ALTER TABLE Physician ALTER COLUMN RefLastName nvarchar(500)
GO
ALTER TABLE Physician ALTER COLUMN RefLastName nvarchar(500)
GO
(You may need to force a rebuild of indexes.)