Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4064396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:51:01+00:00 2026-05-20T15:51:01+00:00

So I was trying to rename a column in my table from Conversion_Fee_PerShare to

  • 0

So I was trying to rename a column in my table from Conversion_Fee_PerShare to just Conversion Fee.

I looked up online and found the syntax be:

sp_RENAME 'TableName.[OldColumnName]', '[NewColumnName]', 'COLUMN'

I wrote my query as:

sp_RENAME 'dbo.AllocationDetails.[Conversion_Fee_Per_Share]' , '[Conversion_Fee]', 'COLUMN'

The column name has now become [Conversion_Fee] instead of Conversion_Fee

Now if am trying to rename again like this:

sp_RENAME 'dbo.AllocationDetails.[Conversion_Fee]' , 'Conversion_Fee', 'COLUMN'

It gives me an error saying:

Msg 15248, Level 11, State 1,
Procedure sp_rename, Line 213 Either
the parameter @objname is ambiguous or
the claimed @objtype (COLUMN) is
wrong.

I tried to Alter Table Drop Column AllocationDetails.[Conversion_Fee] it didn’t work that way either.

Whats the right syntax?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:51:01+00:00Added an answer on May 20, 2026 at 3:51 pm

    Never mind I found out:

    ALTER TABLE dbo.AllocationDetails
    DROP COLUMN [[Conversion_Fee]]]
    

    OR

    sp_RENAME 'dbo.AllocationDetails.[[Conversion_Fee]]]' , 'Conversion_Fee', 'COLUMN'
    

    these will work fine. 🙂

    Using Double Quotes:

    exec sp_rename 'dbo.AllocationDetails."[Conversion_Fee]"' , 'Conversion_Fee', 'COLUMN' 
    

    will also work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to rename the columns. The syntax should be the column name between
I'm trying to rename a column using sp_rename but it's referenced in a computed
I need help with SQL Server Table Column. I´m trying to rename Column Name,
I am trying to rename the column datatype from text to ntext but getting
I am trying to integrate with a Legacy table that has a column named
We're trying to rename a column in MySQL (5.1.31, InnoDB) that is a foreign
I would like to rename an index. I've looked at the alter table documentation,
I'm trying to programmatically add an identity column to a table Employees. Not sure
I'm trying to rename my table using this SQL. I'm using MySQL 5.1.41 on
I have a 12 GB table full of pictures, I'm trying to rename the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.