Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Column Name change Expand / Collapse
Author
Message
Posted Wednesday, January 09, 2013 11:28 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 10, 2013 12:24 AM
Points: 21, Visits: 50
Hi All,

I have created a few tables with foreign keys and primary keys. Now i am supposed to change the column name of a table. But when i am doing in tfs it throws an error: i ried dropping the foreign key constraints and altering the column name still dint work. can anyone please help.

Thanks,
Post #1405192
Posted Wednesday, January 09, 2013 11:31 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 1:07 PM
Points: 18,733, Visits: 12,332
Please provide ddl and the error message you are getting.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1405195
Posted Wednesday, January 09, 2013 11:40 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 10, 2013 12:24 AM
Points: 21, Visits: 50
when i try the syntax exec sp_rename 'table.columnnameold', 'columnnamenew' it executes in ssms

but in tfs it throws an error: VwA has no reference object or have an ambigous reference
Post #1405203
Posted Thursday, January 10, 2013 12:37 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 3:38 AM
Points: 803, Visits: 2,123
In TFS you shouldnt need to use the SP_rename you should just be able to alter the column name in the relevant underlying projects.

Are you using a DB project in VS or do you have SSMS hooked upto TFS?


_________________________________________________________________________
SSC Guide to Posting and Best Practices
Post #1405236
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse