SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Little Love Lost for SMO


Little Love Lost for SMO

Author
Message
Phil Factor
Phil Factor
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4740 Visits: 3031
Comments posted to this topic are about the item Little Love Lost for SMO


Best wishes,

Phil Factor
Simple Talk
Tom Thomson
Tom Thomson
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25389 Visits: 12492
An excellent little item.

This is one of those areas where MS documentation is almost completely useless. It also appears to be an area where the interfaces is a convoluted mess. I imagine these two factors together discourage most people from using it. I wish I believed there was some chance of Microsoft's providing decent documentation for it and/or (preferably 'and') cleaning up the interface. DMO I could live with - SMO I can't, and I have no intention of even trying to learn to use this appalling mess.

Tom

jasona.work
jasona.work
SSCrazy Eights
SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)SSCrazy Eights (9.8K reputation)

Group: General Forum Members
Points: 9822 Visits: 12526
I've thus far not used either (hey, I still a noob...) But I have run into the exact situation as far as finding answers to problems goes...

I think this is completely appropriate, and accurate: XKCD 979

Jason
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)

Group: General Forum Members
Points: 207426 Visits: 41961
BWAA-HAAA!!! I love it. Powershell... deprecation warning. Yeah... let me run out an learn how to use that!:-P

The more things change, the more they stay the same. What stays the same? The level of effort necessary to use the next version of SQL Server. Hehe

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Peter Schott
Peter Schott
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2696 Visits: 1930
SQLPS really should be deprecated. It's a really limited version of Powershell designed to just run the SQL modules. Making that into a module to use with Powershell makes a lot more sense. Add this new module to Powershell and you'll have the full functionality of Powershell along with the SQL functionality. I remember being somewhat frustrated trying to use the full functionality of Powershell w/ SQLPS and searching for the instructions to just add that to the native Powershell within my profile. I did that and have been pretty content since. There's a learning curve, but it can be really useful for automating some DBA tasks, doing audits, and even to semi-easily mix database calls with DLL calls in one interface. (If I can do it, it must be somewhat easy Smile )

I will admit that the SMO docs and examples have been shaky, but I have found a little more help with Powershell calling SMO. While it doesn't necessarily make it easier to use, the examples have been a bit more stable and have been written by people who needed a solution so generally work.

And Jeff, MS is trying to give us job security again. Remember when SQL Server was so easy it didn't need a DBA? Wink
Phil Factor
Phil Factor
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4740 Visits: 3031
I hope that everyone has seen Michael Wories blog post 'SQL Server Powershell is here!' http://blogs.msdn.com/b/mwories/archive/2008/06/14/sql2008_5f00_powershell.aspx which tells you how to have the SQLPS functionality in ordinary PowerShell. Actually, with SQLPSX, the need for all this has rather gone away! However, this blog tells you far more than is in the hopeless MSDN documentation about the good design intentions for SQLPS


Best wishes,

Phil Factor
Simple Talk
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)SSC Guru (207K reputation)

Group: General Forum Members
Points: 207426 Visits: 41961
Peter Schott (11/28/2011)
And Jeff, MS is trying to give us job security again. Remember when SQL Server was so easy it didn't need a DBA? Wink


Heh... yup. Now you need an expert in BI, an expert in T-SQL, and expert in data warehousing, a multi-lingual script expert, a Ninja DBA, a separate OPs department to run Windows, a couple of SAN experts, and someone who can write CLRs that work better than cursors. :-):-D

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search