Is there a table in the SCCM database that stores the device type information? - sccm

I will like to be able to differentiate between a desktop, server, virtual server and I was wondering if there is a table in the SCCM database e.g. Device Type that would store this information?

Yes, you can use the view "v_GS_OPERATING_SYSTEM". Or use the v_R_System one (attributes 'Operating_System_Name_and0').

Related

Specifying a database in JDBC URL for Netezza

When connecting to Netezza via JDBC, the database in the URL is a required field - e.g. the value sales in the example URL jdbc:netezza://main:5490/sales;user=admin;password=password
The first time I connect to a Netezza instance, I don't (necessarily) know the name of a database on the appliance. Guessing a database name is a very time consuming exercise.
In this scenario, what value should I provide? Is there a "use default" option, a way to list databases, or a specific database name that will always work (e.g. a system database)?
Netezza will always have one main database: system.
You cannot delete the system database.
I would suggest that you connect to jdbc:netezza://hostname:5480/system.
Once connected, you can list the databases that your user has access to, using
select database
from _v_database;
I can't answer definitively, but it appears that every Netezza appliance by default has a database named TESTDB. This is at least true for all the appliances to which I have access.
Users or administrators may be able to delete this database, but it's a good bet if you need a database to which to connect.

What is the best use of provided SQL Database table in Windows Azure Mobile Services?

I have been experimenting with Windows Azure Mobile Services. I am impressed that it creates a table for me and a database connection along with projects in various platforms. I wish the data were Windows Azure Storage however, because SQL Database can be expensive.
My thought is, since it is already provided, it makes sense to use it to store account information. Then I can use Azure Storage for frequently changing data. What minimal information should be necessary for such a use?
Here is a possible table design.
unique_id: GUID
email_address : varchar
oath_provider_choice : varchar
oath_yahoo : varchar
oath_google : varchar
oath_microsoft : varchar
Does this make sense or is it too much?
You can access Azure Table Storage from Mobile Services using the Azure Module. I have a pretty extensive sample here (http://chrisrisner.com/Mobile-Services-and-Windows-Azure-Storage) which shows how to insert / update / delete / read tables and rows from Mobile Services Table Scripts (effectively bypassing using the SQL database). It also shows how you can use blob storage. Now that Mobile Services has Custom API, it might make more sense to use that as opposed to the table scripts. You can also communicate directly with table storage (warning: this would require having the account name / key in your client app). As pointed out in the comments, currently each table in Mobile Services generates an ID column which has to be a bigint.

How to add one more SID for Database instance? Oracle

I want to add one more SID for database? How to do it?
You can't. An Oracle database has a single SID. You can create multiple service names for a database. I'm not sure why you would want to have multiple SIDs but I suspect that whatever you want to do you can do by using service names.

How to Maintain a Common data over windowsphones?

I am creating an offline app,which have a table of data(SQL)..And that data must be in all the phone using my app...The Application must update this table whenever the phone gets connected to Internet.The Users can insert,update but cant delete their data in the table.
I want this table to be in a common place and store the table to Isolated Storage for offline usage .In my search I found that we can do this through OData with SQLAzure in cloud..I do want to know is there any other way of doing it?
You can use sql-ce dabatabase from mango which is stored in IsolatedStorage.
Here is good article.
For online updating I always use custom webservices running on my server, which is not that hard to develop.

How To Store Record's In WindowsPhone

i Just in windowsphone . i want store data as record in WP . i don't want manage file manually.
i want know is it something like sqlserver for windowsphone to store record's and Retrieval thats
thanks.
You can use the built in SQL CE database. You can also use third party databases such as Sterling and SQLite if you prefer (there are multiple SQLite wrappers available).
You can use a local database in Windows Phone since Mango update.
Please refer to this tutorial for a full how-to.
You may try to use the PhoneApplicationService.Current.State.Add(settingName, value); to store the value in the Phone application...

Resources