.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :Sql Server
Hi,   I am facing the below mentioned error:   The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].   I have a Insert statement which i am using to insert data into a remote server from my local server. I have added the remote server as a linked server in my local server but when i try to execute the statement i am getting the above mentioned error. I am using Windows Enterprise Edition 2003 and SQL Server 2000.   I have also enabled the Allow InBound and Allow OutBound in the security configuration of My Computer properties but still i am facing the same problem. Kindly let me know how to resolve this issue.   Thanks.

View Complete Post

More Related Resource Links

OLE DB provider 'SQLOLEDB' was unable to begin a distributed transactio


Hi All,


I am getting following Error:

Oracle linked server in SQL server 2005 to update tables in Oracle database.

I have used OPENQuery to update tables in Oracle from a SQL Server 2005 Stored procedure.


If we run query from sql management studio for inserting or updating table of linked server then it runs fine. But if we use Begin distributed transaction then its gives error -

Server: Msg 7391, Level 16, State 1, Procedure sp_test, Line 105

The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.

An Excel Services Application setting does not allow the requested operation to be performed.

I'm facing a problem with Excel services and JSOM. On the page load, I'm registering a JSOM with a Visio webaccess webpart. On the shape selection changed event I'm trying to show a range of cells accordingly in the Excel web access webpart. Initially when the page is loaded and a shape selection event is fired, range.setValuesAsync(values); throws An Excel Services Application setting does not allow the requested operation to be performed. After pressing f5 on the page, it works fine. I came across a similar post in this link - http://social.technet.microsoft.com/forums/en-us/sharepoint2010programming/thread/B4739DB6-DDC1-42FB-BA6A-FFC41CBEFF1E but it was for Sharepoint 2010 beta 2 version. I'm having 14.0.4763.1000 - RTM build version. I have logged in as farm administrator. Log details Session=36.aceef71f-eb5b-4aab-9ce9-9db4728b45e5163.1.V22.91tY3PgMaeCbJtomFAb9Ab90.5.en-US5.en-US73.+0480#0000-11-00-01T02:00:00:0000#+0000#0000-03-00-02T02:00:00:0000#-006036.918121dd-d18e-4afe-b148-4cba08a0899b1.N b07378be-7293-4770-89cc-f136e1a8d7df WebServiceHelperMethods.ExecuteWebServiceRequestHandler: started processing 'SetRange' web method call b07378be-7293-4770-89cc-f136e1a8d7df WebServiceHelperMethods.ValidateContext: Operation requiring permissions 'SessionIdPresent, AllowEdits' not allowed according to the current permi

SSAS: An operation on a socket could not be performed...

Here is the scenario:  SSRS report in DEV, issues query that spins up Memory big time on SSAS.  MsmDSrv showing 1+ GBs Memory usage in Task Manager. After the connection is terminated, SSAS Service gets cycled.  At that point, can connect via SSMS from another server to this SSAS server. However when connecting from local SSMS, receive this error:  A connection cannot be made.  Eusure that the servier is running (admodClient).  An operation on a socket could not be performed because the system lacked sufficient buffer space or becasue a queue was full I really tried to find root cause - network trace, tcpview, vmmap, cycle SSAS, cycle SQL (shouldn't be related, but hey..) - but to no avail.  I'd love to be able to fix this without bouncing the server. SQL version 10.0.2531 SP1 x64, Windows 2008 R2 Enterprise.  Ideas?  Booting server now, but would looooove to have a non-boot solution to this

MySql mebership -> Unable to initialize provider. Missing or incorrect schema



I have installed Mysql connector/NET 6.2.4 and troied to follwe the MySql documentation5.5 chapter "Tutorial: MySQL Connector/NET ASP.NET Membership and Role Provider"

That is:

  1.       Added autogenerateschema="true" to machine.config
  2.       Stared a website on the local filesystem
  3.       Added a connectionstring to web.config to the mysql server at my web hotel
  4.       Choosen mysql role and membershipprovideres in the Web Site Administration Tool
  5.       Now hitting the security tab results in:

Unable to initialize provider. Missing or incorrect schema. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 145)

 Line 145 in machine.config is:

<add autogenerateschema="true" connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanu

Unable to connect with IBM DB2 using IBM DB2 .NET Data Provider 9.1.5 with ADO Destination Component


As we are passing through critical phase of the project and we are facing following issues which need to be resolved.Please help on this.

Currently we are transferring Data from SQL Server to DB2 using SSIS (SQL Server 2008).The IBM DB2 version is DB2 ESE 9.1 Fix Pack 5 on Linux 4.8.

1] Unable to connect with IBM DB2 using IBM DB2 .NET Data Provider 9.1.5 in SSIS 2008 at run time (although the connection is tested successfully with IBM DB2 using IBM DB2 .NET Data Provider 9.1.5 in SSIS 2008) and the error is

"[ADO NET Destination [6096]] Error: An exception has occurred during data insertion, the message returned from the provider is: Object reference not set to an instance of an object. "

I tried to use CozyRock DB2 Destination component instead of ADO destinatoin Component then i am able to use IBM DB2 .NET provider at run time.

Also i tested connection successfully using IBM DB2 .NET Data Provider 9.1.5

SPWebApplication, This operation can be performed only on a computer that is joined to a server farm



We are trying to migrate a console program (C#) from Moss 2007 to SP 2010.

One of the functions in the program has to loop thru several web apps/site colls/sites/lists to trim permissions and uses this sentence to get a reference to the web app:

- SPWebApplication webApplication = SPWebApplication.Lookup(serverUri);

In MOSS 2007 it works but in SP 2010 we see this error message:

"This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the

Provider selection gray, unable to change it in Data Source Creation


I am trying to create an Ad Hoc report project using SSRS2005.  We are using Oracle 10G and I have Visual Studio2005.

I have the Oracle client installed and I am an administrator.

I create a new "Report Model Project " and attempt to create a new data source, but with "Create a data source based on an existing or new connection " selected, I click on "new " where I should be able to specify the database, but the Provider shows "SqlClient Data Provider " and is grayed out so I can't change it.

How do I tell it I want to point to Oracle data?  I have no trouble normally doing this with an SSRS report but this is the first time I have tried an Ad Hoc report so I don't know what the problem is.

Getting Error When Calling Wrokflow Service - The operation could not be performed because WorkflowI


The scenario .  ..

I have developed a Custom Activity(CA) which has a designer like SEQUENCE.

I created a Workflow Service (XAMLX) and placed my Custom Activity(CA) as the first activity. Then I placed a RECEIVE activity within this CA and provided all the necessary details.

Now if I run the workflow service and call the service operation it is throwing execption.

Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.

The operation could not be performed because WorkflowInstance 'a74eb5e2-72b4-4cb1-8a4d-daed6f431936' has completed.

Instead if I put the original SEQUENCE activity as first activity and then placed a RECEIVE activity it is working good. But I don't want to use SEQUENCE activity here . .. . I need my custom SEQUENCE like activity to be the first activity and make this as a place holder for other activities.

Please help to get out of these errors.


SharePoint 2010 backup is failing - Error - "Unable to read full interval from database - Operation



I am having a problem backing up a site collection, when trying to backup the collection I get the following error "Unable to read full interval from database" and "operation is not valid due to the current state of the object".

The backup does run and manages to backup 182MB of the site collection and then the backup fails, it fails at the same point what ever backup method I use e.g. STSADM, Powershell or Central Admin.

I'm getting the same error whether I use CA "granular backup" or "Farm backup", and using either STSAMD or Powershell. I can backup CA or the mysite collection but not the Home Portal site collection. I even tried installing the commuvaults 2010 agents and running a commuvault backup but this is also failing. i have included the log file entry below.

Does anyone have any suggestions on what i can do to either fix the problem or an alternative way to backup the collection or farm, I am currently taking a full SQL backup but am not sure how reliable this is as I haven't tried to restore the sites. 

P.S. I am not using the "UseSQLSnapshot" parameter.

11/30/2010 09:34:25.23  OWSTIMER.EXE (0x17E8)                 

Building a LINQ Provider

Throughout this article, we will build a simple IQueryable provider similar to the LINQ to SQL provider demonstrating what is needed to build a custom provider that is capable of executing LINQ queries and performing create, update and delete operations.

Textbox in ItemTemplate inside Gridview, unable to get the value


Hi. I have a itemtemplate inside a gridview.

<asp:TemplateField HeaderText="Enter OTP">
                            <asp:Label ID="Label2" runat="server"
                                style="font-family: Arial, Helvetica, sans-serif; font-size: x-small"
                                Text="PIN Num:"></asp:Label>
                            &nbsp;<asp:TextBox ID="txtPIN" runat="server" Height="21px" Width="100px"></asp:TextBox>

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is no



 I keep getting the following error. I also added time out parameter in the connection stirng and it still did not help. Has any one faced similar issues.

Thanks in adavance.

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]

Membership Provider Conn String


Hello. I've bee successfully using the Asp.Net Membership Provider in my VB.Net 3.5/SQL 2005 web app for a year now (Site A). However, I've added 2 new sites (B and C) (both with their own DB) and now I see a problem. It looks like users that get created for sites B and C also get created in site A. Roles that I create for B and C only get created in A. I think it is a conn string problem.

When I created A, I adde the conn string to my machine.config (not sure why I did this or if it is even needed)...


         <add name="LocalSqlServer" connectionString="Data Source=VS689\SQLEXPRESS;Initial Catalog=SiteA;USER ID=sa;PASSWORD=123456"/>


                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=blahblah" connectionStringName="LocalSqlS

Which is the best sql provider?


Which is the best sql provider on .NET Framework : DataSet, LINQ, ADO.NET Entity Framework?

Provider Error




I have a web application and a business class library where all database connections are made. Not periodically but quite often, I get an error in the class library when i execute an oledbcommand. I have no problem defining and opening a connection but as soon as I try to execute a command or fill a table by an oledbadaptor, I get this error:

'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005)

After getting this error, when I reset IIS, everything starts to work perfectly but after a while, the same problem occurs again.

Does anyone have a clue about what might cause this problem?

Thanks in advance



Unable to make connection to database?


Hy guys. I try to connect my database for so long so i wrote two type of codes. Let's discuse first on.

I have database called PhoneDirectory.

It have only one table named Residents.

I have button wiht ID="Button1".

I want when i click this button to see all of my residents. 

I want to see the result in DetailsView and to be able to edin, delete and add new resident.

First try with SqlDataSource so i wrote this:

<asp:SqlDataSource ID="Resident Details" runat="server" ProviderName="System.Data.SqlClient" ConnectionStrings="<%$ ConnectionStrings:ThisIsTheConnection%>" 
              SelectCommand = "SELECT * FROM Resident "

Unable to get all the values from a field


Am reading an XML from web service and storing in  a dataset. 
then in write to a DataTable as follows

 DataTable dtResult1 = dsSearch.Tables["RESULTSET"];    
 DataTable dtHIT = dsSearch.Tables["HIT"];     
 DataTable dtField = dsSearch.Tables["FIELD"]; 

The issue  is  in the DataTable dtField i can only see 3 columns FieldID,Name,HIT_ID

The corresponding values in the dataTable looks like this for the corresponding fileds


I am unable to get the Field Name values 1,8799f4646b6ed9acde142581a84f75a6 ,234B5F5F-F247-4EB6-9E39-A7B64C7FE1BD,Yes...etc

What would be the cause for this...Any Help

Below is the structure of the XML-

- <HIT NO="1" RANK="2955" SITEID="0" MOREHITS="0" FCOCOUNT="0"> 
<FIELD NAME="rank">1</FIELD> 
<FIELD NAME="internalid">8799f4646b6ed9acde142581a84f75a6 </FIELD> 
<FIELD NAME="contentid">234B5F5F-F247-4EB6-9E39-A7B64C7FE1BD</FIELD> 
<FIELD NAME="contentids" /> 
<FIELD NAME="collection&
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend