Just found out this batch script from Microsoft. Maybe you ever found this solution, but better to share piece by piece than just share the link from Microsoft.
19 Mar 2012
15 Feb 2012
Forefront Identity Manager Service Failed to Start in SharePoint 2010
Did you ever got this when restarting your SharePoint 2010 machine?
Too bad that this thing is always happening every time you restart your SharePoint 2010 machine. Got the answer from a buddy in internet (thanks Michael Hanes, this is really helping me a lot!). I got to tell you, this thing happens after I’ve upgraded my SharePoint development box to Service Pack 1.
This is the simple fix, I hope you’ll find this thing helpful to you by looking at the series of images below. Please ask me anything if it not clear to you. Thanks!
30 Jan 2012
Simple Scheduled SSIS Package for Import Data
Well, next week will be a brand new workplace for me. This week means rest for me, and I’m happy with it. Anyway, I’ll share to you how to make a simple SQL Server Integration Service package to be scheduled every time. You don’t have to do a code, if your import job is very simple. I’ll show you more on next paragraph.
26 Jan 2012
Windows Live Writer is the Best Blog Writer!
Problems in SharePoint 2010, “The service was unable to start because the version of the database does not match the version of the product.”
Lately, I’ve updated my SharePoint 2010 development engine to SharePoint 2010 Service Pack 1, and after updating SharePoint 2010 to Service Pack 1, and starting all services, there’s one service won’t run, Forefront Identity Manager Synchronization Service. When looked at the Event Viewer log, it says The service was unable to start because the version of the database does not match the version of the product.
19 Jan 2012
How to Query SharePoint Web Analytics Reports from SQL Server
2 Des 2011
Tips: Simplify your ‘OR’ Logic in C#.NET
I think I do have a little tips for you to share. Not very significant tips, but you can use it for your daily practice.
Sometimes when you want to use a logic like this, it’s too long to write code.
- if (Fld.Type == SPFieldType.Choice || Fld.Type == SPFieldType.Note || Fld.Type == SPFieldType.Integer || Fld.Type == SPFieldType.Number)
- FieldContent = (string)Li[Fld.Id];
But you can simplify your code using this code below.
- if (",Text,Note,Choice,Integer,Number,".Contains(Fld.TypeAsString))
- FieldContent = (string)Li[Fld.Id];
Happy coding…!
24 Nov 2011
Take Screenshot of your Android Devices
How to take a screenshot on Android? A little stupid isn’t it? I’m currently working with Microsoft Products, but my device for daily and mobile email is based on Android. But I think I’m not the only one. Microsoft a little s**ks but I made a money, got a cool job because of their products, and became better understanding in IT Products and lifecycles. Well, as long as it’s an IT tips, I think it’s OK.
Here’s a little tips for you, if you don’t know it. Press and hold Home button and then right away press Power button (see screenshot of Samsung Galaxy Y, with red mark), then you’ll got your screenshot of your Android devices automatically in your SD Card. AFAIK, this will work in Android 2.3 Gingerbread. For Android 2.2 Froyo, AFAIK, may vary, some says that press and hold back button and then right away press Home button.
21 Okt 2011
Get All Items including inside SharePoint Folder Programmatically using SPQuery
Just sharing the knowledge, I want to share about how to get all items / documents programmatically without getting inside the folder and querying it again. So, without folders, all items whether inside a folder or not, will be shown upon your query result.
Awwww, I’m not in Windows 2008 mode to copy my code in here and show some screenshots, but that’s just fine.
- SPQuery Q = new SPQuery();
- Q.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>BOOK</Value></Eq></Where>";
- Q.ViewFields = "<FieldRef Name='Name' /><FieldRef Name='ID' />";
- Q.ViewAttributes = "Scope='RecursiveAll'";
After you code your query, then you can add ViewAttributes and add Scope=’RecursiveAll’ to the SPQuery object.
Done, and all items whether inside a folder or not, will be shown upon your query result.
18 Okt 2011
Tools to Get SPSite and SPWeb Aggregation ID for SharePoint 2010
It’s been a busy months for me, I can’t write anything on my spare time. But I tell you what, I’ve created a little tools to generate Aggregation ID so you don’t have to write code about it if you just want to query the Web Analytics on SharePoint 2010.
Just specify your URL and Level, and you’re good to go.
Usage:
Rdz.GetAggregationId.exe –URL <URL of SharePoint Site or SubSite> –Level [SPSite | SPWeb]
Below is the exe file that you can use. It based on .NET 3.5.
UPDATE: Thanks for Anand for noticing. I just realized that I haven’t include the DLL inside the ZIP file yet. Above, is the updated link. Thanks a lot and sorry for my mistake!