Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sg2255551
Constraint Violating Yak Guru
274 Posts |
Posted - 2006-08-10 : 11:14:31
|
| hi i have 2 table namely tblDate and tblDatatblDate has a column which stores 4 or 5 rows of dates and it has dynamic value meaning the values of the 4 rows would change every monthtblDate ---- (this month date)ColDate-----------08/05/200608/12/200608/19/200608/26/2006Then come next monthColDate-----------09/02/200609/09/200609/16/200609/23/200609/30/2006For tblData, I have 4 columns for month august:Col1 Col2 Col3 Col4How do i change the names of the columns from Col1 Col2 Col3 Col4 to wk1-08/05/2006 wk2-08/12/2006 wk3-08/19/2006 wk4-08/26/2006 for tblData based on the value from tblDate on monthy basis dynamically? Thanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-08-10 : 12:15:11
|
| http://weblogs.sqlteam.com/jeffs/archive/2005/05.aspx MadhivananFailing to plan is Planning to fail |
 |
|
|
sg2255551
Constraint Violating Yak Guru
274 Posts |
Posted - 2006-08-10 : 12:24:36
|
| hiThe information is just so overwhelming and i am blur and do not know where to start from? |
 |
|
|
sg2255551
Constraint Violating Yak Guru
274 Posts |
Posted - 2006-08-11 : 00:09:26
|
| sorry if i cause much inconvenience. Thanks |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2006-08-11 : 00:16:31
|
| You can use the SP_RENAME stored procedure to rename a column in a table.CODO ERGO SUM |
 |
|
|
|
|
|