How to access a Progress DB in a DotNet application?

Hi,
I'm new to this kind of database access......
I need to read records from a Progress database into my VB .Net application.
The application itself uses database MS-SQL( It's a DotNetNuke - DNN portal).
I can access the Progress db within an Excel worksheet by using the wizzard for connecting to other data sources, and I get the records, so there is communication with Progress.
But when I try to connect from my VB.Net application I get an error.
I have this code:
=========================
Dim MRPConnection
As OleDb.OleDbConnection
Dim MRPAdapter
As OleDb.OleDbDataAdapter
'Fetch Data from MRP
MRPConnection = New OleDb.OleDbConnection("DRIVER={Progress OpenEdge 10.1B driver}; Provider=SQLOLEDB; Data Source=mkg;HOST=mkgsrv;PORT=6000;DB=mkg;UID=xxx;PWD=yyy;")
MRPConnection.Open()
MRPAdapter = New OleDb.OleDbDataAdapter("select * from MKG.PUB.mgub mgub_0", MRPConnection)
dsMRPRecords = New DataSet
gridMRPGrid.DataSource = dsMRPRecords
gridMRPGrid.DataBind()
MRPConnection.Close()
MRPConnection.Dispose()
====================================
And I get this error:
[DBNETLIB][ConnectionOpen   (Connect()).]SQL Server does not exist or access denied.

Hi,
It seems like that this is not SCOM replated issue, and it seems like a scripting issue. If so, I would like to suggest you post in the VB .net developing forum for further assistance.
If there is any misunderstanding, feel free to let me know.
Regards,
Yan Li
Regards, Yan Li

Similar Messages

  • How to access to a resource in the ADF application?

    Hi
    I have a jasper report file named report.jrxml in the following path in my ADF application named “app”:
    app\ViewController\src\org\nmp\app\view\report
    I wanna access to this file inside a java file located in the ViewController project as follows:
    InputStreaminSt = new FileInputStream(new File(“app\ViewController\src\org\nmp\app\view\report\report.jrxml”));
    But I get the following exception:
    java.io.FileNotFoundException: app\ViewController\src\org\nmp\app\view\report\report.jrxml (The system cannot find the path specified)
    How could I access to this resource in my application? I am using JDev 11.1.2.3
    Cheers,
    Ferez

    Timo,
    I made a test case named fileaccess and uploaded it here:
    http://rapidshare.com/files/2200118787/fileaccess.zip
    Just open the project in JDev 11.1.2.3, the Model project is empty and in the viewController project there is a single page named home.jsf in which contains a commandButton. Clicking the button executes the #{fileAccess.readFile} method. The fileAccess bean is located in org.company.fileaccess.view.beans and introduced in faces-config.xml. Body of readFile method is as the following:
    FileInputStream fis = new FileInputStream(new File("/org/company/fileaccess/view/resources/file.txt")); file.txt is located in org.company.fileaccess.view.resources and viewController project is set to copy .txt files into output directory. Clicking the button causes FileNotFoundException.
    Thank you in advance,
    Ferez

  • How to Access Web service with ADF Mobile Browser Application

    hi all,
    My Jdeveloper version is 11g 2 release(Version 11.1.2.2.0). I need to know If I create a web application and put it on a server as a web service., Then I create a Mobile browser application and need to access that web service.
    If it is possible, how should I do? version are same in both application.
    hopping any clue..
    Thxs.

    You can go thru the below links :
    ADF Mobile HowTos: Consuming SOAP web service in ADF Mobile using WS DC
    Oracle JDeveloper 11g Release 2 Tutorials - Building Mobile Applications with Oracle ADF Mobile

  • CRM PC UI how to access simple search on the top of applications

    Hi,
         I need to change the simple search option available on top of Opportunity, Account, Activity applications.
    Can somebody guide me on how can I access the simple search content in crm PC UI.
    Thanks,

    Hi,
    I actually already tried things that you suggested.
    There are two drop down fields available on simple search in Activities.
    1) Show : with "blank", "My Favorites", "My activities for today" and a lot of other options.
    2) Get : with "Description","partner", "transaction number" and so on.
    I want to know where this drop down field values "My Favorites", "My activities for today" and so on are coming from?
    Any Ideas?

  • How to access TestStand Event and variables from external application?

    Hi all
    The test system was built by TestStand, now there is a new requirement to filter the test report without change the sequence file. The task must be done without any impact to previous software system, so I decide to write a tool by VC++.
    My idea is to deal with the reports after every UUT loop, but I need to monitor the UUT loop status by VC++, if an unit is tested, pass or fail, raise a event and pass to VC++ application. In a word, I would like to access TestStand internal event and variables.
    Anyone has ideal on this case? ActiveX or something.
    thanks .
    Rexxar
    *The best Chinese farmer*

    paulbin,
    While sharing variables via COM or DCOM is certaintly possible, I don't think you need to go down that route.  I think that there is probably an easier way to limit your report.  In your Configuration menu, under the Report Options item, there is a field at the top that will allow you to filter what steps go into your report.
    This will not affect any sequence file you may have already created, all it does is change a few options in the ReportOptions.ini file in the <TestStand>\cfg directory.
    This is a much simpler option than trying to write a program to interface with a running TestStand engine.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • How to access the local files (Excelsheet) in bsp application

    Hi sdn,
    I created a bsp application my requirement is if i click the link it should display the excelsheet and if i perform any updations those updations will be modified int that excel sheet so can any one plz help me out in solving this issue.

    Hi,
    I think you shouldn't try to modifiy local files from a server application for security reasons.
    But, let's say you have your reasons.
    In your BSP, you have a link that points to an MS Excel file. Clicking this link will open the file in MS Excel and users will be able to modify and register it (and save the file in another path/name...).
    Another solution would be: create a table form (like ALV?) from the Excel file and save any modifications of the table form into the Excel file. Maybe HTMLB can supports such approach but I don't know HTMLB. I only use HTML and ABAP.
    All I said here is just overview of potential solutions. I'm not sure I exactly understood your need. Perhaps other Experts would have better answer for you.
    But I hope this will help you.
    Good luck!
    Thomas.

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use sounds in AS3/Flash. I am using Flash Pro CS6, but I can't seem to figure out how to access, control (play, stop, etc) sounds embedded in an external SWF loaded into the main SWF.
    It's easy to control them when embedded on the main swf. However, on an externally loaded SWR, I get all kinds of errors. For this app, I really need to embed them in the external SWF.
    I read several solutions, but none seem to work.
    I embed the sound an mp3 file called soundSegment1.mp3 using Flash CS6 import tool and then open the actionscript properties panel on flash to select the class name: SoundSegment1. Then I edit the class code and create a file called SoundSegment1.as and it's saved right next to my document class main.as in the same directory. The code of the SoundSegment1 class looks like this:
    package  {
        import flash.media.*;
        public class SoundSegment1 extends Sound
            public function SoundSegment1 ()
                // no code in here
            public function playSound()
                var soundSegment1:Sound = new SoundSegment1();
                var channel:SoundChannel = soundSegment1.play();
    Then, in my main.as, I have done several attempts to play this sound such as:
    var fileLocation:URLRequest = new URLRequest(SWFToLoad); loader.load(fileLocation); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener); loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 
    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work {      loader.content.soundSegment1.playSound(); // doesn't work.  }
    I get:
    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.
    or, I also read that I should be able to do something like this anywhere in the Main.as file:
    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.
    I also tried on the completeListener:
    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class; var theSound:TheClass = new TheClass();
    theSound.play()  //doesn't work either.
    I get:
    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()
    I am stuck and I really need to get this to work. I would be genuinely grateful for your help.
    Thank you in advance for any help provided. I really need to get it to work, because I can't simply embed them in the main SWF or load them individually externally one by one.
    Thanks again!

    THANK YOU!
    I think your code may be over my head though. I think you are using an anonymous function which is not something I am familiar with (but I want to learn about if it's useful).
    I also don't know where the classS came from. I see that it's a parameter sent along with the event, but I don't really see where that came from.
    Someone at: http://www.kirupa.com/forum/showthread.php?305098-Playing-a-embedded-sound-in-an-external- swf&p=2658098#post2658098
    Is showing what seems to be an easier solution, but my problem there is I can't access the source file of the "child" swf....  ayayay.....
    I am going to tinker with your solution and see if it gets me anywhere. Thanks so much for your help again.

  • How to access my hard drive when the system does not work

    how to access my hard drive when the system does not work

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • How do I force progressive download?

    I have an Adobe Media Server all set up and playing videos over RTMP.
    Users on low bandwith settings experience buffering, on occasion. To combat this, I want to force users to download the entire video before they watch any of it.
    Through my research, I've found that "Progressive download" is the way to go if I want to do this, though I haven't found how to enable or access this on the server.
    How do I force progressive download?

    I am in control of the client. I'm using the Strobe Media Playback, and alternatively, a simple flash client using netConnection and netStream.
    How do I set it on the client? Is it a change of "rtmp://" to "http://", or do I have to change a flashvar setting or what?
    And if I set progressive download on the client, would it be different than using HDS or HLS?
    In my http.conf, what I changed is:
    Under <Location /hls-vod>
         HttpStreamingContentPath
        from "../webroot/vod" to "../applications/recorder/streams/_definst_"
    All of my videos are in that directory.

  • C7 how to access the PRIVATE folder in phone memor...

    C7-00 how to access the PRIVATE folder in phone memory?
    Meaning the folder C:\private
    With X-plore you can see the folder but it is marked as 0 kb.
    Edit: reason for this is that I had Angry Birds installed on memory C:
    Then I had changed my phones default game install memory to E: at the OVI store setup in the phone. On Monday OVI suggested that I should update the AB and so I did.
    Now it installed the new version to memory E: and all my game progress was gone.
    Just need to see if the save game still lays on C:\private\20030e51.
    Solved!
    Go to Solution.

    Ah, I'm sorry - I thought it was the private folder in C drive that I had managed to get into the previous week but it was the private folder in mass storage ...
    If you want to thank someone, just click on the blue star at the bottom of their post

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access a  web service(.wsdl) from portal component.

    Hi ,
    Is there any document/tutorial available on how to access a webservice from portal component ?
    I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm...
    but the urls in the link are not working...
    i want  to know the steps to access webs service and sample code if some body has already done that..
    Thanks for the help.
    Lakshmi

    Hi Lakshmi,
    See the links below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/581140d72dc442e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/918340d990ce62e10000000a155106/content.htm
    Hope this helps.
    Regards,
    Pooja.

  • How To Access HTTPS Web Service  in Application Module

    I need to know how to access HTTPS web service in application module.
    If you can provide the tutorial or guidance to achieve this really appreciate.
    Thanks
    Sameera

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

  • How to access a web service from a XLet

    Hello,
    I am new in software development to ITV and I dint find too many usefull information teaching how to access a web service from a XLet running in a STB. Are there anybody who can give me some help, maybe sample or tutorial?
    Gratefull
    David

    hi,
    you can "borrow" the source code from [Yambo a free soft open source presentation engine (AKA XML microbrowser Xlet )|http://www.cineca.tv/labs/mhplab/index-en.html] both local and on a http remote connection.
    hope it helps..
    bye
    andrea

  • Memory Problem on 790fx-gd70 - how to access DDR Voltage in BIOS?

    I have been getting memory related problems on a 6 month old system. I could only boot from one stick of RAM (Corsair TW3X4G1333C9A) but even then system was not stable for gameplay or stability test though this stick did pass overnight memtest. I returned the board, cpu and memory for them to test. They diagnosed faulty RAM and replaced. Well it worked OK for 24 hours then I started getting BSOD "PFN_List_Corrupt" and "Memory_Management" crashes.
    I tested the new sticks and one fails memtest after a few seconds with 2378 errors and the other, although it passes memtest with 20 passes, crashes out straight away on Prime95 Blend Test (i.e. the one that stresses RAM).
    They suggested I enter DDR Voltage manually rather than relying on Auto but no matter what I seem to enable this option is greyed out. Does anyone know which settings need changing from defaults so I can get at the voltage section?
    I have tried swapping around the dimms but they are all the same regardless so not a slot problem. Now of course, I don't see it as a RAM problem either unless I am the unluckiest person to keep getting bad sticks. So now I think maybe something on the board or CPU is causing damage to the RAM or at least causing it to mis-report. Could a fault in the memory controller be doing this and if so how can I test for this?
    At my wit's end here. Hope someone has some ideas - either on how to access DDR Voltage in the BIOS or get to the cause of my problem.
    Many thanks.

    OK thanks for explaining a bit more  .  This power unit did get some very good reviews in the sub $100 from many sites and from these I thought it would suit my needs. I have arranged to try a friend's 650w next week.
    I think I am maybe not being clear.  I have had the system running OK for six months. I had had no need to test the ram and didn't bother with stability tests at that stage.  I am not a gamer and use my machine more for video and graphics work.  One thing I did notice from the start was the couple of games I do have on (Call of Duty and Fallout3) would give occasional freezes.  I put it down to my now rather old hot GPU which I would get around to replacing in due course.
    Now the real problems started recently when I got round to replacing the stock cooler with a Titan Fenrir.  Trouble with this is it overhangs Dimm1 but in moving around the memory sticks I seem to have opened a real can of worms.  I could only get it to boot from one of the sticks.  This stick passed memtest but would crash out of prime95 and games would freeze within a couple of minutes. 
    Now, the retailers here in the UK told me to send back board, cpu and RAM.  They tested all 3 but they only replaced the memory and as you can see from my first post the memory related problems have continued.  The memory by the way is in Corsair's list as "100% tested compatibility".  Is it possible that something about the CPU/Board that is damaging the RAM?  If a stick is failing memtest (it failed another test too called Windiag) is that definitive?  It is bad for sure or board/cpu misreporting?  Am I right in thinking memtest86 does cannot distinguish faulty RAM from faulty memory controller?  Is there a test I can do to check if the CPU alone is faulty?
    I don't know if this means anything to you guys but when I ran the prime95 (Blend) recently with both sticks in it failed straight away on 2 cores but went on running on the other 2. 
    One of my other frustrations is I don't know anyone else with am3 board or memory so swap things around.
    Any suggestions for pinning this down would be much appreciated.  Just don't assume my knowledge is as great as yours  .  But I do learn.  I never knew v x a=w for example. And I now know how to change DDR Voltage in the BIOS - I had been expecting a sub-menu where Auto was greyed out and in fact it was just sitting there waiting for me to press + and -.  Very embarassing that I spent hours trying to change this when the instructions on what to do were right there in the help column!

Maybe you are looking for

  • Windows 8 Installation on partitioned drive

    Hi! This is my first question and sorry for my broken English. I'm currently trying to install Windows 8 in my Macbook Pro 15" machine. But I got this as an error message. "Windows cannot be installed on this disk. The selected disk is of the GPT par

  • Creating a bootable Volume for the MBA

    This post is kinda a follow-on to post http://discussions.apple.com/thread.jspa?threadID=1386691&tstart=0 I used Disk Utility to re-partition my internal SSD so that I could clone my Time Machine backup USB disk Volume to it using SD! version 2.5 (Le

  • Re: Receiving a call and the number of rings

    I cannot discover how to change the number of times my phone rings before it goes to voice mail or terminates the call.  At present, it only rings twice, and that is not enough time to get the phone out of my purse, off my desk, and/or answer before

  • Notes Missing Punctuation

    In the notes function my ipod does not show quotation marks or apostrophes, though it does show periods, commas etc. Has anyone else had this problem? How did you fix it?

  • Simple Count using Analytic view and Odata

    Hi Experts, I have an analytic view based on one table and Odata services on top of it. Now i want to include three measures just simple count with group by, just for this i ddint want to go for calc view. Please help me how to achieve this using ana