About a belle

Who am I?
- Donabel Santos
- Senior SQL Server Developer/DBA at QueryWorks Solutions
- Instructor at  British Columbia Institute of Technology (BCIT) School of Computing and Academic Studies. Currently teaching Web Development, MySQL and SQL Server
- SQL Server Business Intelligence Analyst/Developer at the University of British Columbia (UBC)
- MySQL Core, MySQL Professional
- MCP, MCTS, MCITP-Developer, MCITP-DBA and most recently, MCT! :)
- How did I get here? Here’s the three things that got me here.

I enjoy working a lot with SQL Server. I’ve been working with SQL Server since SQL Server 2000. I’ve worn many different hats – trainer (been teaching/training since 2003!), developer (design, scripts, stored procedures, functions, tuning, troubleshooting, SQLCLR, SQLXML, integration with ERPs, CRMs and PowerShell), DBA (installing, configuring, tuning, maintenance, transaction log shipping, replication, database mirroring, partitioning etc), BI developer (SSRS, SSIS, ETL, SSAS, OLAP, Cubes, MDX) – but one thing remains. I still find working with SQL Server a lot of fun.

Besides SQL Server, I also have extensive experience working with SharePoint (installing, configuring, creating custom pages, branding, web parts, features, workflows) and general web development (HTML/CSS/jQuery/C#/ASP.NET/XML).

I’m a proud member of PASS (Professional Association of SQL Server). I blog (sqlmusings.com), tweet (@sqlbelle), speak (VANPASS, SQLSaturday, etc), train (BCIT, QueryWorks Solutions) and write (Idera, SSWUG, etc).

Contact me
Here is my shameless plug. If you need any SQL Server help, don’t hesitate to ask. Call me, email me, post a comment in my blog. Don’t worry, I don’t bite. Contact details at the QueryWorks Contact Page (or you can send me an email at donabel dot santos at queryworks dot ca.

What is this blog for?
This blog contains some of the things I learn about SQL Server, some of the gotchas that got me, and some of the gotchas I escaped from thanks to other people’s blogs, articles and what nots.

These are my own discoveries as I work with SQL Server. Everyday, I learn a new thing or two about SQL Server. I learn a lot from colleagues, students, and other books and blogs. I am using this blog as a medium to retain a little fraction of this learning, and to share it in case it’s useful to someone else.

Geeky as it sounds, I *really* love working with SQL Server and I *really* love teaching SQL Server. I am excited to learn more about this product, be it development, reporting, administration, SQL on the cloud, SQL clustering – the sky is the limit.

I used to be the resident SQL Ninja at Black Ninja Software. Black Ninja Software is a forward thinking, proactive SharePoint/ASP.NET/SQL Server consulting company in Vancouver, British Columbia.

As a SQL Ninja, I worked on the SQL projects for clients – remote administration, configuration, reporting, optimization, profiling, and a whole lot of querying.  I also did corporate SQL Server training. At Black Ninja, I work with some of the coolest, smartest people around town.

In another previous job, I worked as a DBA for one of the biggest advertising companies in Canada (for their real estate and automotive vertical). I also used to work a lot with MySQL and SharePoint (both WSS and MOSS), so you will find tidbits about MySQL and SharePoint in this blog. I used to actively blog about SharePoint in sharepointmusings and have been involved in administration, customization (branding, web parts, features, BDC, SSRS integration) of SharePoint projects.

SQL Server Connection

Did I mention yet that I *love*  working with SQL Server?

My experience in SQL Server 2000/2005/2008/R2 includes:
- user defined functions (UDFs), Stored Procedures, Triggers
- general administration
- security and user/permission management
- backup/restore
- general troubleshooting, tuning, profiling
- high availability strategies (log shipping, database mirroring, replication)
- playing with 2008 new shiny things (policy based management, resource governor, Change Tracking, Change Data Capture, SQL Audit, Management Data Warehouse)
- query optimization, indexes
- SSRS, SSNS, SSIS, SSAS
- integration with SharePoint
- training/mentoring/teaching
- PowerShell

My previous positions include:

- SQL Server Developer/DBA/Ninja at Black Ninja Software in Vancouver, British Columbia

- SQL Server Developer/DBA (database administrator)
- SharePoint/SQL Server/C# developer/consultant
- MySQL/PHP/Perl developer
- Linux sys admin
- Web developer (HTML/XHTML/CSS/Javascript/XSL)

Previous Talks/Speaking Engagements:

I also like sharing what I learn either in classroom lectures, or speaking engagements within the development community.
Check out my past presentations and materials at http://www.sqlmusings.com/presentations-and-webcasts/

Additional Stuff About Me:

belle’s BCIT Profile 1 2
belle’s SharePointMusings
belle’s LinkedIn

Certifications

Microsoft Certified Trainer

Microsoft Certified Trainer (MCT)

Microsoft Certified Information Technology Professrional (MCITP) - DBA, Developer

Microsoft Certified Information Technology Professrional (MCITP) - DBA, Developer

Microsoft Certified Technology Specialist (MCTS)

Microsoft Certified Technology Specialist (MCTS)

Microsoft Certified Professional (MCP)

Microsoft Certified Professional (MCP)

*Postings in this blog are provided “AS IS” with no warranties
*avatar by faceyourmanga (http://www.faceyourmanga.com)

Resolving SSRS and PowerShell New-WebServiceProxy Namespace Issue

February 4th, 2012

When you’re working with PowerShell and SSRS, you may occasionally come across a script that works once, then just mysteriously decides not to work anymore on a second or third invocation. Or it may just not work period, even though you think the syntax is short and straightforward, and you know you’re not misspelling any syntax.

Please note I am running this on the PowerShell ISE, and PowerGUI – and tried on both PowerShell V2 and V3.

Common Task

What was driving me crazy (at some point, I promise I’m back to my sane self now) was trying to create a folder with property. The syntax is pretty straightforward, like this:

Import-Module SQLPS -DisableNameChecking;
$ReportServerUri  = "http://localhost/ReportServer/ReportService2010.asmx"
$proxy = New-WebServiceProxy -Uri $ReportServerUri -UseDefaultCredential -Namespace SSRS ;
$proxy
$proxy.GetType().Namespace;	#gives me SSRS
 
#create a folder
$property = New-Object  "SSRS.Property" 
$property.Name = "Description"
$property.Value = "This folder is for any HR related reports"
 
#we need a property array to pass to the CreateFolder method
$properties = New-Object "SSRS.Property[]" 1;
$properties[0] = $property;
$foldername = "HR_" + (Get-Date -format "yyyy-MMM-dd-hhmmtt");
$proxy.CreateFolder($foldername, "/", $properties);

Broken??

Should be simple, right? PowerShell says, nope, not today. You get this error:

Cannot convert argument "Properties", with value: "SSRS.Property",
for "CreateFolder" to type "SSRS.Property[]":
"Cannot convert the "SSRS.Property" value of type "SSRS.Property"
to type "SSRS.Property"." 
At C:\Users\Administrator\Scripts\SSRS\SSRS.ps1:22 char:1
+ $proxy.CreateFolder($foldername, "/", $properties);
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

Uh, what? Doesn’t that sound a little – wrong? It’s complaining about casting from SSRS.Property to SSRS.Property. It’s the same thing!

Read more

VN:F [1.9.7_1111]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.7_1111]
Rating: 0 (from 0 votes)
About a belle, 7.8 out of 10 based on 5 ratings
Share :
  • Digg
  • del.icio.us
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • TwitThis
< |||| > 1 2 3 4 5
VN:F [1.9.7_1111]
Rating: 7.8/10 (5 votes cast)
VN:F [1.9.7_1111]
Rating: 0 (from 0 votes)
About a belle, 7.8 out of 10 based on 5 ratings
Share :
  • Digg
  • del.icio.us
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • TwitThis
`