Sccm database query to get all hardware info
hi all
i have a sccm db i need to get all system hardware info where sql server is installed
result set should be
sql version
system processor info
can u help on this
You can use a query based on v_GS_installed_Software and v_GS_Computer_System SQL views, something like:
select
from
v_GS_installed_Software vIS
join
v_GS_Computer_System vSC
on
vIS.ResourceID=vSC.ResourceID
where
vIS.ProductName0 like '%SQL Server%'
Ofcourse the Hardware inventory has to be enabled and collected first.
Similar Messages
-
Oracle query to get all occurences of a text in a string
Hi
Does anybody know how to write a query to get all occurences of a text in a string in different rows of the table
For eg:
I have a string <aa>bb</aa><aa>cc</aa><aa>ddd</aa>
I have to find every occurence of <aa> and get the data between <aa> and </aa>
So the output should be
bb
cc
ddd
I think this can be done by using a regular expression but I dont know how.
Can anyone help me?
Thanks in advance.user2360027 wrote:
BluShadow,
The query gives correct results if i only have <aa></aa>
What if i have <ff></ff>?
Example:
<aa>bb</aa><aa>cc</aa><aa>ddd</aa><ff>dsd</ff>
I want to have the following (dsd should not be there in the result)
bb
cc
dddThis is a new requirement and not what you asked for in your original post. Perhaps you should tell us exactly what you are trying to achieve and what database version you are using to save us guessing.
To crokitta,
This version will deal with multiple rows..
SQL> ed
Wrote file afiedt.buf
1 with t as (select '<aa>bb</aa><aa>cc</aa><aa>ddd</aa>' as x from dual union all
2 select '<aa>xx</aa><aa>yy</aa>' from dual)
3 -- end of test data
4 select x, vals
5 from (
6 select x, regexp_replace(REGEXP_SUBSTR (x, '>[^<]+', 1, lvl),'[<>]') as vals
7 from t
8 ,(select level lvl from dual connect by level <= (select max(length(regexp_replace(x,'[^>]*'))/2) from t))
9 )
10 where vals is not null
11* order by 1,2
SQL> /
X VALS
<aa>bb</aa><aa>cc</aa><aa>ddd</aa> bb
<aa>bb</aa><aa>cc</aa><aa>ddd</aa> cc
<aa>bb</aa><aa>cc</aa><aa>ddd</aa> ddd
<aa>xx</aa><aa>yy</aa> xx
<aa>xx</aa><aa>yy</aa> yy
SQL> -
i have a friend who was going to sync her phone with my computer to get the new update.. how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..
First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
3. Connect her phone, iTunes running, do not sync at this point.
4. Store>Authorize this computer.
5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
6. Right click in the device pane & select reset warnings.
7. Right click again and select backup.
8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
You should be good to go. -
bought a new ipod touch 5G, can I get all my info from my iphone 5 to my new ipod touch 5G without having the iphone anymore?
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
Restore from an existing backup of the iPhome -
I recently tried to update my iPhone 3 software via my mothers Mac book comp - during the upgrade I lost all my music and calendar dates and now the iTunes on my phone has my mothers iTunes detail - how do I get all my info back on the phone?
Restore it using the computer you normally sync with.
-
SQL Query to get All AD Groups and its users in Active Directory
Hi,
Is there any query to get all AD groups and its user in an instance of a SQL server?Check this blog.
http://www.mikefal.net/2011/04/18/monday-scripts-%E2%80%93-xp_logininfo/
It will give you more than what is required. If you dont want the extra information,then you can try this.. I took the query and removed the bits that you might not require.
declare @winlogins table
(acct_name sysname,
acct_type varchar(10),
act_priv varchar(10),
login_name sysname,
perm_path sysname)
declare @group sysname
declare recscan cursor for
select name from sys.server_principals
where type = 'G' and name not like 'NT%'
open recscan
fetch next from recscan into @group
while @@FETCH_STATUS = 0
begin
insert into @winlogins
exec xp_logininfo @group,'members'
fetch next from recscan into @group
end
close recscan
deallocate recscan
select
u.name,
u.type_desc,
wl.login_name,
wl.acct_type
from sys.server_principals u
inner join @winlogins wl on u.name = wl.perm_path
where u.type = 'G'
order by u.name,wl.login_name
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
Query for getting all function and procedure inside the packages
hi All
Please provide me Query for getting all function and procedure inside the packages
thanksAs Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
If you are looking for the packaged procedures and functions source then use user_source data dictionary
select a.object_name,a.procedure_name from user_procedures a,
user_objects b
where a.object_name is not null
and a.procedure_name is not null
and b.object_type='PACKAGE'
and a.object_name=b.object_name -
just bought a new iphone 4s 16gb my sim worked correctly after puting and old profile on the phone so I could get all the info now it says invalid sim what can I do o fix this?
I suspect unless he had some items in iCloud backup then they are gone. Connecting an iPhone to a different library from that to which it was previously connected will result in the device asking if you want to erase it.
-
if i am to sync my phone to a different computer and it has been backed up will i be able to get all my info back (photos, contacts, etc)??
Correct. When you update via iTunes all synced media that is not in your iTunes library will be lost.
As IO said before:
You can redownload most iTunes pruchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
I do not think it included audio books. -
Query to get all ports assigned and used by EBS instance.
Hi,
Can some one pleaase help to get
Query to get all ports assigned and used by EBS instance.
Help is appreaciated.
Regards,
MilanMILAN RATHOD wrote:
Hi,
Can some one pleaase help to get
Query to get all ports assigned and used by EBS instance.
Help is appreaciated.
Regards,
MilanIn addition to the thread referenced above by Helios, please check the context files and (Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1] -- F. List of Ports to Open in a DMZ Configuration).
Thanks,
Hussein -
I want to give my old iphone 4 to my daughter and need to get all her info from her old iphone 3 onto a new computer. The PC she synced with is dead and she does not want to loose all her contacts and music. How can I do this?
To effectively transfer ownership of the iPhone requires that it be "restored" as a new device.
... The PC she synced with is dead
The iPhone is not a backup device. Your computer backs up the iPhone, not the other way around. What you use to back up your computer is up to you - Macs use Time Machine. I assume PCs use something similar.
If her PC backup is dead you will have difficulty extracting content from the iPhone since it is not designed to work that way.
All her Apple purchases can easily be transferred to another iPhone. However, her contacts will be gone, as will any music or other contact obtained from sources other than Apple.
There are a number of third party utilities that claim to be able to extract content from an iPhone. See wjosten's procedure here:
https://discussions.apple.com/docs/DOC-3141 -
i am picking up my new ipad this morning and turning over my ipa 2 to my wife. how do i get all my info apps, etc to my new ipad and wipe pout all on my existing and then how does she log in register with my old ipad?
Restore your new iPad from your most recent backup of your iPad2 in iTunes when you set it up, and then set up your wife's iPad2 as new device in iTunes by clicking on 'restore' on the main summary screen.
Alternatively, you can just go to 'Settings>Reset>Erase all Contents and Settings'. -
SCCM Collection query to get the Linux machines details
Hi,
Can I get the SCCM collection query to create list of Linux machines . Please help me to getHi,
Yes, you can.
You use collections to manage groups of Linux and UNIX servers in the same way you use collections to manage other client types. Collections can be direct membership collections or query based collections that identify client operating systems, hardware
configurations, or other details about the client that are stored in the site database.
For more information, please review the link below:
How to Manage Linux and UNIX Clients in Configuration Manager
http://technet.microsoft.com/en-us/library/jj573941.aspx
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Query to get all Project Server Customisation.
Hello mate-
I am trying to find sample queries which I can run in either published or reporting db in order to get all the front end level customization that I may have done in my PWA 2010 instance. Like,
1. Users, Security. Groups, category.
3. Views a& Setup.
4. PDPs, workflows.
5. project site and settings.
6. time & task related settings and data
etc,.,..
I am planning to create a master data sheet for my customer.
Thanks and looking forward to read from you guys.
Dev EPM ConsultantHello,
To data is stored in the Published DB, you shouldn't be querying this DB directly with T-SQL, you will need to use the PSI. The PDP's and workflows will be stored in the SP content database, again you shouldn't query this DB directly either, you will need
to use the SP object model. If you are not familiar with the PSI, download the Project 2010 SDK:
http://www.microsoft.com/en-gb/download/details.aspx?id=15511
We have done something similar before that used the PSI to get all the Project Server config and wrote this to a word document - works very well but did take a lot of dev time.
Alternatively look at a 3rd party product:
http://www.fluentpro.com/productsfluentbooks.html
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
How do I get ALL the info records for a materials plants using an SAP FM?
I need to get all of the info records from the EINE table for a material - all of its sites (plants, we are using SAP retail).
The problem is this: I call the FM MD_INFORECORDS_READ - here is the code for my call:
CALL FUNCTION 'MD_INFORECORDS_READ'
EXPORTING
imatnr = t_output_data-article <-- the material number
iliefnr = lv_eina_key < -- see below on how I get this
importing
eeine =
TABLES
exp_eina = it_eina
exp_eine = it_eine
EXCEPTIONS
no_eina_record_found = 2
no_eine_record_found = 3.
lv_eina_key is taken from this call:
SELECT SINGLE altkn INTO lv_vendor_no
FROM lfb1
WHERE lifnr = lv_site (plant)
AND bukrs = t_output_data-company_code.
The probelm is it only returns the first record it finds for each site. There could be multiple info records, each one based a a different Valid From date for each site. I need either ALL of the EINE records for each site OR the most current one
I know I am not using ALl of the parms in the FM - but are there maybe there are other ones should I be using.
Perhaps there is there another FM I should be using - cause I do not have the info record number to pass.
Thanks.
ScottNever mind - the FM does work - this was bad data.
Maybe you are looking for
-
Pricing condtion value of sales order is not reflects in Delivery doc !!
Hi SAPients, I have an issue like my client is maintained condition record for a certain material valid from eg: 01.06.08 to 03.06.08. Now he has done a sales order on 03.06.08 and required delivery date is 04.06.08 but pricing date is 03.06.08. In c
-
External hard drive not recognised in start up options
Hi! I'm struggling to get to grips with creating a bootable external drive - any advice would be very welcome! I've recently bought a LaCie Triple Interface 300GB external drive to use for backup storage and to use as a back up bootable drive should
-
Upgrade from 7 to 8 results in CFIDE missing
We just upgraded our test server from 7 to 8. The upgrade seemed to go fine, and our test sites are working. Toward the end of the upgrade process, the installer took me into CF Administrator, which worked fine. After the installer completed, it t
-
Hi All, I have already posted regarding the same kind of error .. I have been asked to check the pubilc key names . But this time i have double checked the key names even then i am getting such error . Unable to forward message to JCA adapter. Reas
-
New ipod won't restore from icloud
If I set up my ipod as new, can I still restore from icloud? I purchased a new ipod touch yesterday, and in the course of setting it up, it will not restore from icloud, so I thought I might be able to set it up as new and still restore from icloud o