We have a developer who needs to run this query from a stored proc:
>>>
select number from master..spt_values where type='P'
>>>
Assuming he needs this information are there any alternatives to directly accessing the master databse?
(That approach seems dangerous and may not work with later verisons of sql.)
TIA,
Barkingdog