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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 fill parameter on fuction on select command

Author  Topic 

ArcSlayer
Starting Member

4 Posts

Posted - 2011-05-31 : 05:17:59
i have command like this

select a.kode, b.type from master a, gettype(a.kode) b

but i get error:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '.'

i think the problem is on the parameter function.
if i use static parameter ex: '001', it work fine.

how can i solve this?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-05-31 : 05:54:48
I assumed gettype is a table function ?
and you are using SQL 2005 / 2008 ?

select a.kode, b.type from master a cross apply gettype(a.kode) b



KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -