![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have created user defined function DateIsEnded . Owner of the function is 'pthdbo' (connected User of login ) In query analyser I am trying to use this function but it gives me error - invalid object name DateIsEnded - if I specify it without owner pthdbo. select rfofficer_code, DateisEnded(rfoff_end_date) as ended from rfoff order by ended; Owner of rfoff table is also pthdbo.But it doesn't complain about rfoff. If I specify owner name with function it works. select rfofficer_code, pthdbo.DateisEnded(rfoff_end_date) as ended from rfoff order by ended; My question is why it is required to specify owner name before user defined function though connected user is the owner of the user defined function? |
#3
| |||
| |||
|
|
why it is required to specify owner name before user defined function |
|
I have created user defined function DateIsEnded . Owner of the function is 'pthdbo' (connected User of login ) In query analyser I am trying to use this function but it gives me error - invalid object name DateIsEnded - if I specify it without owner pthdbo. select rfofficer_code, DateisEnded(rfoff_end_date) as ended from rfoff order by ended; Owner of rfoff table is also pthdbo.But it doesn't complain about rfoff. If I specify owner name with function it works. select rfofficer_code, pthdbo.DateisEnded(rfoff_end_date) as ended from rfoff order by ended; My question is why it is required to specify owner name before user defined function though connected user is the owner of the user defined function? |
![]() |
| Thread Tools | |
| Display Modes | |
| |