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 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 Great Plains, Microsoft CRM customization company, based in Chicago, California, Texas, Florida, New York, Georgia, Colorado, Oregon, Washington, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is CMA, Great Plains Certified Master, Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer. You can contact Andrew: 1-866-528-0577 andrewk@albaspectrum.com.
![]() |
|
![]() |
|
![]() |
|
![]() |
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
When you own a small business, time is money. And... Read More
Former Great Plains Software Dynamics/eEnterprise, and currently Microsoft Business Solutions... Read More
Program Flow is what you think it is. How the... Read More
Most computer users use spreadsheets software such as Microsoft Excel... Read More
So, why should you use any O/R mapping tool? I... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
SOFTWARE PIRACY We regularly hear reports... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
Microsoft Business Solutions Great Plains is very good fit for... Read More
Midsize business or non-profit organization should decide if one-vendor solution... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
Are you ready? SQL Server 2005, the next-generation data management... Read More
The Windows registry is a huge database that ensures normal... Read More
Java has come along a long way. Many would agree... Read More
Hey Guys! Don't raise your eyebrows or fear by hearing... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Although we don't know whether Microsoft ever envisioned such a... Read More
1. What determines the software price? Is it Per Seat... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
The Microsoft system preparation utility for Windows 2000 is a... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Stealing company information used to be the specialty of spies... Read More
If there still are few unprotected computers left, I haven't... Read More
Microsoft CRM is new player on the CRM software... Read More
The software giants don't do everything and don't always produce... Read More
Need software to record your voice, streaming audio or musical... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
Microsoft Great Plains is main accounting / ERP application... Read More
It would be easy to think, like most people apparently... Read More
Adware is a type of Spyware program that displays some... Read More
Microsoft PowerPoint has dramatically changed the way in which academic... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Microsoft Business Solutions products: Great Plains, MS CRM, Navision, Axapta,... Read More
It would be easy to think, like most people apparently... Read More
If your company has regional and worldwide operations, you might... Read More
While paper labeling CDs and DVDs may appear to be... Read More
I have always had a tendency to focus on the... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
If you have Microsoft Great Plains and support it for... Read More
Microsoft Outlook is one of the most widely used software... Read More
Microsoft Great Plains is main Microsoft Business Solutions product, targeted... Read More
Microsoft Great Plains - Microsoft Business Solutions accounting and ERP... Read More
I completed an experiment recently. I wanted to find out... Read More
If you have been using the Internet for any amount... Read More
Do you remember that frustrating feeling when you find an... Read More
We would like to give you pluses and minuses of... Read More
Have you ever noticed that when you look at your... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Looks like Microsoft Great Plains becomes more and more... Read More
All your software is stored on a hard-drive. But how... Read More
When you need a phone number, you do a quick... Read More
NOTE: Please take time to read on - it may... Read More
Beginning with Domino version R4 it has integration with the... Read More
MicroWorld Technologies, Inc. the leading solutions provider in the area... Read More
Just imagine: you are walking, say, towards your car, and... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
Are Spreadsheets Robbing your Enterprise of Competitive Advantage?'90% of "average"... Read More
The fact that a software tester is a most infamous... Read More
Let's first look at your ERP system selection (without Retail... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Software |