-
Rose Richardson posted an update 4 years, 8 months ago
In this small article we want to give you the clue on programming the integration with SQL vacation Database.
First – use Microsoft CRM SDK to initiate communication with Microsoft CRM, we’ve got it in C#:
String[] arr1 = coll.AllKeys;
int loop1, loop2;
for (loop1 = 0; loop1 0? copa99 sicbo online :arr1.Length); loop1++)
String[] arr2 = coll.GetValues(arr1[loop1]);
for (loop2 = 0; loop2
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”]
);
Gearhead Market
Just another WordPress site