Using Enterprise library 2

Hi every one,
iam using .net2 enterprise library and oracle as my background db.
can any one guide me in using the data access application block for .net2.
i wrote a sample stored procedure which returns cursors as output parameter.
is there any way to handle it.
can any one provide me an example for this which will helpfull for me.
thanks

Microsoft's Petshop example application uses the Microsoft Database Access Application Block (DAAB) with Oracle 9i. This was the DAAB from before the Enterprise Library, when it was still separate.I am guessing they use the MS Oracle provider instead of ODP.
http://msdn2.microsoft.com/en-us/library/ms954623.aspx
I don't care for DAAB myself. It seems terribly inefficient. It's a late-bound architecture where they have to hit the DB first to get metadata before executing a query. It's true that they cache the metadata, but it's better in my mind if you know the types ahead of time. Their approach is fine for dynamic SQL in cases where you can't know the types ahead of time, but that's a rare situation. With most dynamic SQL you know the types of the columns you might access.
The Enterprise Library is also pretty heavy. It's hard to use only part of it. Once you start using it, you're stuck with a bunch of blocks, like caching, logging, configuration, etc.
Eric

Similar Messages

  • Using both Enterprise library and Entity framework as DAL for same application

    We have been using EF for large amount of data  retrieval in our current application. We faced performance related issues with using EF with large data retrieval and manipulation.
    We need to extend the same project with some additional functionality similar to what currently exists in the application and uses EF.
    For the new functionality, we do not want to use EF and want to use enterprise library for Data access.
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access, are there any known issues?
    if there are any best practices to be followed please share .

    We have been using EF for large dataset retrieval in our current application. We faced performance related issues with using EF for large data set's  .
    Dataset? What are you talking about?  If you are using the salad bowl, the dataset with datatables, then here is the reason not to use them.
    http://lauteikkehn.blogspot.com/2012/03/datatable-vs-list.html
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access, are there any known issues?
    What is Entlib going to buy you in performance? It's going to buy you nothing. You'll be better of going to the EF backdoor, use SQL command objects, inline T-SQL, sprocs, datareder and using custom objects or objects off of the virtual model returning a
    single object or objects in a collction., if you are concerned about performance.
    http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx
    You'll probably be better of going to Entity SQL, using a datareader, collection and using custom objects or objects off of the model, if you are concerned about query performance.
    https://msdn.microsoft.com/en-us/library/vstudio/bb738684(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/vstudio/bb387145(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/vstudio/bb399560(v=vs.100).aspx
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access,
    are there any known issues?
     A nightmare, no consistency and complete Helter Skelter is what I see. Been there and seen it in action with different technologies doing the same thing in a solution.

  • Windows Service Enterprise Library Data Access Application Blocks Connection Pooling Issue

    Hello,
    We are developing a windows service using c# .net v 4.5.1 which communicates with SQL database (SQL 2008 R2 x64), communication with SQL server is done using Enterprise Library data access block v 6, The windows service does a file copy process in bulk &
    updates the database about the status of file copy, it is observed that as soon as we start the service the number of connections get max out & we start receiving a "Timeout expired.  The timeout period elapsed prior to obtaining a connection
    from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."
    This issue is only observed when we run the code logic by deploying it as a windows service, When we run the exactly same code as a standalone exe (right click -> run as administrator) / non windows service, the connections on database are not exceeded
    & we do not receive the above mentioned error.
    The code block which makes calls to the database is under the c# "using" statement, hence connection pooling should be handled by default.
    Could you please recommend any suggestions on areas which I might have missed on to investigate this issue.
    Thanks in advance.

    Hi
    The issue got resolved after refresh the SCOM Data base access service  account in SQL 2012.
    Unable to launch the operations manager 2012 R2 console after extended the C drive of the SQl server ,getting error "The Data
    Access service is either not
    running or not yet initialized.
    Got to your SQL server -->databases-operationsmanager--security-users--locate the daa service account and refresh.issue fixed and am able to luanch.

  • Is Enterprise Library still relevant?

    I am going to port an old C++ application to C# and intend to replace the C++ custom written cross-cutting libraries with third party cross-cutting frameworks/libraries.   In particular, I have been reviewing the Enterprise Library
    for the past week.   One issue that raises a significant red flag is that the version 6 of the Enterprise Library is not backwards compatible with version 5.   For example, a review of the developer guides from both versions shows that
    the security, cashing and cryptography blocks found in version 5 have been removed in version 6.  
    I have not used the Enterprise Library before.  But the lack of backwards compatibility alone seems to be a reason enough to avoid using Enterprise Library.  That is, significant changes between versions would seem to make this library very impractical
    to use.   So my question is the Enterprise Library still relevant/practical or would I be better off using other frameworks/libraries for crossing cutting issues (e.g.: FluentValidation, log4net)?

     Hi
    IB00,
    Based on your description,  you case related to Enterprise Library. I am afraid this is out of our support.
    Visual C# forum is discuss and ask questions about the C# programming language, IDE, libraries,
    samples, and tools.
    For your issue, I would recommend you to ask in CodePlex. Here is a special forum for Enterprise Library.
    https://entlib.codeplex.com/discussions
    Thanks for your understanding and effort.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MARS with Enterprise Library

    Hi,
    How to get the result cursor from the Stored Procedure which is returing 3 cursors using Enterprise Library.
    Thanks in advance

    To return two SELECT statement results from a single command text, you can use anonymous PL/SQL. Here's a code snippet below.
    ODP.NET does not support asynch commands.
                   string cmdtxt = "BEGIN " +
                        "OPEN :1 for select ename, deptno from emp where deptno = 10; " +
                        "OPEN :2 for select ename, deptno from emp where deptno = 20; " +
                        "OPEN :3 for select ename, deptno from emp where deptno = 30; " +
                        "END;";
                   cmd.CommandText = cmdtxt;
                   //ODP.NET has native Oracle data types, such as Oracle REF
                   // Cursors, which can be mapped to .NET data types
                   //Bind REF Cursor Parameters for each department
                   //Select employees in department 10
                   OracleParameter p1 = cmd.Parameters.Add("refcursor1",
                        OracleDbType.RefCursor);
                   p1.Direction = ParameterDirection.Output;
                   //Select employees in department 20
                   OracleParameter p2 = cmd.Parameters.Add("refcursor2",
                        OracleDbType.RefCursor);
                   p2.Direction = ParameterDirection.Output;
                   //Select employees in department 30
                   OracleParameter p3 = cmd.Parameters.Add("refcursor3",
                        OracleDbType.RefCursor);
                   p3.Direction = ParameterDirection.Output;
                   //Execute batched statement
                   cmd.ExecuteNonQuery();
                   //Let's retrieve data from the 2nd and 3rd parameter without
                   // having to fetch results from the first parameter
                   //At the same time, we'll test MARS with Oracle
                   OracleDataReader dr1 =
                        ((OracleRefCursor)cmd.Parameters[2].Value).GetDataReader();          
                   OracleDataReader dr2 =
                        ((OracleRefCursor)cmd.Parameters[1].Value).GetDataReader();
                   //Let's retrieve both DataReaders at one time to test if
                   // MARS works
                   while (dr1.Read() && dr2.Read())
                        Console.WriteLine("Employee Name: " + dr1.GetString(0) + ", " +
                             "Employee Dept:" + dr1.GetDecimal(1));
                        Console.WriteLine("Employee Name: " + dr2.GetString(0) + ", " +
                             "Employee Dept:" + dr2.GetDecimal(1));
                        Console.WriteLine();
                   }

  • Issue with Enterprise Library's Data Access Application

    I do not know if I have the correct forum for this post. I hve put it in what I believe is the most likely best forum, but please move this if there is a more germane forum for it.
    I have inherited a solution (C#) which uses the reference Microsoft.Practices.EnterpriseLibrary.Data. The reference was included with the codebase I inherited, there are no missing references.
    When the library is called with:
    Microsoft.Practices.EnterpriseLibrary.Data.ExecuteDataSet("configConfigurationKeysSelect", parameterValues);
    It complains with the runtime error:
    [InvalidOperationException: The stored procedure 'configConfigurationKeysSelect' doesn't exist.] (I have put the full trace below)
    This is true, there IS no stored procedure  'configConfigurationKeysSelect'  but there is a table named  'configConfigurationKeys.'  
    I assumed this stored procedure is built on the fly to select from that table? Must I do something regarding  Enterprise Library's Data Access Application so that this works on the system I am running it on? (I am simply accessing the references
    included with the sourced for this, nothing else). I am looking for some guidance here, and thanks in advance.
    Stack trace on error as:
    [InvalidOperationException: The stored procedure 'configConfigurationKeysSelect' doesn't exist.]    System.Data.SqlClient.SqlCommand.DeriveParameters() +5344249
       System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +115
       Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase.DeriveParameters(DbCommand discoveryCommand) +72
       Microsoft.Practices.EnterpriseLibrary.Data.Database.DiscoverParameters(DbCommand command) +251
       Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache.SetParameters(DbCommand command, Database database) +225
       Microsoft.Practices.EnterpriseLibrary.Data.Database.AssignParameters(DbCommand command, Object[] parameterValues) +53
       Microsoft.Practices.EnterpriseLibrary.Data.Database.GetStoredProcCommand(String storedProcedureName, Object[] parameterValues) +161
       Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(String storedProcedureName, Object[] parameterValues) +70
    Enterprise Library's Data Access Application 

    This is true, there IS no stored procedure  'configConfigurationKeysSelect'  but there is a table named  'configConfigurationKeys.'  
    I assumed this stored procedure is built on the fly to select from that table? Must I do something regarding  Enterprise Library's Data Access Application so that this works on the system I am running it on? (I am simply accessing the references
    included with the sourced for this, nothing else). I am looking for some guidance here, and thanks in advance.
    Why do you assume that a stored procedure is create on the fly?  Looking at the documentation for this component, I don't see a mention of such.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Unable to install Enterprise Library 2007 on Windows 7

    I need Enterprise Library 2007 for my project. When i try installing, it throws the error : Microsoft .Net 2.0 needed . I try to install microsoft .Net 2.0, then it throws the error : .Net 2.0 is already part of the operating system. I uninstalled .net
    4.5.1 from my system and tried installing 2.0, yet it throws the same error. Is there any workaround for this. ( I have installed microsoft visual studio 2010 ultimate also in my system)

    .NET Framework 3.5 SP1 is an integral part of your Windows 7 OS. .NET 3.5 includes 2.0 and 3.0. That is why you cannot install 2.0, 3.0 or 3.5 on Windows 7 as a user.
    You can check for .NET 3.5 SP1 on your system as follows:
    Control Panel->Programs and Features... Turn Windows Features On and Off.
    You can check the integrity of .NET 3.5 with this tool:
    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
    Run the tool with .NET 2.0 selected, then post the LAST 15 lines of the tool log here.
    BTW .NET 4.0/4.5 are completely unrelated to .NET 3.5. They are separate versions. 4.0 is required by VS 2010.
    You should note that "Enterprise Library 2007", presuming you mean Enterprise Library 3.1 - May 2007, is an OLD version designed for use with VS 2005 (now out of support). That may be the reason for your issue.
    Read here about available versions:
    https://msdn.microsoft.com/library/cc467894.aspx

  • Enterprise library 3.1 installation issue on windows 7

    I am trying to install enterprise library 3.1 (May 2007), but it givesme the following error.      the installer requires the .NET framework ver 2.0 which is not present on this computer) i have also installed visual studio ultimate-
    2010 now, what should i do to resolve this error? should i install just .net 2.0? will it create any  issues if i do that.

    You can try to install the .NET Framework 2.0 on your computer:
    http://www.microsoft.com/en-gb/download/details.aspx?id=1639
    http://www.microsoft.com/en-US/download/details.aspx?id=6523 (64-bit)
    ..and then use this installer for the Enterprise Library 3.1:
    http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=9921
    Or you could download a later version of the Enterprise Library that is actually officially supported on Windows 7. The active and supported versions of the Enterprise Library are 5 and 6. The older ones have been retired as stated here:
    https://msdn.microsoft.com/en-us/library/ff648951.aspx
    Enterprise Library 6.0:
    http://www.microsoft.com/en-us/download/details.aspx?id=38789
    Enterprise Library 5.0:
    https://www.microsoft.com/en-us/download/details.aspx?id=15104
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Problem using a library with an EAR file (ServletNotFoundException)

    Hello
    I'm trying to use a library (J2EE library project) an associated it to an Enterprise Application Project.
    The application was built using the Spring MVC framework.
    When I did deploy I got the following warning:
    Apr 25, 2006 9:44:17 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
    [004]Finished Deployment
    And when I try to run the application  I got the following error:
    404 Not Found
    The request cannot be processed.
    Details:   com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [data-entryLib/servlet/data-entry].  The ID of this error is
    Exception id: [00306E5DA8D2004E00000068000052550004124234F31271].
    The application run properly when I use the jars file in the WEB-INF/lib folder.
    I have been reading some recomendations in this forum, but nobody tell me how to solve this problem
    Thanks
    Adriana.

    Hi Rajesh
    Thanks for your answer.
    Yes, I deployed the .sda file, add the jars file in the archive server/provider.xml and I checked this: (Problem with EAR referencing a library DC)
    The type of reference that I gave in the EAR file was in the archive application-j2EE-engine.xml:
    <reference
        reference-type="hard">
        <reference-target
          provider-name="sap.com"
        target-type="library">LibreriaDataEntry</reference-target>
    </reference>
    <provider-name>sap.com</provider-name>
       <fail-over-enable
       mode="disable"/>
    Thanks
    Adriana

  • How i use Enterprise Services?

    Hello @ll experts,
    i hope that is the right Forum-Category.
    I don't find any description, how is use Enterprise Services with SAP PI for my IT-Scenario.
    Actual situation:
    I import the XI-Content (there is the Service Interface to use for the ES) in the Enterprise Service Repository (SAP PI 7.1), copied the Service Interfaces and all dependence Objects in my own Software-Compoment.
    My Question:
    What i should doing to config in my sap ERP ECC 6.0 with the Enterprise Service to connect with SAP PI 7.1?
    Maybe ABAP-Proxies?
    Thanks in Advance,
    best regards
    armin

    Hello,
    Once you build Service Interface in PI, you need to generate PROXY in back end ERP system using SPROXY. After that you need to implement the Proxy Class Method by writing glue code using SE80. Now, you may setup End Point using SOAMANAGER. Please see the link for details: [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60cb2b4c-af72-2b10-a3a2-a2f718d2a565]
    Thanks,
    Venu

  • Application Insights Trace Listener w/ Enterprise Library Logging

    Is it possible to use Application Insights with Enterprise Library Logging?
    I have not had much success in setting up the ApplicationInsightsTraceListener in place of the Azure DiagnosticMonitorTraceListener that I was using previously, but it isn't immediately clear as to why.
    Just wanted to make sure I wasn't completely off track!

    lukegriffin,
    I'm sorry to hear you are having trouble with getting the TraceListener setup in an Azure scenario. If you provide some more details perhaps I can help you out.
    We don't currently have an adapter to support Enterprise Library Logging. If you would like this could I ask you to log and vote for it at
    http://aka.ms/aiuservoice
    and we will track the priority.
    Thanks,
    Joshua Weber 

  • Can not find files inside folder using enterprise keywords.

    I'm using a document library web part. The using Enterprise Keywords. I have a "Health Insurance" keywords that I added to 8 documents. These document are inside a folder call Benefits. I went to web part editor and clicked on "Edit the current
    view" Then I changed the filter to "Enterprise Keywords is equal to Health Insurance" Lastly I went to the Folders section and selected "Show items inside folders".
    After I click "OK", I'm presented with an empty documents web part.
    What can I do to get the files to show up?
    Thanks
    James T.F

    Hi James,
    Thanks for posting your issue, I am sure that issue is your filter that you have created with "Enterprise
    Keywords" because as per my understand you are able to see the documents with your
    current view of the webpart.
    Please check the filter settings and criteria properly. You should be able to see the expected results
    in Web part.
    I hope this is helpful to you. If this works, Please mark it as Answered. 
    Regards, 
    Dharmendra Singh (MCPD-EA | MCTS) 
    Blog :
    http://sharepoint-community.net/profile/DharmendraSingh

  • I to use iphoto library manager to save corrupted iphoto and each time it saves some and the first time it brings up iphoto, iphone goes into "not responding" mode.  Using mac book pro, iphoto 9.5.1, and maverick 10.9.2.

    I've had issues with my iPhoto "not responding" and as a result I am attempting to save my photos to an external hard drive using iPhoto library Manager but each time I start the program it saves some, and then when it starts iPhoto, iPhoto then goes into not responding mode. Using mac book pro, iphoto 9.5.1, and maverick 10.9.2. I have completed all of the photo library first aid steps several times, but it makes no difference, iphoto eventually goes to "not responding."  Initial issues started with Time Machine back ups stopping because of iphoto. Thanks......

    Do you have a back up?
    If you're just trying to recover the photos you can do that much more simply:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Originals' or 'Masters'. (varies according to the version of iPhoto)
    Your photos are inside - these are the originals as imported from your camera.

  • Concurrent report export using enterprise SDK question

    Hello,<br>
    Our company uses Enterprise SDK to export report to PDF. We test our software using CR Server 2008 trial version. I am looking for advices for following questions:<br>
    1. As out testing server is trial version at the moment, it does not complain or generate any warning messages on numbers of concurrent users (we can only view current sessions and licenses from CMC). Could someone please let me know what will happen when full version CR server detects that max limit concurrent users access has reached? Will the server notify SDK, and SDK will generate exception; or the request will be queued until any other concurrent user end his session. <br>
    2. We implement an EJB to invoke SDK process. While EJB itself is thread safe, I am not quite sure if enterprise SDK is thread safe too. My assumption is that one SDK will be instantiated per JVM (like JRC?). It will issue a new thread to each report request (from EJB). Please correct me if I am completely wrong. <br>
    3. This is about licensing. Our scenario is there will be multiple (and concurrent) end users use our J2EE system, and may request report from CR server. Our J2EE system, however, will use one user account to login to CR server through enterprise SDK. In the other word, CR server will treat our J2EE system as one user (even if there are multiple or concurrent request). My question is that does it violate legal agreement with Business Object if I configure the user account our J2EE system uses as Named user?! If it is, we will get concurrent user licenses instead. Please advice. Thank you =)<br>
    Kind Regards,<br>
    mlie

    Hello Adam, <br>
    Thanks for your reply. It is very helpful. <br>
    As for point 1, what exact SDKException will SDK throw (e.g. SDKException.Unexpected)?<br>
    In point 2, "There have been issues reported previously that only occur when using EJB's.". Is it possible to let me know what kind of issues they are? <br>
    In point 3, as CMS supports Window AD authentication, and our system uses same mechanism to perform authentication, I guess the best strategy is to implement single sign on? Please advice. Thank you <br>
    Regards,<br>
    mlie

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

Maybe you are looking for

  • Different iPhone capacities on different computers

    I have an iPhone 4, and I sync it to my home and work computer. I manually manage songs and videos. When I plug it into iTunes on the different computers (same version), the capacity bar shows different amounts of memory on different computers. The d

  • Problems with the login page in Portal release 2

    Hi, I have problems logging into portal, release 2 on Linux. I get the following error message when clicking the login link: Forbidden You don't have permission to access /pls/orasso/orasso.wwsso_app_admin.ls_login on this server. This used to work u

  • Separating out sections and exporting to email

    I have a demo tape with fast segues of different kinds of voices. I want to take four different voices and attach them to an email. Can this be done?

  • Java won't run on my OSX 10.7.5 can anyone help?

    I have done EVERYTHING to get the latest version of Java to run. Java is "running" when I check it in system preferences, I have it enabled in my browser but when I return to Java, it doesn't detect it. I have restarted my computer and still nothing.

  • Function module for se16 with out authority check for se16

    Hi , I am creating a tode YSE16 which has same functionality as SE16 but having its own authority check. I am calling a function module RS_TABLE_LIST_CREATE function module to get the functionality of SE16. But is there any way that i can get the fun