Problem creating an application

Hi I've got a problem with my application.
The normal Lab_View VI of my programm works just fine.
But as soon as I build the application I get numerous problems , like for example  some of my DAQ  Functions can't find their Physical chanels etc.
Unfortunately I can't post the VI.
I'm using LabView 8.2.
Regards
Matthias

Matthias,
I have seen something similar.  Did you create any DAQmx task or channel definitions in your project or did you create them in MAX? 
In the case of a co-worker,  the problem was the project based DAQmx channels and he had to blow away the project based channels and recreate them in MAX.  The problem was verified by NI tech support but I never did hear anything about a fix.
I would suggest creating a very simple vi that uses part of your DAQmx code and run a couple of experiments.  First verify that the small .exe has the same problem.  If your original vi used project based channels, then try redefining them in MAX and see what happens.

Similar Messages

  • A problem when I try to create a application view throug a Bea MQSeries Adapter8.1

              Hi, guys!
              I have installed Weblogic platform 8.1 beta, and try to use the MQSeries Adapter
              which provide by Bea weblogic, and it's seems I must deploy the .ear file which
              is an application include the MQ Adapter, on a domain which provide the Integration
              function, the ear file I was download from bea site. So I deploy it in the samples/domain/platform
              domain as the docs told me. And after that I create a new directory called session
              and a subdirectory contain a manifest.xml file, I do this also due to the docs
              provide by Bea. And then I can create the application view in the application
              view console, BUT, when I try to add a Event in the console, the page and OS console
              both print this message :
              DEBUG 21 ?? 2003 20:43:11,906 BEA_MQSERIES_1_0.DesignTime - getMergedDictionary
              got exception:
              DEBUG 21 ?? 2003 20:43:11,906 BEA_MQSERIES_1_0.DesignTime -
              StackTrace:
              java.lang.NullPointerException
              at com.ibi.beamqseries.web.DesignTimeRequestHandler.getMergedDictionary(DesignTimeRequestHandler.java:372)
              at jsp_servlet.__addservc._jspService(__addservc.java:120)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1047)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:383)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:301)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:547)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:364)
              at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:153)
              at jsp_servlet.__display._jspService(__display.java:632)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1047)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:383)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:301)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6319)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3525)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2553)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
              And I'm not quit sure about how to make the Schema directory correcttly, I just
              make one manifest.xml file. and hope I can find more document about the adapter,
              or can fix this problem.
              by the way, I just have userguid, installguide and releasenotes pdf file which
              can be download from Bea
              Regards,
              shannon
              

    Can you tell me the exact url of the BEA_MQSERIES_8_1.ear?
              Please give it to me... Thanks in advance...

  • Problem Creating APPLICATION Bean

    As you all know, JSF application bean are used to store information across all user sessions.
    When I create an application bean class with sun creator 2 release, my IDE freezes. And I have to restart creator and then it enters a slump again and the loop continues.
    Please could someone guide me.
    I intend to use the application bean to cache an object that is required by all users so that once the app bean is initialized then it can be available across all user session. Then each user can take that object and use it for it operations.
    I will be glad if I could get help pretty soon.

    tnks,
    I have tried to use the default ApplicationBean1 that gets created when u create a new project.
    To my amazement, when I embed codes in constructor or init() creator freeze-up and i have to shutdown abruptly and restart. The problem persist until i use the file system to expunge the code i'd earlier embedded.
    Looking forward to hepls from everyone

  • Problem create jco connection in webdynpro application run time

    Hi There,
    I created webdynpro application using rfc model.
    After deploy the project , i created two jco connection
    for data & meta data this is work o.k (test with no errors). the sld is o.k.
    We are using application server (Single Server) for data
    & message server for meta data (Load Balance).
    During run time there is an error message:
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.ness.crm.customerlasttwo01pckg.model.types.Datab could not be loaded: com.sap.dictionary.runtime.DdException:
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:225)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:78)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:64)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:39)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
         ... 44 more
    <u>Can some one help me with this matter?</u>
    Best regards Nir Shohat.

    Hi Nir,
    We also had same problem but no we won't. Check ur config on SLD again and the try to the test connection from the http://localhost:4444/webdynpro ( WAS 6.4 )server.
    If this connection is OK then deploy some small application n see.
    Is ur's JCo connection working for J2ee application?
    Arnigs

  • Problem creating application from spreadsheet(.csv)

    I am experiencing a problem while creating an application from a spreadsheet (.csv file). I select upload csv file, the filename, and on the set table properties page the columns are in random order. Normally, the columns follow the order of the first line of the .csv file with comma separated column names. If the columns are not in the order specified in the .csv file, it cannot be loaded. I have used this method a few times and never had this problem in the past. Any information is appreciated.
    Thanks.

    Hello,
    Sure you cannot utilize the spread sheet functions in creating a Database app.
    You can do what you want by either using SQL function in the Report source, or if you use Interactive report then you can do it using Actions Menu >> Format >> compute .. Then you save your report as a default report.
    Please read more here:
    http://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5719,29
    http://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5717,29
    http://apex.oracle.com/pls/apex/f?p=44785:24:0::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:5718,29
    Best Regards,
    Fateh
    If you believe that my answer was helpful to you or correct then please mark the answer as helpful or correct
    Edited by: Fateh on Nov 21, 2012 3:23 AM

  • Problem creating Application Server Connection

    Hi,
    I am experiencing some problem in getting the connection to work right after I install the JDeveloper 10.1.3, the following is the configuration I used, please help me on this:
    Connection Type: Standard OC4J 10g 10.1.3
    Host name: localhost , RMI Port: 23791
    Firewall for port 23791 is turned off for both UDP and TCP.
    When I test for connection, I got the following error:
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    I do not understand why this happen. Do I need to turn on any server to get this to work? Please help me. Thanks.

    Hi Timo,
    Thanks a lot. After doing much research here and there, I managed to get it work. I think it would be better that I shared my experience with everyone and this is how I get my first JSP on JDeveloper (OC4J) to work:
    - Start the OC4J server by running [Where you installed your JDeveloper]/jdev/bin/start_oc4j.bat
    - Create an application server connection. [For username: admin, password: welcome, URL: ormi://localhost:23791/]
    Just wonder if anyone can give me a clue on how do I change my port to 80 instead of the default 8988 and also how to change the context root?

  • Problems in creating a application system

    RME-00011: Operation 'open' on ACTIVITY has failed
    RME-00011: Operation 'INS' on ci_application_systems has failed
    These are the errors i get when i try and create a application system. Can some plz tell me what to do exactly. Iam all confused.
    Thanks

    It doesnt work, because i deleted the ' while chaning the caption to currency....
    OK here is my original Text....
    chart:
    <Graph graphType="PIE">
    <Title text="" visible="true" horizontalAlignment="CENTER"/>
    <LocalGridData rowCount="{count(xdoxslt:group(DATA/query_DATA/ROW, 'POS_EURO_TXT'))}" colCount="1">
    <RowLabels>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="POS_EURO_TXT">
    <xsl:sort select="POS_EURO_TXT"/>
    <Label><xsl:value-of select="current-group()/POS_EURO_TXT"/></Label>
    </xsl:for-each-group>
    </RowLabels>
    <DataValues>
    <xsl:for-each-group select="DATA/query_DATA/ROW" group-by="POS_EURO_TXT">
    <xsl:sort select="POS_EURO_TXT"/>
    <RowData>
    <Cell><xsl:value-of select="sum(current-group()/NET)"/></Cell>
    </RowData>
    </xsl:for-each-group> </DataValues>
    </LocalGridData>
    </Graph>
    <DATA>
    <query_DATA><ROW>
    <KUNGRUPPE>ABC</KUNGRUPPE>
    <POS_EURO_TXT>USD</POS_EURO_TXT>
    <NET>7785763.25</NET>
    </ROW><ROW>
    <KUNGRUPPE>ABC</KUNGRUPPE>
    <POS_EURO_TXT>EURO</POS_EURO_TXT>
    <NET>15242332211.9</NET>
    </ROW><ROW>
    <KUNGRUPPE>XXX</KUNGRUPPE>
    <POS_EURO_TXT>EURO</POS_EURO_TXT>
    <NET>7894268.84</NET>
    </ROW></query_DATA>
    </DATA>
    Greetings

  • Modify a  Page created in Application Builder (cursor problem)

    I created a application in the 'Application Builder' that comes with Oracle Express. I can not get the cursor to start in the first field if that field is a 'text field automatically submit when enter pushed'. it only works when I change that field to 'text field'.
    Is there a way to fix this?
    or
    Can I pull up the code for that page and modify it manually?
    or
    Can I open that form in JDeveloper?
    Thanks.

    Hello Garrett,
    Around here, apex, ApEx, APEX, is short for Oracle Application Express.
    Oracle XE comes with Oracle Application Express, however it is Application Express version 2.1. The latest production version of Application Express is version 3.2.1.00.12. See here: http://www.oracle.com/technology/products/database/application_express/download.html for information on upgrading your version of ApEx to the latest version. It provides tons of improvements over what was already a sweet tool.
    Application Builder is just one of the tools (albiet the primary tool) in ApEx. It sounds like you're definitely going to want to spend some time with the Help, and also in the number of tutorials available at http://apex.oracle.com/i/index.html to get up to speed with it. There's too many places to list here where you can incorporate Javascript into your applications - but check out the help and tutorials and I'm sure you'll soon no longer be a "total noob"! I'm assuming you do mean Javascript - not Java - two very different languages used for two completely different things.
    Hope this helps,
    John

  • App Store problem, appear an application update that does not exist applications

    I have an iMac 2.5 Ghz Intel Core I5 and operating system Mac OS X Version 10.7.3
    The problem is an application (Angry Birds) in my app store's update section that doesn't exist my installed applications.
    It has been seen update section for two months and that is created by an account which is not my account
    How can I remove this object from my app store's update section?
    <Edited by Host>

    Hi..
    Unfortunately, it sounds like you are the subject of pirated software.
    Follow Dahveed's help here >  app update available but not an app on...: Apple Support Communities
    You can report this to Apple using the email form here >  Apple - Support - Mac App Store - Contact Support

  • Error while creating OCA application in NWDS 7.1

    Dear Experts,
    I am creating mobile application for Handhelds (OCA) using mobile 7.1.
    I created the service component, ui component and application component. Added the dependencies, build the application, uploaded the 3 components to the server, assigned it to my device.
    But when I login into the mobile client in PDA, in application launcher screen, no application appears. In Device admin portal when i check, the status of MCD is installed.
    Also when i simply run the application from NWDS using the built in PDA simulator, the application doesnt show any data and on the NWDS console i get the following error
    2009-02-10 20:22:22 ...  (com.sap.tc.mobile.cfs.pers.PersistenceManager:release resultset) Thread: Finalizer Error: java.sql.SQLException: Result set is closed
    I am sure the coding part is not a problem. As before this application i created a similar application for Laptops and its working fine.
    Reply Awaited
    Regards
    Priya

    Hi Veera/Abhi
    I have installed MinDB and all the required files on the PDA. It is synchronizing with the middleware.
    On my NWDS PDA  Simulator , the application is appearing but when i click on the application there is no data and it is giving exception
    2009-02-11 13:02:40 ...  (com.sap.tc.mobile.cfs.pers.PersistenceManager:release resultset) Thread: Finalizer Error: java.sql.SQLException: Result set is closed
    Madhu--
    Please find my ans to the following points mentioned by you
    1) BASIS SWCV must be assigned in the Distribution Model Software Component Version tab of the device.
    It is assigned
    2) Activate the "DISTRIBUTE_USER_DETAILS" Rule in the admin.
    Rule is activated
    3) Activate the "DISTRIBUTE_USER_AUTHORIZATIONS" Rule in the admin.
    Rule is activated
    4) Make sure that you have installed the following components in the following sequence in the PDA
    - Creme
    - MinDB/DB2e
    - PDA_eswt_container
    - PDA Runtime.
    Client is  installed in this sequence only. I referrred to help.sap.com while installing
    the application should atleast work in the NWDS PDA simulator. My basic problem is it is not picking  up the data. giving the above mentioned error.
    Regards
    Priya

  • Error While create web application

    When I try to create new web application on my server it return error as the Virtual directory already in use. For example if I create the web application in 9090 port means it shown the error the virtual directory 9090 was already used by other application
    . but I am sure there are no site in the directory. I am try with 3 or 4 different port same problem. I have try to create web application with host header and without host header also same problem was occur.
    Any Suggestion? Thanks in advance
    Ravin Singh D

    Hi Ravin,
    According to your description, my understanding is that you got an error when you create a new web application.
    Please log on the server with administrator account.
    And please check the followings:
    Ensure you have a proper dns name / entry in the hosts file of your server for the new url you are wanting to create.
    Ensure you have typed in the ‘host header’ typed in when creating the new web application.
    If this doesnt work, open IIS Manager – Start>run> inetmgr> and verify the home directory – it could be located on a different drive.
    More information:
    http://www.jeremytaylor.net/2010/01/13/the-directory-cinetpubwwwrootwssvirtualdirectories80-is-already-being-used-by-another-iis-web-site-choose-a-different-root-directory-for-your-new-web-application/
    If this issue still exists, please check the log file to find more information about this issue. The path of the file is: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to create an application with a 'Windows' like interface?

    Hi,
    I am trying to create an application with an windows like interface where menu selections need to open bound taskflows in a page/window but i can not get it to work. I did the following
    - i created a page template with a panelStretchLayout
    - added a menuBar with commandMenuItems
    - created a start page based on the template
    - created bound taskflows with page fragments for all menu items
    - placed a dynamic region on the start page which initially shows a taskflow with an empty/blank page fragment
    - change the dynamic region taskflow from every menuitem and added partial triggers on the dynamic region for every menu item
    When i run the application the first empty page fragment is showed correctly but when i select a menu item the correct new page fragment is showed but it keeps showing a loading data .... hint and seems to freeze. So no data is showed while the underlying datacontrols work while using the bc tester.
    Besides this problem i am wondering if i at all am going the right way with this with using a dynamic region? In the final application i will have a total of about 25 menu items over several menus and if they all will be showing in one main dynamic region with partial triggers set to all menu items it may get a bit complex? I saw you can also create a window in a popup which i like even more because it looks like an actual window but this is modal. I would like a bound taskflow to be opened whenever a menu selection is made.
    Any pointers or tips or the solution to not showing data?
    Kind Regards,
    Andre

    Hi Sascha,
    If have not encountered that problem. Are you sure you have a taskflow entry under the executables tag in the page definition of the page which has the dynamic region on it? I have one like this:
    <taskFlow id="dynamicRegion1" taskFlowId="${DynamicRegionBean.dynamicTaskFlowId}" xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
    During the selection of its initial value when it is rendering for the first time it should have the session bean already initialized. My bean looks like this:
    public class DynamicRegion {
    private String taskFlowId = "/WEB-INF/startTF.xml#startTF";
    public DynamicRegion() {
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String feitenTF() {
    taskFlowId = "/WEB-INF/feitenTF.xml#feitenTF";
    return taskFlowId;
    public String themasTF() {
    taskFlowId = "/WEB-INF/themasTF.xml#themasTF";
    return taskFlowId;
    public String feitCategorienTF() {
    taskFlowId = "/WEB-INF/feitCategorienTF.xml#feitCategorienTF";
    return taskFlowId;
    The startTF is the initial taskflow and the other methods are being called from my menu. The dynamic region has the menu items as partial triggers. That is all i did.
    Kind Regards,
    Andre

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • Error 1603 in deploying Office 2003 by creating an application object using its MSI package!

    Hello,
    I got the error of 1603 when I ran Office 2003 MSI package through NAL. I
    have no idea how to resolve this problem. Even though I enabled logging in
    Office 2003 installation, I still could not figure out what went wrong and
    what caused the error.
    I have used Snapshot to create an application object for a long time with
    little problem. However, I could not successfully deploy any MSI package
    created by an application object. I knew ZenWork Managing Application has
    the feature, but I don't know how to make it work in our environment.
    Do I have to know more about Microsoft Window Installer ?
    Appreciate your comments and experience in advance
    Thanks
    Joe Liu
    email: [email protected]

    [email protected],
    > I got the error of 1603 when I ran Office 2003 MSI package through NAL
    >
    Start here:
    http://support.novell.com/techcenter...tation&x=0&y=0
    Yes, understanding MSI helps. FWIW I have deployed 2003 this way.
    - Anders Gustafsson, Engineer, CNE6, ASE
    NSC Volunteer Sysop
    Pedago, The Aaland Islands (N60 E20)
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement
    Using VA 5.51 build 315 on Windows 2000 build 2195

  • Is it possible to embed DAQmx in Installer(created by Application Builder)?

    The good thing of Installer (created by application Builder) is that it also integrates LabView Runtime Engine along with supports like Serial port support, Port I/O support etc. Due to which one can install the application developed by Labview on any system wheather that contains Labview or not, as the engine required by that application also gets installed.
    But problem with my application is that it uses DAQmx related stuff, so I have to install DAQmx 8.0 prior to running my application installer on any system. Is it possible that the DAQmx related stuff required by my application also gets install through same installer as it installs LabView Runtime Engine, so that the distribution of my application donot require the complete installation of DAQmx.

    You need to use LV 8.0.  You can add NIDAQ to your installer in LV 8.0.  In previous versions I do not think it is possible.
    see: http://zone.ni.com/devzone/conceptd.nsf/webmain/5ADBC06AC32E508A8625706E0062EBD1
    Matt
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

Maybe you are looking for

  • Multiple copies of the same alert on SCOM console

    We have an Oracle EM Grid Control 11.1.0.1 installation and the SCOM connector is configured to send alerts to a SCOM 2007 R2 system. We note that every alert from OEM appears on the SCOM console 5 times (a minute late with each other), we suspect th

  • New to Dialog Boxes and I'm stuck

    Seems there is no way to format a field in a Dialog Box. How can a field be checked to determine if the correct type of data was entered in it, when the user moves to the next field, before data is committed? I am stuck on how to limit the number of

  • Can i create an exetutable (.exe) program with java???????

    I would like to learn how i can create an exetutable (.exe) program with java. Is there any additional package which i should download or buy it? Also i would like to write files into CD's direct from my application. Is there any library which i must

  • SRM to ECC Vendor Replication

    Hi All We are implementing the Extended Classic scenario and SRM is the lead system. Vendors are registered through ROS and transfered to SUS and EBP. Which leads me to a problem. If SRM is the leading system for new vendors, there will obviously be

  • Typical Pricing

    Dear All, I m facing a Problem in pricing Procedure.It is as below           RATE     QTY.          AMOUNT      BASIC RATE     63.5     15998.8          1015923.80 LESS     SPL DISCOUNT     1.75     15998.8          27997.9 LESS     FREIGHT     0.56