Quantcast
Channel: Symantec Connect - ブログエントリ
Viewing all articles
Browse latest Browse all 5094

Little tip for finding database tables

$
0
0

I often find myself peeking into Altiris databases with the goal of finding a particular piece of information. The only problem is, I rarely know what table it's stored in.

There are three options at this point,

  1. Stare vacantly at the database, scanning through every table name waiting for an internal bell to tinkle
  2. Google till you dribble
  3. Run a SQL Query to find your table

In case you are an option (3) type of admin, this is the query to use,

SELECT  *
FROM    sys.tables
WHERE   Name LIKE '%BIOS%'

SELECT  *
FROM    sys.views
WHERE   Name like '%BIOS%'

Where here, in this instance, I'm looking for tables and views whose name includes the string "BIOS". This is a truely invaluable little query, and very helpful when trying to update reports across database versions. It's even quite handy if you simply are feeling a bit nosey.


Viewing all articles
Browse latest Browse all 5094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>