How to alter more than one existing columns in SQL 2000 Server?

0 pts.
Tags:
Database Management Systems
SQL Server
I m working in SQL Server(2000) Enterprise Edition.When I m using "Alter Table <tablename> Alter Column <column name> (column definition)" for only 1 column then its working (using Query Analyzer). However when I m trying to alter more than 1 column, Query Analyzer is giving error messages (syntax error).Pls suggest ways.
ASKED: September 14, 2004  7:05 AM
UPDATED: September 14, 2004  12:18 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

this syntax gives me no errors in query analyzer:

ALTER TABLE school ADD U int

ALTER TABLE school ADD M int

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • AMFlemming
    /*----------------------------- ALTER TABLE school ALTER COLUMN UMs nvarchar(30); ALTER TABLE school ALTER COLUMN Members nvarchar(30); -----------------------------*/ (1170 row(s) affected) (1170 row(s) affected)
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following