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 |
|
tool
Starting Member
26 Posts |
Posted - 2004-08-28 : 11:50:37
|
I would like to use a correlated subquery to pass a parameter to a function. Something like this:SELECT t.Col1, t.Col2, (SELECT fCol1 FROM dbo.fnTest(t.Col1)) AS Col3FROM Test t I recieve the error "Incorrect syntax near '.'"Is this not possible or is my syntax just incorrect? Thanks |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-08-28 : 12:40:17
|
| that needs to be a scalar valued function to appear in the select clause.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|