articleandcontent.com articleandcontent.com
Site Home About Us Security & Privacy ToS Place Your Link Submit Article
Search:   
Add Url
 

Art & Creative

Online & Indoor Games

Fashion & Relationships

Research & Science

Automobiles

Computers & Software

News & Media

Shopping & Auction

Government & Politics

Healthcare & Treatment

Business & Services

Sports

People & Society

Recreation & Entertainment

Hygiene & Health

Teens & Children

Family & Home

Self Enhancement

Property & Agents

Education & Learning

Tour & Travel

Banking & Finance

Jobs & Employment

Drink & Food

 

Site Home › Computers & Software › Computer Software
 

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

 
Author: 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 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"]

);

Author Bio:
Andrew Karasev is a famous writer. Andrew likes to scribble articles about this topic.
You can search for this article using: free software, free software downloads, cheap computer software, discount software
 
 
 

Related Articles

 
Why Your First Online Business Should Be Google Adsense
 
The Adsense Wealth Empire Review - What's it All About and is it Worth Getting?
 
How Much Is Your Website Worth?
 
PPC Campaign Management as an Internet Business Opportunity
 
Affordable Domain Hosting
 
CDR Media
 
How to Get More Traffic to Your Blog
 
Software - Old Software Is Just, Old Software
 
Make Money OnLine
 
Software Review: My Digital Dispatch
 
 
 
 

The Hidden Traffic Strategy That Skyrockets Your Profits

If you agree that traffic is the true currency of the web, then you?d want to read this article very ... - Ewen Chia
 

Dual Boot Windows 9x with NT or Linux

Installing windows is pretty easy if you know what you are doing, but it can be a complete mess if y ... - Alfred Moloto
 

Value Of News Articles In Your Blog As Link Bait

You can post a non-news article piece at your blog that readers will greatly appreciate and find ver ... - Christopher Kyalo
 
 

Paid Surveys-Finding Sites

In the last of our 2 part series on paid surveys using paidsurveysonline.com, we're going to explain ... - Michael Russell
 

Toshiba Wins Hollywood Support for the HD DVD format

On Monday, November 29, Toshiba officially won support for the HD DVD optical disc format from four ... - Lulia Pascanu
 

Generating Heavy Traffic Through Articles Marketing

There really are a lot of ways to generate income from something as unassuming and convenient as the ... - Dirk Wagner
 

Working Your Way to the Top: How to Win the Search Engine War

Knowledge is power, and profit, in the search engine marketing business. By addressing the eight ?S? ... - Kent Lewis
 

5 Requirements for Affiliate Market Success

Just what are the traits needed to be able to succeed as an affiliate marketer? What must you have w ... - Fred Farah
 
 
Site Home -> Security & Privacy -> ToS  
© 2006-2008 www.articleandcontent.com All Rights Reserved Worldwide.