Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
SQL Server
How to change table name in sql 2000 server with alter statement?
How to change table name in sql 2000 server with alter statement?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Kyaw Kyaw Min
New Member
Join Date:
Jul 2010
Posts:
1
#1
How to change table name in sql 2000 server with alter statement?
Jul 23 '10, 09:06 AM
I would like to change table name at SQL2000 database. I use alter statement
ALTER TABLE Table_Name RENAME TABLE Old_Name TO New_Name
ck9663
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2878
#2
Jul 23 '10, 04:57 PM
I'm not sure you can. ALTER TABLE, alters the properties of the table including columns, etc.. To rename the table, use sp_rename instead.
Good Luck!!!
~~ CK
Comment
Post
Cancel
NeoPa
Recognized Expert
Moderator
MVP
Join Date:
Oct 2006
Posts:
32669
#3
Jul 30 '10, 12:21 PM
I'm not sure the OP's still engaged in this, but the answer seems fine so selecting as best.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment