WMI error in SQL Configuration Manager

   Today I spent a couple hours wracking my brain over an error I received in the SQL Reporting Services Configuration Manager: "A WMI error has occurred and no additional error information is available". Without much luck searching Google in finding an answer, I decided to try the basic fundamentals in solving errors for complete noobs, checking if things are installed / running, etc. Then I realised that my SQL Server 2005 Database instance was SP2 and SQL Reporting Services was installed only as SP1. The error resulted in the fact that I had incompatible versions installed.

   I was able to solve this issue by downloading Microsoft SQL Server 2005 Service Pack 2 and installing it against my instance of SQL Reporting Services.

   This goes out to all my other programming comrades out there. :-) Let me know if this did the trick for you or not!

Tags: C#, .net, Reporting Services, Microsoft



DataTable.Compute() Method

   If any of you have worked with the .net DataGrid from Visual Studio 2003, then right off the bat I am going to say sorry. I am personally not a huge fan of it and whenever I use it, it results in a lot of frustration and a few muttered choice words. I'm sorry, but I'm so in love with the Infragistics UltraGrid that I haven't had time to really get involved with the MS DataGrid. Anyway, I digress.

   A client of mine had made a request to take the total of a column from the MS DataGrid and in turn, spit it out into a TextBox. Alright... So my first reaction was to loop through each individual record in the grid. It would have worked, but it would not have been pretty, nor speedy by any means. Then I got to wondering if the DataGrid itself had means of calculating the total of a column. I did some quick research on the subject and alas, I could not find a total for the DataGrid. From there I got to thinking, "Well, if the grid is really just an interpretation of it's DataSource, maybe I should be looking at the DataTable?"

Bingo.

   I would like to present to you DataTable.Compute! With this Method, you are able to return a result you are looking for by using simple DataColumn Expressions. In my instance, I wanted to return the sum of one Column. In order to get this result, here's what I had dumped into the TextBox:
textBox1.Text = "$" + dtPurchases.Compute("SUM(Amount)", string.Empty).ToString();
   I was able to successfully return the total Amount from the grid. Classy! From here, you could even expand the functionality of the Compute method and use the second input to filter your results. Say we wanted to return only Billy's results, we could do so by easily searching specifically for their results:

textBox1.Text = "$" + dtPurchases.Compute("SUM(OrigEquityAmt)", "UserName = 'Billy'").ToString();

 

   Excellent! This is quite a time saver compared to older grid totalling methods, such as looping through each row, accumulating the total of a column. I believe it's also a lot more efficient than querying the sum apart from the grid results from a SQL Database. Regardless of how you want to look at it, DataTable.Compute sure saved me a little trouble!

Tags: Technology, .net, Microsoft, DataTable



Microsoft Visual Studio Express

   A few days ago, a guy walked into our office at Famous Davis, interested in potentially becoming a part of the programming world. He wasn't sure where to begin. He has never touched a line of code, tested software or answer calls for a support line. He didn't know the potential in the field or if it's even worth a shot. I was impressed that someone with no prior experience in computers beyond normal use would be interested in such a field. Yet, he is looking for something new to try for a line of work as his current field is something that he wants to make a closed chapter in his life.
 
Microsoft Visual Studio Express   After a quick talk with my Dad on what is available in the wonderful profession of software development, he was on his way. I told him I would check into a few resources to get him start in Microsoft development. I knew Microsoft had a good deal of resources and a free version of Visual Studio, but what I had not realised is exactly how much they offer beginners. Complete beginners at that. I managed to find their Beginner Developer Learning Center, which has everything needed to start coding, even with no prior coding experience. I've always been a Microsoft Fanboy, but this is absolutely amazing to me! I understand behind the scenes it means if Microsoft can get more developers, it means more money for them in the end. I'm quite alright with that. Microsoft treats their developers great and I'm very pleased to witness that they bend over backwards to help see that a man with no experience can potentially start a new career.

Tags: Technology, Microsoft, Work



Welcome to the Social

w00t! Zune just released their 2.0 firmware. So far it's got a lot of sweet additions that I will be dure to take advantage of. First off, they caught on to the podcast movement, which (to me) is a very fresh experience that I will have to take advantage of. They also sort of revamped their "Social" aspect, allowing the Zune user to share music from Zune-to-Zune, but also off their new social network (don't quote me, I'm still running off of excitement). it kind of appears their social network is similar to that of last.fm in regards that it displays your last play. Anyway, check out my Zune card:

http://social.zune.net/member/nickcdavis


Tags: Zune, Social Networks, Microsoft, Firmware, Media, Technology



I just Wooted a Zune

woot.com has Brown Zunes for $80 today! YES.

 

So I officially bought a Brown Zune, the saddest color of them all. I don't have any buyer's remorse yet, and I promised Jacinda that we would get a new faucet for the bath tub. She seemed happy about that. Thanks darling! Hopefully, now that woot.com successfully roped me into buying a Zune, they'll be done with the sales (I'd hate for them to have a cheaper deal in the future).


Tags: Zune, Microsoft, Purchases, Jacinda, woot



ASP.Net URLMappings

Alright, Still in process of tweaking my blogging tool, Europa, for SEO success. One of the points on the list from Chris was to make my URL's cleaner. Before today, I was using the standard querystring method of reaching pages. The problem with these, is that search engines have a hard time digesting them (Let alone humans.)

At first, this project of converting my links sounded very tedious. Initially I was thinking I'd have to write some elaborate routine on publishing an HTML page after writing a blog, similar to how blogger does it. Not only would I have to make an HTML page for each blog, but I would have to update the extra content (such as "last 10 blogs") in case I wanted to archive them, keep tabs on a main page, rss feed, etc etc etc. Didn't sound appetising at all.

Dissapointed and overcome by this method, I set on a search to find a nice and easy route. Lo' and behold, Microsoft never ceases to amaze me. URLmappings totally made my life easier. They allow you to set a sort of virtual path to your page, yet, still taking in querystring information.

For example, the link to my recent blog, "Lucky Man". It's original (and working) path is:

The after effect of URLMappings is as follows:

Sweet, huh? All I had to do was create an XML file that is referencable to my web.config file. For example, I have a file called URLMapping.xml. This contains all my URL Maps. Example:

<?xml version="1.0" standalone="yes"?>
<urlMappings enabled="true">
   <add url="~/346/2007/9/27/Lucky-Man.aspx" mappedUrl="~/blog.aspx?bID=346&amp;Blog=Lucky+Man" />
</urlMappings>

 

Now, I reference URLMapping.xml from the Web.Config file of my website:

<configuration>
   <system.web>
      <urlMappings configSource="URLMapping.xml" />
   </
system.web>
</configuration>

 

 

That's all there is to it! So now when I save a blog, it opens the URLMapping.xml into a Dataset, quick add the links and save it back. Couldn't be easier.


Tags: Technology, SEO, URLMappings, Microsoft, C#, ASP.NET, Europa, Blog, Visual Studio



Microsoft Shoots for a Creative Edge

For almost a decade now, Mac's primary selling device is the fact that they are cute, trendy and very eye-appealing. Sure, people can debate as much as they like about how the software is better or how the hardware is better. Today, however, Apple now manufactures their computers with the same Intel-based hardware that PCs do. Also, any software that was once uniquely designed for Mac's is now available on PC. In my opinion, really, the only selling tool they have left is the fact that the name "Apple" portrays a feeling of quality, prestige, media productivity, etc. the point of this blog isn't to bash Apple, if you run an Apple and enjoy the experience, that's cool.

The point I am trying to present is this: Apple has made a point to develop a feeling around their product. It feels good to own an Apple. People view you differently. It makes the person look and feel creative. This is something Microsoft has not even remotely attempted in the past. Microsoft is Microsoft. It's boring, nothing new, nothing different.

Well, not until now, anyway. Though most of their marketing is geared towards productivity and business, they are making an effort to get people to view Microsoft Windows Vista differently than previous versions.

http://clearification.com/

When I first saw this site, it instantly grabbed my attention. It's creative, beautiful, simple, but will have something new every time. I'm not sure what the actual purpose is behind the site. I don't' know if they have unveiled yet. It's apparently a series of chapters about a man that has an over achiever disorder and is admitted to an institute for it. You'll notice a lot of shots displaying Vista. I'm sure they will wrap it up showing "how awesome" Vista is. If not, Microsoft is advertising their new OS on a trendy site, anyway.

Basically, it looks like Windows is trying to tap into the younger and/or creative crowd and attach a feeling onto their new OS while there is still some mysticism to it. I have a beta of Vista installed on my laptop currently and puts-ed around it for a while. I will admit, it's very attractive. They added a lot of bells and whistles as well as a lot of graphic enhancements. I assume that Microsoft is going to try and battle Apple with a cuter OS and a newer creative feeling to win a few mac users over as well as keep their current media-rich user-base amused.

As for me. I get into creativity, but I am also a huge fan of practicality. I'll probably stick with XP until I find Vista worthy of my computer. Office 2007, however, is a different story. That baby is going on as soon as I get my hands on it.

Tags: Archive_Blogger, Marketing, Microsoft, Technology