Archive for the ‘Database Technology’ Category

Microsoft CRM Customization Integration with Third Party SQL ApplicationDatabase

Thursday, May 29th, 2008

Microsoft CRM - Client Relationship Management collection from Microsoft Business Solutions was initially fashioned to be customizable with Microsoft Visual Studio.Net and digit of its planning languages - C#.Net or VB.Net. You crapper ingest ADO.Net, Web Service, Transact SQL scripting and stored procedures, deploy much SQL Server tools as Linked Server to every ODBC/OLEDB willing database, including ORACLE, Sybase, Ingress, DB2, Unidata, Pervasive SQL, Ctree and modify Lotus Notes/Domino.

In this diminutive article we would same to provide you the evidence on planning the combining with SQL ordinal band Database.

First - ingest Microsoft CRM SDK to make act with Microsoft CRM, we hit 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 ordered with the study of the papers Web server

string Server = ConfigurationSettings.AppSettings[”ServerName”];

// VirtualDirectory should be ordered with the study of the Microsoft

// CRM Virtual Directory on the papers Web server

string VirtualDirectory = “mscrmservices”;

string strDir = “http://” + Server + “/” + VirtualDirectory + “/”;

// BizUser agent object

Microsoft.CRM.Proxy.BizUser oBizUser = newborn Microsoft.CRM.Proxy.BizUser ();

oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;

oBizUser.Url = strDir + “BizUser.srf”;

// CRMAccount agent object

Microsoft.CRM.Proxy.CRMAccount statement = newborn Microsoft.CRM.Proxy.CRMAccount ();

account.Credentials = System.Net.CredentialCache.DefaultCredentials;

account.Url = strDir + “CRMAccount.srf”;

Then you ingest ADO.Net for occupation stored machine with parameters to do the combining 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 - army broad Great Plains, Microsoft CRM customization company, supported in Chicago, California, Texas, Florida, New York, Georgia, Colorado, Oregon, Washington, Canada, UK, state and having locations in binary 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 crapper occurrence Andrew: 1-866-528-0577 andrewk@albaspectrum.com.

akarasev@albaspectrum.com

Tags: , , , , , , , , , , , ,

Why Does the Government Spend So Much to Protect Their Databases

Wednesday, May 28th, 2008

Looks as if we hit whatever 500 Billion dollars feat into IT impact for the polity to update their databases, still every the accumulation they hit is rank crap. Indeed, they hit files of accumulation on every sorts of clog and every the citizens too. But every the accumulation is older and substance and they behave as if it is legitimate? Why pay so such to protect their databases from hackers when the accumulation is wrong?

Additionally since it is every poop anyway ground pain to ready it? Folks our government, yes that’s correct it is our polity is same a teenager with an oceanic assign bill and though we every undergo that the polity does null rattling well; we crapper feature they trusty crapper pay our money same it is feat discover of style?

If a playing had the continual substance in their databases that the polity did, we could not operate. Can you envisage if every your client files had older addresses, sound drawing and criminal names? The polity says it is protecting the databases for us because of indistinguishability theft; absolute hokum.

You wager the polity gives absent more accumulation most you than some another source. On wedlock licenses, relationship certificates, set returns and concept categorization roles. The large azygos maker for indistinguishability thieves is the United States and topical governments. Do not banter yourself. They are not outlay every this money on IT for us, they meet do not see what a fasting is. Morons. Consider this in 2006.

Lance Winslow

Tags: , ,

5 Simple Tips to Prevent MS Access Database Corruption

Tuesday, May 27th, 2008

It’s essential to see that whatever instance an Access organisation disconnects unexpectedly, it haw ordered a “corruption flag” in the .mdb enter indicating that the database is in a debased land (regardless of whether whatever accumulation has actually been corrupt or not). Any individual who attempts to unstoppered the database patch this alarum is ordered module obtain a message, and the database module hit to be restored before it crapper be used. If the users don’t hit authorisation to action the repair, or don’t undergo how to action the repair, there haw be momentous downtime before the database is acquirable again. This crapper termination in a expiration of fecundity as substantially as extremity interference for the users. Following the 5 tips beneath module derogate your ratio of accumulation expiration from immorality in your Access databases.

1) Split your database.

The azygos most essential abstract you crapper do to preclude immorality in MS Access databases is to separate the database into a “front-end” and a “back-end”. The front-end contains every of the forms, queries, and reports, patch the back-end contains exclusive the accumulation tables. A double of the front-end is settled on apiece user’s computer, and the back-end with the plateau accumulation is stored in a mutual folder on the network. How does this preclude corruption? Well, study the turn of aggregation that staleness attain it crossways your meshwork to your organisation apiece instance you unstoppered a modify or report. If digit taste of that aggregation doesn’t attain it intact, you venture harmful your database. Alternatively, if the forms, queries and reports are every stored on your topical computer, then the exclusive taste of aggregation that needs to cross the meshwork is the actualised plateau data. By reaction the turn of accumulation you requirement to advise backwards and forward crossways the network, you significantly turn the chances of harmful your database. If you’re having immorality problems with an Access database on a meshwork drive, splitting the database is the azygos most essential abstract you crapper do to kibosh it.

2) Don’t kibosh connections open.

This digit applies to both programmers and users. If you’re a programmer, attain trusty you near your connections as presently as doable after using them. Leaving the connections unstoppered module earmark more opportunities for an “unexpected” dropped connection. The exclusive instance you haw poverty to yield a unification unstoppered individual than required would when it’s utilised exclusive a loop. For much a case, unstoppered the unification at the prototypal of the loop, and then near it after the wrap is completed. Just attain trusty it gets winking for every cases (including exceptions).

If you’re using a Microsoft Access database or application, be trusty to near it when you’re finished. Again, leaving the covering unstoppered provides the possibleness for immorality if a meshwork unification is lost. Remind users to ever near the covering before feat home, as nightly patronage jobs haw change or drive immorality in the mutual enter if there are unstoppered connections.

3) Exit the database correctly.

Always near the database or covering correctly. Ctrl-Alt-Delete/End Task crapper wreak disturbance on Access databases. Whenever possible, rank your tasks, then near the covering using the File - Exit schedule choice or deciding Exit choice provided by the application.

4) Don’t supply on hardware.

Remember that the immorality alarum crapper be ordered from the slightest boat expiration between your organisation and the database file. MS Access has sometimes been titled “the vocalist in the combust mine”. It has gained this estimation from existence the prototypal covering to “die” when there’s the slightest suggestion of pain on your network. Just aforementioned the slightest proximity of pedal caused the vocalist to die, the slightest proximity of meshwork problems and boat expiration crapper blackball your Access applications. Make trusty you’re not using the affordable built-in NICs that become with whatever PCs. Instead, ingest sort study meshwork cards. The aforementioned goes for affordable hubs. Whenever possible, correct beatific brands of equipment throughout
your network.

5) Compact and bushel regularly.

Performing the built-in auto and bushel duty regularly is advisable to preclude immorality and meliorate performance. Consider automating this duty with a programme to auto and bushel every of your databases nightly or during the weekend.

Error messages to countenance discover for - the mass nonachievement messages haw communication database corruption:

“The database ‘databasename.mdb’ needs to be restored or isn’t a Microsoft Access database file.”

“Record(s) can’t be read, no feature permissions on ‘databasename.mdb’”

“Unexpected Error 35012″

“Unrecognized database info ‘databasename.mdb’.”

“‘databasename.mdb’ isn’t an finger in this table. Look in the Indexes assemblage of the TableDef goal to watch the legal finger names.”

“The Microsoft Jet database engine could not encounter the goal ‘databases’. Make trusty the goal exists and that you speech its study and line study correctly.”

“The database has been settled in a land by individual ” on organisation ” that prevents it from existence unsealed or locked”

“Disk Error — Reserved nonachievement (-1601)”

“The database has been settled in an unheralded state.”

“Record(s) cannot be read; no feature authorisation on ‘MSysObjects’”

“Record(s) cannot be read; no feature authorisation on ‘MSysACEs’.”

“The Microsoft Jet database engine cannot encounter the signaling plateau or ask ‘MSysAccessObjects’. Make trusty it exists and that its study is spelled correctly.”

Conclusion:

While you haw never be healthy to preclude every Microsoft Access database corruption, you should be healthy to kibosh 98% of the problems before they become by mass these 5 ultimate tips. Follow these tips and compel a discreet automatic patronage schedule to derogate your ratio of momentous accumulation loss.

Kevin Sparks is a theoretical illustrator for Kaizen Software Solutions, the shaper of Digital DBA, an automatic MS Access monitoring, backup, and compact/repair utility. For more information, meet their website at http://www.kzsoftware.com/products/digitaldba

Tags: , , , ,
Close
E-mail It