Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Little Love Lost for SMO Expand / Collapse
Author
Message
Posted Saturday, November 26, 2011 12:51 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 7:03 AM
Points: 579, Visits: 2,519
Comments posted to this topic are about the item Little Love Lost for SMO


Best wishes,

Phil Factor
Simple Talk
Post #1212091
Posted Saturday, November 26, 2011 2:05 AM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Today @ 7:19 PM
Points: 8,684, Visits: 9,214
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
Post #1212093
Posted Saturday, November 26, 2011 10:04 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 11:00 AM
Points: 979, Visits: 5,090
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
Posted Sunday, November 27, 2011 9:22 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 9:50 PM
Points: 36,950, Visits: 31,458
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 "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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1212214
Posted Monday, November 28, 2011 12:57 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 9:31 AM
Points: 839, Visits: 1,269
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
Posted Monday, November 28, 2011 1:13 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 7:03 AM
Points: 579, Visits: 2,519
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
Posted Monday, November 28, 2011 9:37 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 9:50 PM
Points: 36,950, Visits: 31,458
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 "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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1212879
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse