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 |
|
jpa
Starting Member
2 Posts |
Posted - 2003-08-25 : 07:29:42
|
| Can anyone please let me know how do u use a column name that i've retrieve from the function col_name, in a query.(SQL2000)I've got a trigger, i loop through a table and check witch columns have being updated, then i get the column name from the column that's being updated(using col_name) and want to use that column name in a select statement, but sql sees the name as a string and not a column name |
|
|
Nazim
A custom title
1408 Posts |
Posted - 2003-08-25 : 11:33:19
|
| you can use dynamic Sql to use column names here.Read this article http://www.sqlteam.com/item.asp?ItemID=4619-------------------------What lies behind you and what lies ahead of you are small matters compared to what lies within you.-Ralph Waldo Emerson |
 |
|
|
|
|
|