Monthly Archives: March 2012

Retrieve a specific property from Active Directory

You want to retrieve the MemberOf property for an Active Directory user. //pass in AD server name, account , password that can access to this server DirectoryEntry entry = newDirectoryEntry(“LDAP://dc1.localserver.localdomain”, “Administrator”, “password”);   DirectorySearcher mySearcher = newDirectorySearcher(entry); //someone is the … Continue reading

Posted in .Net | Tagged , , | Leave a comment

Northwind in Microsoft SQL Server 2012

Finally SQL server 2012 is working and able to attach Northwind database to it. I am able to enable SQL authentication. What are the out coming bugs I will find??? Stay tuned. You can download the Northwind.mdf from my skydrive … Continue reading

Posted in .Net | Tagged , | 16 Comments

Error 1330.A file that is required cannot be installed because the cabinet file D:\1033_ENU_LP\redist\VisualStudioShell\VSIntSetup\cab12.cab has an invalid digital signature

You might hit the error below when you are installing SQL Server 2012. ——————————————————————- Error 1330.A file that is required cannot be installed because the cabinet file D:\1033_ENU_LP\redist\VisualStudioShell\VSIntSetup\cab12.cab has an invalid digital signature. This may indicate that the cabinet file … Continue reading

Posted in .Net | Tagged , , , , , | 7 Comments

C++ Day 2012 – Effective C++ programming with Visual Studio

C++ Day 2012 http://www.microsoft.com/malaysia/events/vc/ Effective C++ programming with Visual Studio The slides you can download from skydrive.

Posted in .Net | Tagged , , | Leave a comment

How to loop through all properties in Active Directory search result

The below code will search for an entry and loop through the properties in the Active Directory. //pass in AD server name, account , password that can access to this server DirectoryEntry entry = newDirectoryEntry(“LDAP://dc1.localserver.localdomain”, “Administrator”, “password”);   DirectorySearcher mySearcher … Continue reading

Posted in .Net | Tagged , | 1 Comment

How to read from XML document using XMLDocument

How to read the XML element is somehow identical to How to update xml element. You can see the following lines from the How to update xml element sample. XmlNodeList nodeList = xDoc.GetElementsByTagName(“value”); nodeList[0].InnerXml = “zzz”; What you need to … Continue reading

Posted in .Net | Tagged | Leave a comment

This database file is not compatible with current instance of SQL Server

When you double click on mdf file then you might hit the below error message. ————————————————————————————– This database file is not compatible with current instance of SQL Server. To resolve this issue, you must upgrade the database file by creating … Continue reading

Posted in .Net | Tagged , , | 9 Comments