473,433 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,433 software developers and data experts.

How to change table name in sql 2000 server with alter statement?

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
Jul 23 '10 #1

✓ answered by ck9663

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

2 2280
ck9663
2,878 Expert 2GB
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
Jul 23 '10 #2
NeoPa
32,556 Expert Mod 16PB
I'm not sure the OP's still engaged in this, but the answer seems fine so selecting as best.
Jul 30 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Robert Song | last post by:
Hi all, How can get the primary key string from the given table name? i know it should from system tables of "sysobjects, syscolumns, and sysconstraints", but when i execute the statement like...
3
by: Martin Mrazek | last post by:
Hi, I have tables named like ag97a027, ag98a027, ... where 97 and 98 is from year 1997, 1998 and a027 is just specification of product type. I need carry out repeated operataions over these...
3
by: eric | last post by:
Is it possible to have part of a table name used in a CREATE statement contained in a variable? Here's what I'd like to do, although obviously the syntax of this isn't quite right or I wouldn't be...
3
by: googlemike | last post by:
You may have a requirement that you cannot change where you have old apps, such as Delphi 3 apps (in my case), that must hobble along until the BIG migration money comes into migrate to something...
6
by: vbnetrookie | last post by:
I have a table name in SQL Server 2000 that has a space in it ex: aim international I had trouble just in the query analyzer with this..I had to place the name in brackets for it to work. But...
4
by: jgarrett | last post by:
I'm wondering if a recordset can be used in place of a table name in an SQL statement. I would like to use a previously created recordset in my program as the source for another query. Ex. select...
7
JustJim
by: JustJim | last post by:
Hi If all you can do with ALTER TABLE....ALTER COLUMN is change the datatype/size then how do I change the name of a field? I have several database files spread all over the state and some of...
3
by: rmurgia | last post by:
I created an ODBC connection with the Microsoft ODBC for Oracle driver and successfully connected to Oracle from Microsoft Access by creating a pass through query. Can I use this connection from...
1
by: bharathreddy | last post by:
Hi all, If I want to add more than one table to an existing table. What is the syntax. Can any one please help me finding this.... For One table: -------------------- alter table tbl_Name ...
10
irfanafzal
by: irfanafzal | last post by:
Hello I have saved query in MS Access "SELECT ID ,Name, Address from Data2001" I am using this query in Crystal report My question is this can I change table name in this query "DATA2001" to...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.