Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQLServerCentral.com
»
Editorials
»
Little Love Lost for SMO
Little Love Lost for SMO
Rate Topic
Display Mode
Topic Options
Author
Message
Phil Factor
Phil Factor
Posted Saturday, November 26, 2011 12:51 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:10 AM
Points: 535,
Visits: 2,295
Comments posted to this topic are about the item
Little Love Lost for SMO
Best wishes,
Phil Factor
Simple Talk
Post #1212091
L' Eomot Inversé
L' Eomot Inversé
Posted Saturday, November 26, 2011 2:05 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 1:43 PM
Points: 7,182,
Visits: 7,280
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
Is minic a gheibheann béal oscailte dorn dúnta.
Is minig a cheapas beul fosgailte dòrn dùinte.
http://es.linkedin.com/in/tomthomsonsoftware
Post #1212093
jasona.work
jasona.work
Posted Saturday, November 26, 2011 10:04 AM
SSC-Addicted
Group: General Forum Members
Last Login: Today @ 11:08 AM
Points: 493,
Visits: 2,459
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
Post #1212131
Jeff Moden
Jeff Moden
Posted Sunday, November 27, 2011 9:22 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:41 PM
Points: 33,108,
Visits: 27,032
BWAA-HAAA!!! I love it. Powershell... deprecation warning. Yeah... let me run out an learn how to use that!
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.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
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."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1212214
Peter Schott
Peter Schott
Posted Monday, November 28, 2011 12:57 PM
Right there with Babe
Group: General Forum Members
Last Login: Yesterday @ 3:27 PM
Points: 739,
Visits: 931
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 :) )
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? ;)
Post #1212718
Phil Factor
Phil Factor
Posted Monday, November 28, 2011 1:13 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 2:10 AM
Points: 535,
Visits: 2,295
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
Post #1212726
Jeff Moden
Jeff Moden
Posted Monday, November 28, 2011 9:37 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:41 PM
Points: 33,108,
Visits: 27,032
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? ;)
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.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
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."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1212879
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.