03-11-2005 08:34 AM - edited 03-13-2019 08:21 AM
Here a few queries I wrote
select num.DNOrPattern Ext, dev.description Owner, right(dev.name, 12) MAC, typ.name Model, loc.name Location
from dbo.device dev
inner join dbo.devicenumplanmap dvn
on dev.pkid = dvn.fkDevice
inner join dbo.Location loc
on loc.pkid = dev.fkLocation
inner join dbo.typemodel typ
on dev.tkmodel = typ.enum
inner join dbo.numplan num
on dvn.fknumplan = num.pkid
where PATINDEX('%SEP%',dev.name)=1
order by Ext
and
select right(dev.name, 12) MAC, count(dev.description) as Lines_on_mac_address
from dbo.device dev
inner join dbo.devicenumplanmap dvn
on dev.pkid = dvn.fkDevice
inner join dbo.typemodel typ
on dev.tkmodel = typ.enum
inner join dbo.numplan num
on dvn.fknumplan = num.pkid
where PATINDEX('%SEP%',dev.name)=1
group by dev.name
Enjoy......
05-06-2005 11:09 AM
Hello,
Do you known how to connect to a SQL database from .asp?
%Regards
Darek
05-06-2005 01:46 PM
Hi,
I am brand new to Call Manager. Just got it a week ago. Can you explain to me exactly how to run these queries? I can log in to CCM server.
Thanks,
Mark
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide