Pages

Monday, 25 November 2013

How to change the name of the table or stored procedure in sql?

Ans: 
sp_rename oldtablename newtablename
For changing the column name
Sp_rename  ‘tablename.[Oldcolumnname]’,’newcolumnname’,’Column’
Ex:sp_rename ‘tblemp.first’,’namechange’,’Column’

No comments:

Post a Comment

Enter Your Question

Total Pageviews

Blog