Tables and Columns
What have we learned today? Well, these little gems have helped me out immensely today. I’m going to keep them handy for future use.
List all of the Tables in a Database
SELECT Name
FROM SYSOBJECTS
WHERE XTYPE=’U’
ORDER BY Name
List all of the Columns in a Table
SELECT Column_Name
FROM INFORMATION_SCHEMA.Columns
WHERE TABLE_NAME = ‘<Name>’
March 18, 2009 - Posted by everydayscott | work | learning sql, reusable SQL | No Comments Yet
No comments yet.
Leave a comment
About
I am an IT Implementations Technical Advisor for Take Care Health Systems. I’ve also been called an Application Administrator and Clinical Application Systems Specialist depending on who’s running the conference call. One of my Project Managers calls me a “Report Monkey”, which isn’t as flattering as one of the Trainers calling me “Tech Warlock”. I doubt I could put either on my email signature.
My workload consists primarily of Clinical EMR implementation, testing, and support and Pharmacy Application administration and support.
I am currently learning SQL Server 2005 and I have my eyes set on MCTS SQL certification.
Plinky- Cold rememdyTo keep symptoms at bay, I take a cocktail of 1) Claritin D 24 hour, 2) Tylenol Daytime cough syrup, & 3) Sudafed.
- Barstow, CA to Wilmington, NCIt's the entirety of I-40. 2,554 miles from end to end. Along the way is the Grand Canyon, Albuquerque NM, Amarillo TX, Oklahoma City, Memphis, Nashville, and the Great Smoky Mountains. I remember seeing this sign: http://www.city-data.com/picfilesc/picc5385.php Inspired me to want to drive it end to end.
- one Halloween I dressed up as the Eye of SauronEye of Sauron no one got it. I had to explain it to everyone. one lady thought I was a vampire and kept talking to me in a Dracula voice. but she also thought the guy dressed up as The Joker was just a party clown and asked why he wasn't wearing big clown shoes.
- my pantry is filled with staplesdry beans pasta rice can of stewed tomatoes
- Cold rememdy
what I’m listening to…- The Beatles - Abbey Road it’s peculiar that I grew up... October 28, 2009
- Ingrid Michaelson - Everybody September 29, 2009
- Interpol - Turn on the Bright Lights September 3, 2009
- My Morning Jacket - Evil Urges. August 18, 2009
- Wilco - Sky Blue Sky I didn’t like ‘A Ghost Is... July 10, 2009
- Paolo Nutini - Sunny Side Up It’s pretty good mood music.... June 24, 2009
- Sufjan Stevens - Illnoise Kind of a kooky album. Jury is out, I... June 1, 2009
- Red Hot Chili Peppers - Stadium Arcadium As I drove from work... May 21, 2009
- Pink Floyd - Dark Side of the Moon I needed some music at work... May 19, 2009
- Nickel Creek - Why Should the Fire Die I had my iPhone on... May 19, 2009
-
Photos





More Photos
Random Quotes- Jean Giraudoux"Only the mediocre are always at their best."
- Benjamin Spock"You know more than you think you do."
- Robert Half"Not admitting a mistake is a bigger mistake."
- David Sarnoff"Nobody can be successful if he doesn't love his work, love his job."
- Jean Giraudoux
Calendar
Twitter Updates
- RT: @nuka_cola: Borderlands first DLC “The Zombie Island of Dr. Ned” available Nov 24th http://bit.ly/hbDV3 | 18 hours ago
- RT: @ProFootballTalk: Chiefs officially cut L.J. http://is.gd/4QZ0d #NFL | 21 hours ago
- Re-inhabited Circle Ks http://www.pahomann.com/circlekgallerys/circlek.php | 1 day ago
- Birthday presents galore. Including baconnaise, bacon salt, and a solar powered emergency radio. Oh, and bandaids that look like bacon #fb | 2 days ago
- Smokey the Bear is way more intense in person RT: @mental_floss: Tonight's Quiz: Steven Wright or Mitch Hedberg? --- http://bit.ly/4gNpJo | 4 days ago
- I'm *this* close to finding a good trash can and throwing this EMR in the garbage. but I would need access to production to do that #fb | 4 days ago
- Eating an absurd spread for dinner. Chicken fingers, string cheese, pumpernickle bread, easy mac, & diet cherry dr pepper. Happy. #fb | 5 days ago
- Read the reviews, look at the customer images. LOL RT: @majornelson: via @stepto. http://bit.ly/LSAGl | 5 days ago
- Thanks to all for the birthday wishes. My 30s are off to a great start ! #fb | 5 days ago
- RT @FakeAPStylebook Refer as "Infallible Supreme Leader of the United Smurflands" when 1st appears in article then "Papa Smurf" afterwards | 6 days ago
Tags
bad officiating Battlestar Galactica Beck Diet better than digging a ditch birthday birthday cake campfire camping Christmas consumer spending Country Music Half Marathon feeling a little behind food football gift cards GTD Guitar Hero iPhone 3G ipod iTunes KILANFest last.fm late night games that ruin my Saturday morning learning sql listening to Ben Harper to the ends of the earth looking like an idiot losing weight Louisville Mac culture wars networking new job productivity reusable SQL rock band running running out of ideas for vacation activities Saturday is for gaming simplify media small annoyances The Bacon Weave The Super Bowl Titans Twilight Imperium vegetables video gamesArchives
Meta