Help with Test Server & Binding Recordset ASP-SQL

Using CS 3.3/DW. Behavior is the same on two different
machines. One is Vista Home Premium SP1 IIS 7 with 6 compatability,
other is XP SP 3 IIS 5.1, both have IE 7 and full SQL 2005 with
SP's.
Haven't gotten very far away from static page yet, because I
can't test. Have scoured forums and even talked to Adobe who
recreated the problem then told me that they hadn't done sufficient
testing to SQL 2005 prior to release, were supposed to call me
back, did once, supposed to call back again and haven't (3 days).
So I'm turning to the community for help, please.
Set up test server in folder 'TServer' under
C:\inetpub\wwwroot. Built a 'Hello World' ASP/VB Script page with
no data attached, tests fine, puts in the appropriate folder and
says "Hello World" in browser like a good little box should! Have
built many DSN's, they tested during the building fine, I've tried
various versions of ODBC and OLE DB, including but not limited to
Native SQL Client, which is my preference and have been quite
successful setting up the DSN's...they add to the ASP page/Site
(it's greyed out unless you have an open ASP page) fine. Test at
that point works fine. As soon as I bind a Recordset (whether I
have dropped data on the page or not...same 'Hello World' page with
Recordset info near the top of the code) and test, I error out.
Any thoughts? I'm sure you'll need more info...I've tried to
put as much as I can for starters. Thanks in advance.
Peter

When you say that you error out, what error are you getting?
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com
"Peter AZ" <[email protected]> wrote in
message news:g5qb7n$n30$[email protected]..
> Using CS 3.3/DW. Behavior is the same on two different
machines. One is Vista
> Home Premium SP1 IIS 7 with 6 compatability, other is XP
SP 3 IIS 5.1, both
> have IE 7 and full SQL 2005 with SP's.
>
> Haven't gotten very far away from static page yet,
because I can't test. Have
> scoured forums and even talked to Adobe who recreated
the problem then told me
> that they hadn't done sufficient testing to SQL 2005
prior to release, were
> supposed to call me back, did once, supposed to call
back again and haven't (3
> days). So I'm turning to the community for help, please.
>
> Set up test server in folder 'TServer' under
C:\inetpub\wwwroot. Built a
> 'Hello World' ASP/VB Script page with no data attached,
tests fine, puts in the
> appropriate folder and says "Hello World" in browser
like a good little box
> should! Have built many DSN's, they tested during the
building fine, I've tried
> various versions of ODBC and OLE DB, including but not
limited to Native SQL
> Client, which is my preference and have been quite
successful setting up the
> DSN's...they add to the ASP page/Site (it's greyed out
unless you have an open
> ASP page) fine. Test at that point works fine. As soon
as I bind a Recordset
> (whether I have dropped data on the page or not...same
'Hello World' page with
> Recordset info near the top of the code) and test, I
error out.
>
> Any thoughts? I'm sure you'll need more info...I've
tried to put as much as I
> can for starters. Thanks in advance.
>
> Peter
>
>

Similar Messages

  • Help with testing server

    Ok I may have been a little dramatic about getting fired. But
    I have a problem. I am trying to create a register page. I need to
    set up a test server right? I use a hosting site online. Now here
    is the problem:
    I don't know how to set it up! I need to know what the root
    folder on the testing server is. How do I find out?

    Site > Manage Sites > mysite > edit > testing
    server
    Select Server Type and access
    Now the testing server folder changes and depends on the
    choices above...
    If Testserver is local it is simply the absolute path to the
    folder
    (e.g. C:\www\mysite\).
    If online the folder my be something like
    /public_html/myfolder/ or
    inetpub/myfolder/
    and for the URL prefix it is simply the URL you would use in
    your
    browser to access the site:
    http://localhost/myfolder/
    http://mydomain.com/myfolder/
    Please note: If you have a local server installed (e.g.
    Apache, IIS),
    and you want to preview your active scripts you have to make
    sure that
    your site is in the root folder of your local server. Check
    your server
    configuration...
    I always use a local testserver, so I hope I didn't give you
    any
    misinformation about using a online testserver...
    Anurag
    looksgood25 wrote:
    > Ok I may have been a little dramatic about getting
    fired. But I have a problem.
    > I am trying to create a register page. I need to set up
    a test server right? I
    > use a hosting site online. Now here is the problem:
    >
    > I don't know how to set it up! I need to know what the
    root folder on the
    > testing server is. How do I find out?
    >

  • I need help with Mavericks Server: an error occurred while configuring your server.  I

    I need help with Mavricks Server, I get the following: an error occurred while configuring your server.  I have deleted the Server.app several times along with the associated com.apple and Server folder.  Any more help would be appreciated.

    There are usually some log files around, related to the installation.  See if Console.app (Applications > Utilities) shows anything relevant to the error, when you've done a fresh install of Server.app and tried the configuration.

  • Help with a select statement from a SQL Server within a DTS !!

    Hello Gurus!
    I help with the script bellow, when I run it within DTS (in SQL Sever 2000), I got the error Invalid number/or not a valid month.
    Please bellow with the WHERE CLASUE '08/01/2001' AND '03/09/2002'
    And in the other hand I change this forma to '01-AUG-01' AND
    '03-MAR-2002', the DTS start and run witha successful messages, but it does not returns row, which is wrong.
    Somebady please help!
    Thanks Gurus!
    GET Total ANIs with Trafic By Area Code
    select
         substr(b.ct_num, 0,3) as Area_Codes,
         COUNT(DISTINCT B.CT_NUM) AS ANIS
    from
         wasabi.v_trans A,
         wasabi.V_Sur_Universal B,
         wasabi.V_Sub C,
         wasabi.V_Trans_Typ D
    where
         D.Trans_typ = A.Trans_Typ AND
         A.Sur_ID = B.Sur_ID AND
         C.Sub_ID = A.Sub_ID AND
         a.trans_stat != 'X' AND     
         a.Trans_DTTM >= '08/01/2001'AND
         a.Trans_DTTM < '03/09/2002 AND
         B.AMA3 = 'PHONE1'
         AND C.SUB_ID not in (100117)
    GROUP BY
         substr(b.ct_num, 0,3)
    ORDER BY
         Area_Codes

    I think that you need a "to_date" function eg
    change '08/01/2001' to to_date('08/01/2001','dd/mm/yyyy')

  • Help with OSX server mail setup

    Please if anyone can tell me what I am doing wrong, I would be very grateful.  I have a company with an externaly hosted website and an an internally hosted email (OSX server).  I have everything kind of working, but some things don't seem quite right.  I'll explain below:
    I have a purchased domain: mycompany.com hosted by godaddy.
    I am using Godaddy name servers: ns65.domaincontrol.com and ns66.domaincontrol.com
    The external godaddy DNS has an a name entry for my mail server: mail pointing to 123.123.123.123 (which is my companies external static IP address).
    There is also a null (@) a name record for my website hosting service (squarespace) pointing to 456.456.456.456
    There is a cName record www pointing to the squarespace domain "www.squarespace6.com"  (know this is unusual, but it is how squarespace asks this to be set up and does not work otherwise)
    There is an MX record with priority 10 and host name @ pointing to mail.mycompany.com
    I have a airport extreme router with the appropriate ports forwarded to the OSX server.
    The DNS servers on the router are pointed to the internal IP address of the OSX server
    I did not change the domain name on the router (mistake?) it is currently san.rr.com
    On the OSX server I have set up host name to be mycompany.comDNS is set up with primary zone being mycompany.com
    Primary Zone entries include
    nameserver = mycompany.com
    machine record host name is mycompany.com and the IP address is the internal IP address of the OSX server
    another machine record with host name "mail" and IP address is the internal IP address of the OSX server.
    Finally, there is a mail exchanger record with mail server "mail.mycompany.com" and priority 10
    There are 2 entries autocreated in the Reverse zone
    Mail is setup and running on the OSX server providing mail for "mail.mycompany.com"
    Users are setup with email address: [email protected] (note: without the mail subdomain - I think this is OK?)
    I am using self signed certificate.
    In my clients (windows Thunderbird, Mac Mail, iOS mail), the settings are for the incoming mail server host name to be "mail.mycompany.com" and the outgoing also to be "mail.mycompany.com"
    I woud have expected this to be imap.mycompany.com and smtp.mycompany.com respectively, but it doesn't work when I input these values and works with the former.  Have I set this up wrong??  imap seems to require SSL on port 993 and SMTP seems to require TLS on port 587.Outlook on PC gives me an error that after googling appears to be a problem with not recognizing a fuly qualified hostname form the SMTP client.  I see the fix, but wanted to know if that meant that my server didn't have a fully qualified host name and whether I should change that rather than just remove that restriction???
    The final problem is that my outgoing emails seem to be getting caught up in other people's spam filters too frequently.  What is the main reason for this?  Is it because I have set something up wrong and it brings up flags or is it simply because I am not a huge hosting company, or somethign else althogether?
    If you've gotten this far, big thanks!  If you can help me, even more thanks!

    Well, actually they are both getting caught up in spam filters and bounced back.  I actually realized that part of the problem is that I have a dynamic IP address, but it doesn't change.  Regardless, on the bounce back it looks like hotmail and other domains are rejecting email from my IP and recognize it as dynamic.  This was a test server that i would by physically taking to my business where there is a static business IP address (Cox).
    Sorry for the very long original message, but it seems that most people don't post enough information for the problem to be solved in their original posts and I was hoping to provide as much detail as possible.
    The other is the question of "are things set up right?"  It seems strange to me that both my outgoing and incoming servers are "mail.mycompany.com" and not imap.mycompany.com and smtp.mycompany.com and I wonder if this is going to cause me to have problems?
    Is it a problem that my email addresses are [email protected] and not [email protected]?
    Was I supposed to change the domain name on the router?
    Also is it going to be a problem that I am using a self signed certificate?

  • Help with "Testing Failed" Error message in iWeb09

    I bought the iLife 09 upgrade purely so I could publish to my own domain server. I have a MobileMe account and iWeb09 publishes fine there--no problems.
    My domain name is hosted on a Windows NT server. The admin is willing to help, but I was hoping someone could point me to documentation for this error:
    "Testing Failed.
    Unable to write to server. Verify your settings and try again."
    If I ftp to the site in a terminal window and do a put, I can write to the site. Obviously, I could at some point, because it servers the "dummy" page I put up, but I tested again in case my permissions had changed.
    I looked at the "Publishing to Windows-based FTP Server" but it does not seem to describe this error.
    BTW, I pay AppleCare for support, but when I tried to get support documentation from them, the tech said they "can't help" with this part of iWeb and hung up on me--the call lasted exactly 90 seconds.
    I am hoping someone out here will know where the errors are documented or will be able to help me figure it out.

    I waded through the posts for iWeb09 and came across a recommendation for Cyberduck (www.cyberduck.ch), so I tried a copy. Works like a champ. Unlike iWeb09, all I had to do was type in my server name, user name, and password to open the connection. Then I published my site to a folder in iWeb and uploaded the folder in Cyberduck. Cyberduck had no problem writing to the server.
    I still would love to know why iWeb can't write to my web server.

  • Synchronize with Testing Server?

    If I have not set up a remote server, only my local testing server, is there a way to Get the files from the testing server? I've done a lot of work that's currently only being saved on the testing server because it's through wordpress and I don't want to lose it. Dreamweaver (CS4) only referrs to "get newer files from remote site" which is confusing considering I don't have one set up. When I try synchronizing that way it's synching thousands of files and it's having trouble "getting" files such as my faqs.php. Could this be a permissions issue?

    dalenhughes wrote:
    If I have not set up a remote server, only my local testing server, is there a way to Get the files from the testing server? I've done a lot of work that's currently only being saved on the testing server because it's through wordpress and I don't want to lose it. Dreamweaver (CS4) only referrs to "get newer files from remote site" which is confusing considering I don't have one set up. When I try synchronizing that way it's synching thousands of files and it's having trouble "getting" files such as my faqs.php. Could this be a permissions issue?
    Yes it is possible because Wordpress has nothing to do with DW.  Having said so, all you need to do is this:
    1) Setup your remote server with Wordpress installed and all databases created;
    2) Backup your localhost databases using the methods given in this article:
    <http://tinyurl.com/ypvg83>
    3) Restore the backed up databases to your remote server using the method given in this article:
    <http://tinyurl.com/5r4nv9>
    Finally, may I suggest that you should stop using DW to update your Wordpress website because Wordpress works completely differently from DW.  DW uses simple flat text files that can be manipulated using any text editor.  Wordpress uses its own framework that posts all data to a MYSQL database.
    hth

  • Help with a server - crashed after update -SOLVED

    Hi everybody.
    at the school where I study,. its the student who´ll take cake of the network, and now we have a really big problem...
    After an pacman -Syu, (by an older student) one of the servers crashe. Its the only one that´s been updatet. Its run f.i. Apache , stunnel and up against an LDap server.
    The problem is that the only way you can get into it, is in single user mode. At normal boot at the login-menu - we could type in the username and passwd, but the machine is too long to validate the passwd so it times out. thats also when you trying to lock in as root. And we cant start Apache(Even though we selv compiled it, and not did a pacman on that one.)  But I´m not into arch that much yet, so hoefully someone can give me a hint about what went wrong during the updates..
    But the worst part about that one is, that everything goes by that one, so we cant get in på using ssh..  But after 7 hours trying and studying the net - we didn´t get anywhere. and we don´t have a clue what to do ...
    looking in the logfiles do not show anything unusual....
    in normalboot at the login screen, after ca. 40sek. the message comes :
    The server died unexpectet... thats it
    So please help with this one - if anyone have a clue what went wrong..

    Heya,
    have you tried using a knoppix-cd or another live-cd to have a look at the system or isn't that a possibility?
    You can also login by adding the following kernelparameter: init=/bin/sh
    However, I'm not sure how to mount the partitions then.
    I'm guessing that the message "server died unexpectedly" is coming from a certain server-process (not the machine). Do you know which process and have you had a look at the logfiles (if there are any) of that process?
    You can have a look at the output of the "dmesg"-command maybe if it is kernel-related (I think).
    You say it isn't overridden. Are you sure? You can tell pacman to not override packages or certain files, but you have to mention it in the "/etc/pacman.conf"-file.
    Hopes this helps you,
    greetings,
    Michel

  • Help with a server program

    Hello,
    I don't know much about threading, but I've got this server program (code follows). And where it does this... :
                        // Create a new thread for the connection
                        HandleAClient thread = new HandleAClient(connectToClient);
                        cn = clientNo;
                        // Start the new thread
                        thread.start();I need it to create another instance of the client program that accessing it with the same thread(I think, as i said I don't know much about threads). That way when a remote user accesses the client program, the server will automatically open another client program on the machine the server is running on. Then while their both using the same thread, they'll be able to speak back and forth without anyone else getting their text.
    Does this make sense? Can anyone help?
    Here is the server code, I don't have it perfected yet to send the text, but the clients will regester with the server.
    // MultiThreadServer.java: The server can communicate with
    // multiple clients concurrently using the multiple threads
    import java.io.*;
    import java.net.*;
    import java.util.*;
    // MultiThreadServer should be able to
    //    handle text from multiple users at once
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MultiThreadServer extends JFrame {
         // Text area for displaying contents
         private JTextArea jta = new JTextArea();
         public static void main(String[] args) {
              new MultiThreadServer();
         public int cn = 0;
         public MultiThreadServer() {
              // Place text area on the frame
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
              setTitle("MultiThreadServer");
              setSize(500, 300);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true); // It is necessary to show the frame here!
              try {
                   // Create a server socket
                   ServerSocket serverSocket = new ServerSocket(8000);
                   jta.append("MultiThreadServer started at " + new Date() + '\n');
                   // Number a client
                   int clientNo = 1;
                   while (true) {
                        // Listen for a new connection request
                        Socket connectToClient = serverSocket.accept();
                        // Display the client number
                        jta.append("Starting thread for client " + clientNo +
                             " at " + new Date() + '\n');
                        // Find the client's host name, and IP address
                        InetAddress clientInetAddress =
                             connectToClient.getInetAddress();
                        jta.append("Client " + clientNo + "'s host name is "
                             + clientInetAddress.getHostName() + "\n");
                        jta.append("Client " + clientNo + "'s IP Address is "
                             + clientInetAddress.getHostAddress() + "\n");
                        // Create a new thread for the connection
                        HandleAClient thread = new HandleAClient(connectToClient);
                        cn = clientNo;
                        // Start the new thread
                        thread.start();
                        // Increment clientNo
                        clientNo++;
              catch(IOException ex) {
                   System.err.println(ex);
         // Inner class
         // Define the thread class for handling new connection
         class HandleAClient extends Thread {
              private Socket connectToClient; // A connected socket
              // Construct a thread
              public HandleAClient(Socket socket) {
                   connectToClient = socket;
              // Run a thread
              public void run() {
                   try {
                        // Create data input and output streams
                        DataInputStream isFromClient = new DataInputStream(
                             connectToClient.getInputStream());
                        DataOutputStream osToClient = new DataOutputStream(
                             connectToClient.getOutputStream());
                        osToClient.writeDouble(cn);
                        // Continuously serve the client
                        while (true) {
                             // Receive radius from the client
                             double radius = isFromClient.readDouble();
                             // Compute area
                             double area = radius*radius*Math.PI;
                             // Send area back to the client
                             osToClient.writeDouble(area);
                             jta.append("radius received from client: " +
                                  radius + '\n');
                             jta.append("Area found: " + area + '\n');
                   catch(IOException e) {
                        System.err.println(e);
    }And here is the Client Program code, note that the sending of text does not yet work here either.
    // Client.java: The client sends the input to the server and receives
    //           result back from the server
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.*;
    public class Client extends JFrame implements ActionListener {
         // Text field for receiving radius
         private JTextField jtf = new JTextField(40);
         // Text area to display contents
         private JTextArea jta = new JTextArea();
         // IO streams
         DataOutputStream osToServer;
         DataInputStream isFromServer;
         public static void main(String[] args) {
              new Client();
         public Client() {
              // Ask the user for a name
              String s = JOptionPane.showInputDialog
                   (null, "Please Enter Your Name:", "ZedX Web Messenger", JOptionPane.QUESTION_MESSAGE);
              // Panel p to hold the label and text field
              JPanel p = new JPanel();
              p.setLayout(new BorderLayout());
              p.add(new JLabel("Enter Text"), BorderLayout.WEST);
              p.add(jtf, BorderLayout.CENTER);
              p.add(new JButton("Go"), BorderLayout.EAST);
              jtf.setHorizontalAlignment(JTextField.LEFT);
    //          jta.editable(false);
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(p, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
              jtf.addActionListener(this); // Register listener
              String user = "Client";
              setTitle(user);
              setSize(500,500);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true); // It is necessary to show the frame here!
              try {
                   // Create a socket to connect to the server
                   Socket connectToServer = new Socket("10.0.5.39", 8000);
                   // Create an input stream to receive data from the server
                   isFromServer = new DataInputStream(
                        connectToServer.getInputStream());
                   // Create an output stream to send data to the server
                   osToServer = new DataOutputStream(connectToServer.getOutputStream());
                   // Send client Name to server
                   // Get client number and name from server
                   double cn = isFromServer.readDouble();
                   user = user + " " + cn + ":  " + s;
                   setTitle(user);
              catch (IOException ex) {
                   jta.append(ex.toString() + '\n' + "Administrator must be offline, try again later.");
         public void actionPerformed(ActionEvent e) {
              String actionCommand = e.getActionCommand();
              if (e.getSource() instanceof JTextField) {
                   try {
                        // Get the text from the text field
                        String radius = jtf.getText();
                        // Send the text to the server
                        osToServer.println(radius);
                        osToServer.flush();
                        // Get text from the server
                        double area = isFromServer.readDouble();
                        // Display to the text area
                        jta.append("You Sent: " + radius + "\n");
                        jta.append("Server" + area + '\n');
                   catch (IOException ex) {
                        System.err.println(ex);
    }

    bump

  • Help with Client/Server communication

    Im working on a project for university, and one aspect of it is downloading files from a remote computer.
    The majority of my project so far has been using RMI only, for browsing the remote computer, deleting files, renaming files, creating new directories and searching for files. All of this is done via a GUI client, with a server running on the server machine.
    Ive now reached the part where I'll need to implement the downloading of files. I want the user to select a file from within the GUI and click download, and get it off the server.
    I dont need any help with event handlers or getting the contents of the remote computer or anything of that sort.
    Consider when I have the name of the file that I want to download from the client.
    Im having trouble understanding how exactly its going to work. Ive seen examples of file transfer programs where the user types in the name of the file in the command line which they want to download. But my implementation will differ.
    Every time the user clicks the button, I have to send to the server the name of a different file which will need to be downloaded.
    I imagine in the event handler for the Download button I'll be creating a new socket and Streams for the download of the file that the user wants. But how am I to send to the client a dynamic file name each time when the user tries to download a different file?
    I am a bit new at this, and Ive been searching on the forums for examples and Ive run through them, but I think my situation is a bit different.
    Also, will RMI play any part in this? Or will it purely be just Socket and Streams?
    I'll also develop an Upload button, but I imagine once I get the Download one going, the Upload one should be much harder.
    Any ideas and help would be appreciated.

    Hi
    I'm no RMI expert... and I did not understand your question very well....
    I think you should do this procedure:
    you should send a request for the file from the client to the server . then a new connection between the two machines should be made which will be used to send the file.
    by using UDP you will achive it quite nicely...
    //socket - is your TCP socket  you already use on the client...
    //out - socket's output stream
    byte [] b=new String("File HelloWorld.java").getBytes();
    // you should use a different way for using this rather than using strings...
    out.write(b);
    DatagramSocket DS=new DatagramSocket(port);
    DS.recieve(packet); //the data is written into the packet...on the server side you should...
    //socket - is your TCP socket  you already use on the server...
    //in - socket's input stream
    byte [] b=new byte[256];
    out.read(b);
    /*Here you check what file you need to send to the client*/
    DatagramSocket DS=new DatagramSocket(server_port);
    byte [] data=//you should read the file and translate it into bytes and build a packet with them
    DS.send(packet); //the data is in the packet...This way the server sends the required file to the client .....
    I hope it will help, otherwise try being clearier so I could help you...
    SIJP

  • Help with client server chat2

    Hi aggain,
    And here is my Client part of program
    Server part is in topic "help with client server1
    CLIENT.JAVA
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    import javax.swing.*;
    public class Client {
    private static int SBAP_PORT = 5555;
    private static String server = "localhost";
    public static Socket socket = null;
    //main starts
    public static void main(String[] args) {
    try { //handle broken connection
    //set up connection to server, input, output streams
    try {
    socket = new Socket(server, SBAP_PORT);
    // handle wrong host/port errors
    catch (UnknownHostException e) {
    System.out.println("Unknown IP address for server.");
    System.exit(0);
    } //end catch UnknownHost
    catch (IOException ex) {
    System.out.println("No server found at specified port.");
    System.exit(0);
    } //end catch IOException
    catch (Exception exc) {
    System.out.println("Error :" + exc);
    System.exit(0);
    } //end cath Exception exc
    InputStream input = socket.getInputStream();
    OutputStream output = socket.getOutputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(input));
    PrintWriter writer = new PrintWriter(output);
    while (true) {
    String client_in = JOptionPane.showInputDialog(null, "Client Request");
    System.out.println("Sending: " + client_in);
    writer.print(client_in);
    writer.flush();
    //read server entry and dispay
    String response = reader.readLine();
    if (response == null || response.equals("QUIT"))
    System.out.println("No data received");
    else
    System.out.println("Receiving: " + response);
    } //end try
    catch (IOException e) {
    System.out.println("Connection with server broken:" + e);
    System.exit(0);
    } //end catch IOException
    catch (Exception exp) {
    System.out.println("Error :" + exp);
    System.exit(0);
    } //end catch exp
    }//end main()
    }//end class Client

    http://forum.java.sun.com/thread.jspa?threadID=574466&messageID=2861516#2861516

  • Need help with Thin JDBC connecting Oracle to SQL server.

    I am fairly new to JAVA. We have ORACLE 8.1.7 running on Solaris 8. I have a need to
    periodically extract data from ORACLE DB and transfer it to SQL Server. I am limited to
    moving data from the ORACLE/UNIX environment to SQL Server side.
    From what I have read, Server-side Thin driver should work.
    1) Are there any issues in trying to achieve this with ORACLE running on the UNIX platform?
    2) Will the Server-side Thin driver talk to both the DBs ?
    3) Is it possible to provide some sample code ?
    Thanks in advance,
    Solomon

    Quattro,
    I had complete success in reading from Oracle and writing to SQL Server. First of all let me thank you for all your help. I do have one last request. Its more on optimization than any thing else.
    I was trying to optimize my code by grouping both the connections in one place and to keep my reads and inserts together so that I don't commit at the end of each insert etc. I don't seem to have the scope rules under control yet. Could you suggest how to improve this:
    import java.sql.*;
    public class Test_Combined2 {
    public static void main(String args[]) throws SQLException {
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You must put a database name after the @ sign in the connection URL.
    // You can use either the fully specified SQL*net syntax or a short cut
    // syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
    Connection con2 = DriverManager.getConnection ("jdbc:oracle:thin:@Test:1521:PSDEVElOP",
    "SOLOMON","SOL1");
    // Create a Statement
    Statement stmt2 = con2.createStatement ();
    String url = "jdbc:microsoft:sqlserver://INTRADEV:1433;DatabaseName=Measure";
    Connection con;
    String query = "select dataYear, dataMonth, yieldRate from tblYield " ;
    Statement stmt;
    try {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.print(e.getMessage());
    // Select the ENAME column from the EMP table
    ResultSet rset = stmt2.executeQuery ("select year_start, monthofyear, percent_comp " +
    " from ps_usm_ytd_yield ");
    // Iterate through the result and print the employee names
    while (rset.next ()) {
    System.out.println (rset.getFloat (3));
    int ps_dataYear = rset.getInt(1);
    int ps_dataMonth = rset.getInt(2);
    float ps_yieldRate = rset.getFloat(3);
    try{
    con = DriverManager.getConnection (url, "tmpuser","tmppush");
    stmt = con.createStatement();
    PreparedStatement insertTblYield;
    String insertString = "insert into tblYield " +
    " values(?, ?, ?)";
    //con.setAutoCommit(false);
    insertTblYield = con.prepareStatement(insertString);
    insertTblYield.setInt(1, ps_dataYear);
    insertTblYield.setInt(2, ps_dataMonth);
    insertTblYield.setFloat(3, ps_yieldRate);
    insertTblYield.executeUpdate();
    con.commit();
    //con.setAutoCommit(false);
    /*ResultSet rs = stmt.executeQuery(query);
    System.out.println("dataYear, dataMonth, yieldRate");
    while (rs.next()) {
    int dataYear = rs.getInt(1);
    int dataMonth = rs.getInt(2);
    float yieldRate = rs.getFloat(3);
    System.out.println(" " + dataYear + ", " + dataMonth + ", " + yieldRate);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    } //while
    stmt2.close();
    con2.close();

  • Help with copying SP List data to SQL Server

    I need to read some data from a SP list and copy it to a table in SQL Server.
    Visual Studio  BIDS 2013. SharePoint 2010. Planning to migrate to 2013 this year. I tried to use the
    SP Data source/destination adapter with SSIS, but learned that I can't with Visual Studio 2013. I'm really looking for any way to read data from a SP list and import it into a SQL database (SQL 2014). Haven't found anything online that has worked for me the
    way they say it should (such as OData connection in SSIS). Maybe it's version issues.
    Does anyone have a solid step-by step to do this? I am not a C# developer...

    Hi,
    According to your description, my understanding is that you want to read SharePoint list data and copy it to SQL Server table.
    Hatim's option is a way to achieve it manually.
    If you want to do it automatically, I suggest you can create a console application to read SharePoint list using CAML Query and Client Object Model, Then use SqlConnection object to connect database, then you can insert record using SqlCommand object.
    Here are some detailed code demos for your reference:
    http://www.codeproject.com/Articles/399156/SharePoint-Client-Object-Model-Introduction
    https://msdn.microsoft.com/en-us/library/ms233812.aspx
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Help with Mail Server Setup/DynDNS

    I don't have a static IP so I setup an account/registered a domain with DynDNS. The test site is hosted fine via Leopard Server. However, I am trying to setup a mail server to no avail. Configured Mail Server through the assistant and ended up with these settings: domain name - performa460.com hostname - mail.performa460.com POP, IMAP, and SMTP all enabled. Setup a user in workgroup manager and enabled mail. Still Cannot access mail through Mail.app and no users are listed on the Maintenance/Accounts pane. Obviously I'm new to this and need to be pointed in the right direction. Any help is apreciated; thanks!

    DynDNS's base service won't work for you if you want to use your own full domain name unless you use their Custom DNS paid service. I'm assuming this is something you've already done. If so, you need to configure both the host name and the MX records for your domain to point to the right places. You'll need to set up DynDNS name servers through whatever domain registrar you use and then configure the CustomDNS service through DynDNS's web interface. Once you can successfully connect using a web browser, then look into your mail settings.
    However, depending on what provider you're using for your broadband, you may have the mail ports blocked by your ISP and/or in your cablemodem/router. Be sure to open 25 and 587 and any other ports you intend to use.
    Finally, you may find that even if you've configured everything correctly, other providers will refuse your mail as spam (google, yahoo, etc) because your IP address is on a "residential subnet" or because your forward and reverse DNS don't match. That means you'll need a mail reflector to bounce your mail off of with a proper IP. DynDNS has inbound and outbound mailhop services that you can use for an additional fee.
    Bottom line is, because spambots inhabit a lot of dynamic IP blocks, you have to jump through a ton of hoops to get it working reliably.

  • Help with testing a live jee application...

    I cant figure this out..
    I am using netbeans and my JEE application seems to work fine in the netbeans IDE. I then move to the glassfish v2 server and deploy the .ear which contains
    a single war with sevlet and jsp's. Testing a live version of war works 100% as intended but issues occur when running my app-client and the following is thrown...
    yucca@yucca-laptop:~/Desktop$ java -jar CCDEnterprise-app-client.jar
    Sep 5, 2009 2:46:19 PM ccd.client.gui.ApplicationStarter$1 uncaughtException
    SEVERE: ccd/domain/utilities/PhoneType
    java.lang.NoClassDefFoundError: ccd/domain/utilities/PhoneType
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
         at java.lang.Class.getDeclaredMethod(Class.java:1935)
         at java.awt.Component.isCoalesceEventsOverriden(Component.java:5948)
         at java.awt.Component.access$500(Component.java:169)
         at java.awt.Component$3.run(Component.java:5902)
         at java.awt.Component$3.run(Component.java:5900)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Component.checkCoalescing(Component.java:5899)
         at java.awt.Component.<init>(Component.java:5868)
         at java.awt.Container.<init>(Container.java:251)
         at java.awt.Window.<init>(Window.java:430)
         at java.awt.Frame.<init>(Frame.java:403)
         at javax.swing.JFrame.<init>(JFrame.java:207)
         at ccd.client.gui.MainWindow.<init>(MainWindow.java:121)
         at ccd.client.gui.ApplicationStarter.<init>(ApplicationStarter.java:92)
         at ccd.client.gui.ApplicationStarter.<init>(ApplicationStarter.java:53)
         at ccd.client.gui.ApplicationStarter.main(ApplicationStarter.java:42)
    Caused by: java.lang.ClassNotFoundException: ccd.domain.utilities.PhoneType
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 18 moreMy classpaths, paths are all set as follows:
    JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.14"
    CLASSPATH="/home/yucca/SUNWappserver/lib/j2ee.jar"
    JDK_HOME="/usr/lib/jvm/java-6-sun-1.6.0.14"
    IDEA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.14"I keep getting no class def found and have tried various workarounds but too much hacking away has lead me to believe that something needs attention...
    Any help or suggestions would be appreciated.

    The %CLASSPATH% environment variable is totally ignored by anything else than the java/javac without the -cp, -classpath and -jar arguments.
    In case of a webapplication, you need to include third party libraries in WEB-INF/lib.

Maybe you are looking for

  • Windows "No Disk in Drive" error

    I'm having some issues with the Enable Disk Use feature and Windows. I have a 5th Gen 30gb iPod. My preferences are set to 1) Open iTunes when this iPod is connected; and 2) Only sync checked items. Enable Disk Use is not checked. Here's what's happe

  • Multiple 'logical joins' between a fact table and one dimension table

    It appears that one cannot create multiple 'logical joins' between a fact table and one dimension table in OBIEE using the Oracle BI Administration Tool. For example, considering a Business Model with a dimension table TIMES and a fact table FACT con

  • Date Picker - Default Date

    Is there a way to set a default date in the date picker, but not show this default date in the date item? I want the date item to be blank, but when the user clicks on the date picker it will default to a date that is entered in another part of the a

  • I need help with validating signatures.

    I have Adobe Acrobat X and Reader 9 and need help with how to validate signatures. I have a document that I am emailing to all employees that require the signature; but, when the form is emailed back, it states that the signatures requires validating

  • Upgrade Oracle Database Express Edition to (10.2.0.4 OR 11g) Release

    hello I plan to install the SOA, but need more than the database version 10.2.0.4. How to upgrade Oracle Database Express Edition to (10.2.0.4 OR 11g) Release?Thank you!!