Java
  Home arrow Java arrow Page 3 - Connecting to SQL 2005 Server from the Jav...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Connecting to SQL 2005 Server from the Java Studio Creator
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2006-08-29

    Table of Contents:
  • Connecting to SQL 2005 Server from the Java Studio Creator
  • Reviewing the Java Studio Creator IDE
  • Connecting to SQL 2005 Server
  • Fixing the connectivity problem
  • Modifying a configured data source

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Connecting to SQL 2005 Server from the Java Studio Creator - Connecting to SQL 2005 Server


    (Page 3 of 5 )

    The Sun Java Studio Creator is running on the same computer which also has SQL 2005 Server installed. In the servers panel at the top left, right click on the Data Sources node a to reveal the Add Data Source... hyperlink as shown.

    Click on the hyperlink to reveal this next window, Add Data Source, where you can completely configure the data source with all the needed information. It comes up with a default DB2 connection. The next picture shows the default view of the Add Data Source Window.

    Click on the drop-down to reveal the several different sources to which you can connect to obtain your data. The bundled database is the PointBase Java database which Sun Micro Systems has continued from the previous version. Select SQLServer in the drop-down. You need to give a name to your data source; here it is named Hodentek_Java. The name of the data source is arbitrary.

    With this information you cannot browse to get a database; you must know the name of the database. You can look it up in your SQL 2005 Server Management Studio. TestWiz happens to be the name of a database on the localhost (HodentekMysorian) as shown in the picture with just one user table, Employees. For database type in "TestWiz."

    Next you need to enter the authentication information, which is sa and the password (SQL Server authentication is configured for this server). Next click on the Validation Table related Select button alongside the textbox; if the information is correct, you should see a table or tables for validation. In this case it came up with this error message as shown.

    Click OK to close this window.

    More Java Articles
    More By Jayaram Krishnaswamy


       · It is an ideal medium to develop Rich Client Applications. The database and web...
     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek