WebProWorld IT Forum

Monthly Bandwidth limit on Apache 2.0.48?
The OS = Fedora Core 2
Monthly Bandwidth limit on Win 2k, Apache 2.0.48 (Edit:) on multiple virtual hosts? Can this be done?
Click to read more...

Windows Hosting Control Panels
Is it me or are most control panels only support IIS? I'm trying to find one that supports Apache as the web server
Click to read more...

Mysql running in fedora core 2
Please, i have one system with the RedHat 9 and another with Fedora Core 2, both running mysql server version 3.23.58, the hardware is the same
Click to read more...



Recent Articles

Microsoft CRM Customization secrets – second edition
This article is for advanced Microsoft CRM SDK C# developers. It describes the technique of direct SQL programming, when SDK doesn't have the functionality to do the job.

C# Numerical Library
The IMSL C# Numerical Library is the only mathematical and statistical library written in 100% Microsoft Visual C# .NET for complete compatibility and scalability with the Microsoft .NET Framework.

Microsoft Great Plains Customization and Development
When Great Plains Software was designing and developing Great Plains Dynamics/Dynamics CS+/eEnterprise - it placed several fundamental principles into the system.

Microsoft CRM Programming Secrets – tips for developers
This article is for advanced Microsoft CRM SDK C# developers. It describes the technique of direct SQL programming, when SDK doesn't have the functionality to do the job.

Removing Incoming Email in MS Exchange, C# Example
The purpose of one of our projects was MS Exchange handler for processing incoming email.



10.20.04

Microsoft CRM Customization: Integration With Third Party SQL Application/Database

By Andrew Karasev

Microsoft CRM - Client Relationship Management package from Microsoft Business Solutions was initially designed to be customizable with Microsoft Visual Studio.Net and one of its programming languages - C#.Net or VB.Net.

You can use ADO.Net, Web Service, Transact SQL scripting and stored procedures, deploy such SQL Server tools as Linked Server to all ODBC/OLEDB compliant database, including ORACLE, Sybase, Ingress, DB2, Unidata, Pervasive SQL, Ctree and even Lotus Notes/Domino. In this small article we would like to give you the clue on programming the integration with SQL third party Database.


First - use Microsoft CRM SDK to initiate communication with Microsoft CRM, we have it in C#:

String[] arr1 = coll.AllKeys;
     int loop1, loop2;
     for (loop1 = 0; loop1 < (arr1.Length>0?1:arr1.Length); loop1++)
       {
         String[] arr2 = coll.GetValues(arr1[loop1]);
         for (loop2 = 0; loop2 < arr2.Length; loop2++)
         {
           strAccountId = arr2[loop2].Replace("}",null);
           strAccountId = strAccountId.Replace("{",null);
       }
     }

     if (Page.IsPostBack==false)
     {
     // Server should be set with the name of the platform Web server
     string Server = ConfigurationSettings.AppSettings["ServerName"];

     // VirtualDirectory should be set with the name of the Microsoft
     // CRM Virtual Directory on the platform Web server
     string VirtualDirectory = "mscrmservices";
     string strDir = "http://" + Server + "/" + VirtualDirectory + "/";

     // BizUser proxy object
     Microsoft.CRM.Proxy.BizUser oBizUser = new Microsoft.CRM.Proxy.BizUser ();
     oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
     oBizUser.Url = strDir + "BizUser.srf";

     // CRMAccount proxy object
     Microsoft.CRM.Proxy.CRMAccount account = new Microsoft.CRM.Proxy.CRMAccount ();
     account.Credentials = System.Net.CredentialCache.DefaultCredentials;
     account.Url = strDir + "CRMAccount.srf";


Then you use ADO.Net for calling stored procedure with parameters to do the integration job:

    try
     {
       string SQLStatement="ICS_UpdateAccountPrivate '"+
         strAccountId +"' , '" + this.TextBoxWorkPerformed.Text +
         "' , "+doubleEncode(System.Double.Parse(this.TextBoxAnnualRevenue.Text))+" , "+
         intEncode(System.Int32.Parse(this.TextBoxNumberOfEmployees.Text.Replace(",","")))+" , "+
         doubleEncode(System.Double.Parse(this.TextBoxAverageGrowthRate.Text))+" , "+
         "'"+this.DropDownListOwnership.SelectedItem.Text +"' , "+
         intEncode(System.Int32.Parse(this.RadioButtonList.SelectedItem.Value))+" , "+
         intEncode(System.Int32.Parse(this.TextBoxCredit.Text.Replace(",","")))+" , '"+
         this.TextBoxComments.Text+"'";

       System.Data.SqlClient.SqlConnection tmpConnection =
         new System.Data.SqlClient.SqlConnection(ConfigurationSettings.AppSettings["ConnectionStringICS"]
         );



About the Author:
Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, California, Texas, New York, Georgia and Florida and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer.

About CProgrammingTrends
A collection of articles and tutorials designed to help C and C variant programmers in their programming work.C Programming Tutorials and advice

CProgrammingTrends is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITCertificationNews.com

-- CProgrammingTrends is an iEntry, Inc. publication --
iEntry, Inc. 880 Corporate Drive, Lexington, KY 40503
2004 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal


archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



C Programming Tutorials and advice CProgrammingTrends News Archives About Us Feedback CProgrammingTrends Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact