How do I make a data connection object variable?

This should be easy but I can' t sort it out.
I created a database connection and cloned it so I could avoid security issues.
The cloned connection works fine and I can query for specific records and the bound fields are populated. The problem comes when I try to advance to the next record with "clonedDB.next()" for example. The error that says "clonedDB is not defined". This code is all in Java by the way.
So I though maybe I need to create an object variable to contain the clonedDB object; this is what I can't figure out how to do or if will solve my problem.
Thanks in advance!
Cheers,
Al

Can you send me your form so I can have a look?
If the attachment ability is not available for you can you email it to [email protected]
Thanks
Paul

Similar Messages

  • How can I make my adodc connect faster to my SQL Server? It's taking a minute (so long) before I can view thousand of record in my listview.

    How can I make my adodc connect faster to my SQL Server? It's taking a minute (so long) before I can view thousand of record in my listview. Please anyone help me.
    I'm using this code:
    Public Class McheckpaymentNew
    Private cn As New ADODB.Connection
    Private rs As New ADODB.Recordset
    Private Sub McheckpaymentNew_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Try
    cn.ConnectionString = "DSN=database; UID=user; PWD=password"
    cn.Open()
    rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient
    rs.CursorType = ADODB.CursorTypeEnum.adOpenStatic
    rs.LockType = ADODB.LockTypeEnum.adLockBatchOptimistic
    Catch ex As Exception
    MsgBox("Failed to Connect!, Please check your Network Connections, or Contact MIS Dept. for assistance.", vbCritical, "Error while Connecting to Database.."
    End
    End Try
    End Sub
    End Class

    How can I make my adodc connect faster to my SQL Server? It's taking a minute (so long) before I can view thousand of record in my listview. Please anyone help me.
    I'm using this code:
    Public Class McheckpaymentNew
    Private cn As New ADODB.Connection
    Private rs As New ADODB.Recordset
    Private Sub McheckpaymentNew_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Try
    cn.ConnectionString = "DSN=database; UID=user; PWD=password"
    cn.Open()
    rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient
    rs.CursorType = ADODB.CursorTypeEnum.adOpenStatic
    rs.LockType = ADODB.LockTypeEnum.adLockBatchOptimistic
    Catch ex As Exception
    MsgBox("Failed to Connect!, Please check your Network Connections, or Contact MIS Dept. for assistance.", vbCritical, "Error while Connecting to Database.."
    End
    End Try
    End Sub
    End Class

  • How i can make  my own connection in java source of a jsp page

    How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
    imagine that i have a rowset in a web page , now i want to do some operation using
    plain JDBC , so i will need a connection object.
    I tried to get one of my rowsets connection but it return null ?
    what is best way to retrive a connection from JNDI datasource that we define for our project?
    for example if i have
    myRowSet.setDataSourceName("java:comp/env/jdbc/be");
    in web page constructor
    now i want a pure connection from the same datasource ? JNDI
    Thank you

    It is not hard to get your own connection from datasource.
    in your case you need to do like the the following code.
    i provide sample to show you how to catch the exception and create an statement .
    Connection con =null;
    try{
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
    con = ds.getConnection();
    java.sql.Statement st =con.createStatement();
    }catch(SQLException sqlex){
    sqlex.printStackTrace();
    sqlex.getNextException().printStackTrace();
    catch(NamingException nex){
    nex.printStackTrace();
    hth
    Masoud kalali

  • Is possible to make Serializable a Connection object?

    Hi I would like to know if is possible to make Serializable a Connection Object, I would like to save the Connection object into a text file so other class can read it and execute a proper query. If is possible how can I do it?.
    Thanks.

    Actually, if a class isn't already Serializable, you can't make it become Serializable reliably. Consider the following case:
    class A
        int x = 0;
        public void setX(int new_x) { x = new_x; }
        public int getX() { return x; }
    class B extends A implements Serializable
        int y = 0;
        public void setY(int new_y) { y = new_y; }
        public int getY() { return y; }
    public static void main(String arg[]) throws Exception
        B b = new B();
        b.setX(10);
        b.setY(12);
        someObjectOutputStream.writeObject(b);
    }The problem with this is that the implementation of Serializable by class B does not affect class A. In the above example, the ObjectInputStream that obtains the instance of B will have a y value of 12, but an x value of 0 (not 10).
    Thus, unless the Connection object implemented Serializable to begin with, it can't become Serializable. And, as the above post has described, the implementers of the Connection object would not make it Serializable as the local Connection object uses underlying O/S resources which cannot simply be transformed into a byte array.

  • Can we make a data connection using a WADL file?

    Can we make a data connection using a WADL file for REST web services?

    Can we make a data connection using a WADL file for REST web services?

  • How do you make your data into a chart?

    How do you make your data into a chart?

    Dick,
    Your table should look like this:
    You're looking at 1 Header Row and 1 Header Column. Headers are shaded by default. Adding a shading to a regular column doesn't make it a header. Use the Table Inspector.
    When you Select the data and Insert a Table, you will get this:
    Got it?
    Jerry

  • External content type error: Business Data Connectivity object not found.

    Hello
    I have to change the external database (external system) for an external content type. The database view on the new database is exactly the same as on the old database.
    After changing the external system of the external content type, this happens:
    When I try to add a new item to the list, I get this error under the external data field:
    "Business Data Connectivity object not found. Administrators, see the server log for more information."
    Also, when I try to update the external data field, it is not possible because the buttons are grey.
    When I add a new external data field to the same list, I can use the external content type. For some reason the current external data field doesn't update.
    Any ideas?
    Any help would be much appreciated!

    Have you implemented both ‘Read List’ & ‘Read Item’ operations in your ECT?
    This may be helpful -
    https://sharepointcreations.wordpress.com/2014/03/13/business-data-connectivity-object-not-found/
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • How do I make a NAS connected to a MacBook Pro visible on the network?

    I have a NAS connected to my MBP via ethernet, how do I make this drive visible to other Macs on my home network?

    A NAS, Network Attached Storage, is Not connected to any one computer. It is connected only to the LAN, Local Area Network, by an Ethernet cable and or wirelessly (Better by Ethernet cable and only a few NAS system work over WiFi and they are SLOW).
    If you are attaching a USB, Firewire or Thunderbolt external drive to your Mac that is not a NAS system. It is a drive connected to your system and for it to show to the rest of your LAN it must be shared from the computer it is connected to.

  • How do I make my iPhone connect to my Mac and sync my apps from my phone to my computer?

    I recently switched my iPhone account to a new  computer, and I can't figure out how to make my computer recognize my apps on my phone. I have a new email that i use for my iTunes stuff and it works, but on my phone it doesn't recognize the new email and it shows the old email and asks for the password, but even my old password doesn't work. I'm so frustrated How can I make my phone change the old email to the new one? The only problem is for the App Store. Thank you

    You have made your situation complicated by creating a new Apple ID. As stated, you can only authorize and update content from the iTunes and Mac App Stores with the Apple ID that was used to acquire it. You will indeed need to maintain the old Apple ID if you do not wish to lose all previously acquired content.
    To get the apps and other content on your iPhone to your new computer, you need to transfer purchases from the iPhone to the new computer before you sync the new computer and the iPhone. If you sync the iPhone without first transferring the purchases you may lose all the previously acquired apps that are on the iPhone. After opening the iTunes app on the computer connect the iPhone to the computer. Do not let the iPhone sync with the computer. Highlight the iPhone in the devices list and then choose Transfer purchases from the iTunes app's File menu.
    In order to use these apps that you have transfered from the iPhone to the new computer, you will need to Authorize the new computer to use the content from the old Apple ID. You authorize the computer to use this content from the iTunes app's Store menu. You can use content from different Apple IDs on the same computer.

  • How do i make a DATA file in garage band

    ok here is what im trying to do. i need to make a DATA file in garage band and i need to make it possible for the DATA file to be used on Pro Tools so the song can be mixed and mastered. any tips on how to do this?
    LISA

    What I assume you are trying to do is export a MIDI file. GarageBand does not do this, and I don't know of any add-ons which allow it (MidiO allows you to play out MIDI to an external device so you might be able to route this to ProTools). Of course if you do this you won't be using the instruments which are in GB, and the results you get will depend on what you have available in ProTools.
    However you can export GarageBand tracks as audio and them mix them in another program. I do this in Cubase LE because its mixing facilities are way better than GarageBand's. This note will tell you how to do it, just substitute ProTools for Cubase:
    http://homepage.mac.com/rfwilmut/notes/GBtoCubase.html

  • HT3500 how do i make my printer connect to a new SSID

    I have a new wireless address, and my printer's setting is the old wireless SSID. so my printer is not connected....  how do i make the printer to connect my new SSID??

    You have a printer question, not an AirPort question. No adjustments need to be made on the AirPort if wireless is working for other devices.
    Check the documentation that came with your printer to see how to reset the device back to the original default settings it was using when it was new.
    Then, configure the printer to connect to the "new" network....just like you did when you configured it to connect to the "old" network.
    If you need more info, you need to contact support at the printer manufacturer.

  • How can I create a data connection without ODBC (directly with OLE DB)

    If connecting to an OLE DB data source, which is not defined as ODBC, the well known error message appears in Acrobat, that the environment is not trusted. The Designer Help says, that the document must be certified in Acrobat to run OLE DB without ODBC. So I certified the document in Acrobat allowing dynamic content for it. But the error message always appears. So I have some questions to this:
    How is the correct certification process in Acrobat to define a trusted environment for using OLE DB without ODBC?
    Why generates using of ODBC an trusted environment? With using ODBC data sources can be changed external from Acrobat, so I must think, ODBC is absolutely insecure.
    Why is OLE DB without ODBC insecure? Here I have a defined connection string, which cannot be changed at runtime (if the form developer this doesn't want).
    And why is the first record displayed instead of the error message, if using OLE DB without ODBC, but navigation is impossible?
    This seems all very mysterious to me.
    Does anyone in the world has ever created an OLE DB data connection (without ODBC) with Designer and Acrobat, which runs in a trusted environment?
    Thanks for your answers.
    Michael

    For the Projects, the trick will be the Asset files. If they will fit onto DVD DL discs, you're OK. If they are too large (DV-AVI is ~ 13GB per hour), then you'll need some type of backup, or spanning software, that will write files across multiple discs. A better choice, IMO, would be a 1 - 2 TB external, where you can use Project Manager, or just Windows Explorer and Copy, to do the entire Project folder with Assets. I'd recommend against a USB and go at least for FW-400. FW-800 would be better, but you'll need FW-800 connections on your computer. eSATA would be the best, but then you'll need eSATA connectors.
    Good luck,
    Hunt

  • How to find unassigned master data text objects in process chain in bi

    Hi
    Please let me know how to find the unassigned master data text objects in process chain.

    hi,
    actually if u want to find that , is ur Unassigned Infoobject in present in process chain or not, , that u can find out just by right
    click on your DTP (master data Txt datasource--> Master data text ), if this is present in Process chain, then on ryt click, the process chain option will be active. by clicking over that u can find the name in which this exists.
    thanks.

  • How can I make the data persistent when using plist ?

    I have a UITableView table1. And when I touch any cell in the table a new UIViewController appears and it have two UITextField's name and description. After entering the data in both the text fields I used the save button to save them. In save method I wrote the code for the data to be stored in plist.
    -(void)save:(id)sender
    indexOfDataArray = temp;
    NSString *string1 = [[NSString alloc]init];
    NSString *string2 = [[NSString alloc]init];
    string1 = nameField.text;
    string2 = descriptionField.text;
    NSDictionary *myDict = [[NSDictionary alloc] initWithObjectsAndKeys:string2, string1, nil];
    [myArray addObject:myDict];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"VideoData.plist"];
    [myArray writeToFile:path atomically:YES];
    UIAlertView *alertMesage = [[UIAlertView alloc] initWithTitle: @"Save Alert" message:@"The data entered is saved" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil] ;
    [alertMesage show];
    [alertMesage release];
    [myArray retain];
    But the problem is every time I restart my application the data in the plist is deleted. How can I retain the data in the plist name I specified ?

    I think yes, I am specifying only one file name to store in the path. I understood my where I am wrong.
    If I added data in plist for two items(item1 and item2). And again I need to add next two items(item3 and item4) . How can I make item3 and item 4 do not replace item1 and item2 ?
    Thank You.

  • How can i make requirement date in component take the actual day date??

    hello evry one >>>
    why requirement date in component ( service order ) dose not take the
    actual day date when we Withdrawn part from stock >>>> how can i make
    the requirement date take the day date automaticly without change it
    from offset field
    for example :
    when i withdrawn apart in (old service order) .. the requirement date
    take the old date or ( the service order date ) and it dosen't tack
    the day date ( day when i withdrawn part )
    please i whant help & thank you . good luck
    .... omar gamar ...

    Wrong forum:
    http://www.microsoft.com

Maybe you are looking for

  • Business Workplace Inbox : Mail Content Not Displayed

    Friends, We have a problem in displaying contents of the mail(SAP Inbox) in one of the PC's. When we reply w/refernce to that message the content is displayed properly. And also the same mail content is displayed properly in another PC's for the same

  • VT Advantage with CCM 4.x

    Hi team, We are trying to do a demo for customer on VT advantage (Video) using CCM 4.x server. We are facing some peculier problem where when we initiate a call, it shows only the caller screen on the respective cameras but the voice works oerfectly

  • How to fix iPad that has a green screen and lags when you try watching videos

    How do you fix your iPad when it has a green screen and it lags when you try to watch videos, such as from YouTube? I tried to watch YouTube on Safari but it does not work, and the app version of YouTube does not work either. When the video is playin

  • OBIEE 11.1.1.7 Simple Install stuck at 0% Creating Domain step

    Hello All, I am trying to install OBIEE 11.1.1.7 on 64 but Windows7 Enterprise SP1 machine. I installed the Loopback adapter, added entry in host file for static IP and computer name, Installed latest Java in C drive at C:\Java Installed 11g DB, ran

  • Hello, upgrading and old I-Mac ??

    , the question is if i can upgrade my OS to lion or maverick, is it gonna support it or not and will it save all my apps and files? if so, how can i do it? those who have experience of upgrading - is it worth it? thanks! Amit