How to integrate from MS SQL SERVER 2005 and Flatfile to Oracle 10g.

Hi
I am new to ODI. I am trying to load sample data from MS SQL Server 2005 and Flatfile to Oracle 10g.
1. I have created three models.
1-1. SQL2005 (SRC_CUSTOMER table)
1-2. Flatfile (SRC_AGE_GROUP.txt & SRC_SALES_PERSON.txt)
1-3. Oracle 10g (TRG_CUSTOMER table)
You may know I got those environments from the ODI DEMO environment.
2. I could able to reverse the tables also.
3. I have created an interface which contains source table (from MSSQL 2005), Flatfile and target table from ORACLE model.
4. I have imported the knowledge modules. But I am confusing in selecting the knowledge modules to source and target tables.
I've selected LKM File to SQL for flatfile model.
I've also selected LKM SQL to SQL for MSSQL 2005 model and IKM Oracle Incremental Update for the target table (ORACLE).
I've also implemented the interface that I created. It worked without errors. But there is no data in target table which is TRG_CUSTOMER.
I really would like to know what happened and what the problems are.
You can email me [email protected]
Thanks in advance
Jason Lee

what did give for SRC_AGE_GROUP SRC_CUSTOMER join condition
if it is
(SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MAX
give it as
(SRC_CUSTOMER.AGE>SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE<SRC_AGE_GROUP.AGE_MAX

Similar Messages

  • How to deploy MS Sql Server 2005 and 2008 jdbc driver

    Hi SAP Guru's
    Can somebody tell me how to deploy the jdbc driver of MS SQL Server 2005 and 2008 on SDM.
    According to the SAP instruction we should have 3 files(mssqlserver.jar,msbase.jar,msutil.jar) but in 2005 driver file we only have 1 file i.e sqljdbc.jar so how do i deploy it .
    Secondly i cannot deploy it on visual administrator as well and when i am doing the File to jdbc scenarion i am getting this error
    " Accessing database connection "jdbc.sqlserver://localhost:1433;DatabaseName=Employee failed DriverManagerException. Cannot establish connection to URL jdbc.sqlserver://localhost:1433;DatabaseName=Employee  SAPClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver".
    can somebody please upload the screen shots on mediafire or any other site so that i will solve my problem.

    Hello,
    *OS: First of all: *
    3 files (msbase.jar,mssqlserver.jar and msutility.jar )should be zipped to aii_af_jmsproviderlib.zip file only for UNIX OS.
    For Windows OS only sqljdbc.jar file which in every version of JDBC driver should be zipped to aii_af_jmsproviderlib.zip.
    You can deploy JDBC driver through SDM tool which mention in guide below:
    New version of JDBC driver installation guiade:
    External Driver Configuration for Process Integration 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
    Drivertool from this guide you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
    Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 HYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f"
    How to Install and Configure External Drivers for JDBC & JMS
    AdaptersHYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e00262f5-934d-2a10-b99c-9bc63c2a7768"
    Download attached system files (ZIP 16KB)
    Any questions - let me know
    BR,
    Dzmitry

  • How to attach database in sql server 2005 restricted mode

    hi i have a database i want once i have attach database in sql server 2005, anyone cannot do detach, script and delete my database except myself. I mean i want to secure my database to avoid unauthorized persons access
    how it is possible in sql server 2005 express management studio

    There are restrictions for normal Logins but a administrator in SQL server can always detach,script and delete your database.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • DB Migration from MS SQL Server 2005 to Oracle 9i

    Hi Guys
    I want to migrate the data from Microsoft SQL Server 2005 to Oracle 9i.
    Could ou please suggest me the how to proceed.
    I can simply extract the das in CSV format as their are Foreign key , Primary key concept is there. So what will be the best way to proceed ....
    regards
    Macky

    Macky,
    In the coming months we will add support for SQL Server 2005 to the Oracle Migration Workbench. See our statement of direction on OTN for more details.
    If you have extracted the data into a csv file format, you could construct a SQL Loader control file to load this data, assuming you have already created the table on the Oracle side.
    Donal

  • Copy table from Ms SQL Server 2005 to Oracle with SSIS package

    Hi all
    I am witting an SSIS package to copy 2 tables from Ms SQL Server 2005 to an Oracle 10g database.
    Problem: I can only see the Microsoft OLDB Provider for Oracle and it is too slow. How can I use the Oracle ODBC in aMs SQL Server 2005 or building a .net SSIS package.
    thanks

    Yes I am able to see the driver on the Data Source (ODBC), I also created a connection to the Oracle database. The problem in Ms SQL Server 2005 is that the ODBC connection I created is not listed. None of the lo local connections are listed, only Microsoft OLEDB connections

  • Creating multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005

    How to create multiple graphs dashboard in Crystal XI using a single View from MS SQL Server 2005?
    I need to use Crystal XI and create a dashboard which shows some sales data and stuff, multiple graphs on a single screen.
    My tech team says they can display one graph per page but not 4 graphs on the same page as it uses a common view from SQL Server 2005.
    How to manage this? Can we call in multiple views / graphs in the same page? Say 4 graphs on the same page?
    We use ASP or .NET for calling crystal reports into the App.
    Regards,
    Akshay.
    INDIA

    Have you tried creating multiple sections, putting each graph in a separate section and then underlaying the sections so they appear next to each other?

  • Errors while migrating from Microsoft SQL Server 2005 to Oracle 9i

    Hi All,
    We are trying to completely move our application from Microsoft SQL Server 2005 Database to Oracle 9i. I am doing it using the latest version of Oracle SQL Developer (1.2 build 29.98).
    When I right click my MSSQL server db and click "Capture Microsoft SQL server", it just shows a dialog with "Close" enabled.
    Kindly help.
    The migration Log has the following messages:
    oracle.dbtools.metadata.persistence.PersistenceException: Unsupported feature
    oracle.dbtools.metadata.persistence.PersistenceException: Unsupported feature
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
    oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    Error ocurred during capture: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Protocol violation
    oracle.dbtools.metadata.persistence.PersistenceException: OALL8 is in an inconsistent state
    oracle.dbtools.metadata.persistence.PersistenceException: Bigger type length than Maximum
    I cant figure out what do these messages mean.
    Regards,
    Sandeep

    Pasting the errors on logging page, if this is of any help:
    SEVERE     150     0     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     151     1485     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:Protocol violation
    SEVERE     152     15     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     153     10954     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:Protocol violation
    SEVERE     154     15     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     155     2688     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:Protocol violation
    SEVERE     156     1140     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     158     62172     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     160     3672     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:Protocol violation
    SEVERE     161     63     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:OALL8 is in an inconsistent state
    SEVERE     162     0     oracle.dbtools.raptor.utils.NLSUtils     Error loading nls:Protocol violation

  • Any problems if run SQL Server 2005 and Essbase Server on 1 machine?

    <p>Hi, I would like to know if there's any problems in terms ofperformance when running SQL Server 2005 and Essbase Server on 1machine?</p><p> </p><p>Currently, my users are using Excel File (Lock & Send) toupload data to the Essbase Server and it took about 30 mins perexcel file upload. Application Manager is installed on client's andserver PC for adminstration.</p><p> </p><p>Now, I need to implement Datawarehouse and wish to installSQL Server 2005 on the current machine my Essbase Server isrunning. I will need to do simple SQL statements on the SQL Server2005 such as Update, Select, Insert etc.</p><p> </p><p>When comes to performance issues, will my current Essbase Serverbe affected? What if 2 users are accessing the Essbase Server andSQL Server at the same time? Will any data be lost in the midst ofextracting data?</p><p> </p><p>I hope someone can advise. Appreciate that. Thank you.</p>

    <blockquote>quote:<br><hr><i>Originally posted by: <b>roy_choy</b></i><BR><BR>Currently, my users are using Excel File (Lock & Send) to<BR>upload data to the Essbase Server and it took about 30 mins per<BR>excel file upload. <BR>I hope someone can advise. Appreciate that. Thank you.</p><hr></blockquote><BR>My test server is running both Essbase and SQLServer, but I think that you have a bigger problem.<BR><BR>If a lock and send is taking 30 minutes, you are using the wrong technology to load Essbase. You should really consider doing the load using a data load rule. If that isn't the problem, it may be that you are having a real performance problem. If you are moving enough data to require a half hour load, it should be probably be loaded from a text file, or even a spreadsheet, using a data load rule. Text file loads are a bit better than excel, especially when there are formatting issues. <BR><BR>Lock and sends are fine for changing parameters and doing adjustments, but heavy duty data loads really work a lot better with load rules.

  • SQL Server 2005 and ColdFusion 7

    Hi all,
    I am using SQL Server 2005 and ColdFusion 7 (standalone) on
    XP 64 Bit. I was using the exact setup a couple of weeks ago, but
    had to reinstall my O/S due to hardware problems so am back to the
    beginning. I remember having a nightmare setting datasources up in
    the past, but did manage to find a solution.
    I have tried the following:
    SQL has TCP/IP Enabled
    SQL is set to Mixed Authentication
    SQL has a login set to the same as my Windows Username and
    password
    My database has a user (dbo) by the same name as the login
    set in SQL
    When I add a datasource in the administrator I enter the
    windows username and password (I have tried without either as
    well), the server name as localhost and the port as the default
    1433.
    I always get the following error:
    Connection verification failed for data source: DATABASENAME
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    Can someone offer any advice? This is driving me proper nuts.
    TIA,
    Paul

    when i did it, i had to update my jdbc driver
    http://msdn.microsoft.com/data/ref/jdbc/

  • Migrating from MS SQL Server 2005 database to Oracle 10g

    Hello,
    I wanted the full procedure or steps to Migrate the MS SQL Server 2005 database to Oracle 10g. Is there a known procedure to do this or is there a tool which is used?
    I have not done migration of database from MS SQL Server to Oracle. Any help is appreciated. Thanks a lot for the time.
    Regards,
    RPS

    Wrong forum, go to the database forum!
    cu
    Andreas

  • Selecting from a SQL Server 2005 with long column names ( 30 chars)

    Hi,
    I was able to set up a db link from Oracle 11.2.0.1 to SQL Server 2005 using DG4ODBC.
    My problem is that some column names in the Sql Server are longer than 30 chars and trying to select them gives me the ORA-00972: identifier is too long error.
    If I omit these columns the select succeeds.
    I know I can create a view in the sql server and query it instead of the original table, but I was wondering if there's a way to overcome it with sql.
    My select looks like this:
    select "good_column_name" from sometable@sqlserver_dblink -- this works
    select "good_column_name","very_long_column_name>30 chars" from sometable@sqlserver_dblink -- ORA-00972Thanks

    I tried creating a view with shorter column names but selecting from the view still returns an error.
    create view v_Boards as (select [9650_BoardId] as BoardId, [9651_BoardType] as BoardType, [9652_HardwareVendor] as
    HardwareVendor, [9653_BoardVersion] as BoardVersion, [9654_BoardName] as BoardName, [9655_BoardDescription] as BoardDescription,
    [9656_SlotNumber] as SlotNumber, [9670_SegmentId] as SegmentId, [MasterID] as MasterID, [9657_BoardHostName] as BoardHostName,
    [9658_BoardManagementUsername] as BoardManagementUsername, [9659_BoardManagementPassword] as BoardManagementPassword,
    [9660_BoardManagementVirtualAddress] as BoardManagementVirtualAddress, [9661_BoardManagementTelnetLoginPrompt] as
    MANAGEMENTTELNETLOGINPROMPT, [9662_BoardManagementTelnetPasswordPrompt] as MANAGEMENTTELNETPASSPROMPT,
    [9663_BoardManagementTelnetCommandPrompt] as MANAGEMENTTELNETCOMMANDPROMPT FROM Boards)performing a select * from this view in sqlserver works and show the short column names
    this is the error i'm getting for performing a select * from v_boards@sqlserver_dblink
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][SQL Native Client][SQL Server]Invalid column name 'BoardManagementTelnetLoginProm'. {42S22,NativeErr = 207}[Microsoft]
    [SQL Native Client][SQL Server]Invalid column name 'BoardManagementTelnetPasswordP'. {42S22,NativeErr = 207}[Microsoft][SQL Native
    Client][SQL Server]Invalid column name 'BoardManagementTelnetCommandPr'. {42S22,NativeErr = 207}[Microsoft][SQL Native Client][SQL
    Server]Statement(s) could not be prepared. {42000,NativeErr = 8180}
    ORA-02063: preceding 2 lines from sqlserver_dblinkI also tried replacing the * with specific column names but it fails on the columns that have a long name (it doesn't recognize the short names from the view)
    what am I doing wrong?
    Edited by: Pyrocks on Dec 22, 2010 3:58 PM

  • Transferring 3 SQL databases from both SQL Express 2005 and Standard to a new physical server

    I am trying to figure out the best method for transferring SQL 2005 databases from 2 different physical servers to a new server running windows server 2008 64bit.
    I own a fully registered copy of Microsoft SQL 2005 32bit Standard Edition. However all of my SQL databases together are only 4GB in size thereby making 2008 SQL Express an option.
    Here is the breakdown of the servers:
    1) (Old Server1) Windows 2003 Server 32bit - SQL Express 2005 32bit
    2) (Old Server2) Windows 2003 Server 32bit - SQL Server 2005 32bit Standard
    3) (New Server) Windows 2008 Server 64bit - (Not sure which version to install)
    **The objective is to migrate 2 SQL databases from Old Server1 and 1 SQL database from Old Server 2 to the New Server. What version should I install on the new server??? Do I go with 2008 express or install the 2005 Standard Edition?
    Pending your response to which version to install, what are the correct steps to migrate (which I have never done before) the databases from both of these servers to the new server?
    I have researched this online and I think this particular situation is unique in that I am transferring from both SQL Express and Standard from 2 different physical servers to a 2008 server that is 64bit. I cannot find anything online that I feel confident
    in trying. Please help me, as I have this migration deadline of this weekend. Any help is appreciated. Thanks.

    Hello,
    You may choose between using backup/restore or using detach/attach methods to migrate the databases.
    https://msdn.microsoft.com/en-us/library/ms187858(v=sql.90).aspx
    You can transfer logins using the following article.
    http://support.microsoft.com/en-us/kb/918992
    To decide if you migrate to Express Edition or to another edition, please review the features supported by each edition. For instance, Express Edition does not support jobs (SQL Server Agent is not available).
    https://msdn.microsoft.com/en-us/library/cc645993(v=sql.100).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Sql server 2005 and jsp connectivity

    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?
    P.S. i have installed the jdbc driver and the database "webpage" has been created!

    anand_chhetri wrote:
    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..Tomcat is up to version 6; why are you using such an old one?
    Dreamweaver is irrelevant.
    Which JDK?
    >
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...OK.
    You don't need to import the Microsoft SQL server JDBC.
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>Where do you think these come from? This page must be your "new2.jsp"
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Since you didn't get a ClassNotFoundException here, I'll assume that you got the JAR into the CLASSPATH.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Your app logs in as admin? With no password? Very bad.
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.Bad connection URL. Can you write a simple class that connects without Tomcat, one that you can run on the command line?
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?No.
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.No - Tomcat listens on 8080, SQL Server listens on 1433. You need both.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?Look at the driver docs to see how to add a password.
    P.S. i have installed the jdbc driver and the database "webpage" has been created!What does "installed" mean? The JARs should be in Tomcat's common/lib directory.
    %

  • MS sql server  2005 and encryption

    I've got a Microsoft SQL Server 2005 database server set up
    with encryption forced on. I managed to get the MS 1.1 jdbc driver
    from Microsoft, I then tried to configure it into Coldfusion v
    7.0.2 as an Other data source. The problem I've got now is that I
    get the error
    "com.microsoft.sqlserver.jdbc.SQLServerException: The SQL
    Server login requires an SSL connection."
    I previously tried to use the SQL Server data source type but
    that didn't work either.
    So how do I get past this hurdle?

    There is currently no SSL support for JDBC connections.
    Microsoft addresses it regarding SQL Server 2005 on this mdsn
    forum thread:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1071465&SiteID=1

  • MS SQL Server 2005 and JDBC

    Hi friends
    I am new in Java and for the first time I want to write a program to connect to my database on MS SQL Server 2005 to retreive data. I read the tutorial, but I couldn't find there any information about the proper driver name to connect to a SQL Server database ;(
    Could you please let me know what I should write as DriverManager.getConnection(????) to make the connection?
    Thank you in advance.

    I really thank you for your patience and accompanying me. At last I found what the problem was! It was about MS SQL Server 2005 TCP/IP connection!!!! It's disable by default, so it didn't let my java program to login. I enabled it and restart all the SQL services again. But when I executed the program another error appeared: This driver doesn't let you to have integrated secuirty .So I had to bring the 'sa' user id and its password to login to MS SQL Server. And this time it worked!! You are right, I had to cheange the connection URL to bring the port in it.
    I am writing a system for a small company in java, and I installed the MS SQL Server 2005 myself and I should manage all the problems myself! So I didn't have anyone to help me but you dear friends.
    I really appreciate all your valuable advice.
    Now the final code is:
    import java.sql.*;
    public class DBtest {
         public static void main(String[] args) {
              // Create a variable for the connection string.
              //String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=Northwind;integratedSecurity=true;";
              String connectionUrl = "jdbc:sqlserver://localhost;databaseName=Northwind;integratedSecurity=true;";
              // Declare the JDBC objects.
              Connection con = null;
              Statement stmt = null;
              ResultSet rs = null;
                 try {
                      // Establish the connection.
                          Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                          con = DriverManager.getConnection(connectionUrl);
                          // Create and execute an SQL statement that returns some data.
                          String SQL = "SELECT city,country FROM customers";
                          stmt = con.createStatement();
                          rs = stmt.executeQuery(SQL);
                          // Iterate through the data in the result set and display it.
                          while (rs.next()) {
                               System.out.println(rs.getString(0) + " " + rs.getString(1));
              // Handle any errors that may have occurred.
              catch (Exception e) {
                   e.printStackTrace();
              finally {
                   if (rs != null) try { rs.close(); } catch(Exception e) {}
                       if (stmt != null) try { stmt.close(); } catch(Exception e) {}
                       if (con != null) try { con.close(); } catch(Exception e) {}
    }

Maybe you are looking for

  • Camera connector and iPod classic

    How can Apple not have a update in place for using cameraconnector with the iPod classic after all this time? I bought this setup for my travel photos through asia and now i realise it doesn't work. How can apple make their newest ipod not compatible

  • Exs sampler out of memory

    I was setting up a very large orchestral template, and when I got to instrument 66, I started getting out of memory messages, followed by unexpected quits. I just added two more gigs of memory and I'm still getting the same message when I try to add

  • ODBC Connection to Postgres: Yet another encoding problem

    Hello, all! I have a dblink to Postgres server via ODBC. It works, but with national characters encoding issue. O/S: Oracle Linux 6.2 x86-64 Oracle - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production Oracle V$NLS_PARAMETERS

  • Email specific subform

    I have an agenda form that has a repeating subform for capturing Action Items. What I would like to do is to email just the action items after the meeting has ended without having to cut and paste bits and pieces. Is there a way to use the email butt

  • CS3 (Tiger)--imported text not reading tags--urgent, please

    CS3 is not reading the tags when I import text into my catalog template. The text file is highly formatted with lots of paragraph and character styles. This was never a problem in CS2, where the text came in properly formatted and flowed from box to