?
Solved

How to create permanent connect using Ms SQL Server Database

Posted on 2001-07-05
3
Medium Priority
?
247 Views
Last Modified: 2010-04-16
I writing a java application that can run in LAN And Internet using Java 2 and JDBC. The Database is Ms SQL Server 7.

For the LAN I can using DataSource to create a connetion.
example:

strDriverName = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName(strDriverName);
gCon = DriverManager.getConnection(ODBCPub, "sa", "sa");

But, how can I create connection for the internet application or using back the same method like above.

Pls guide me or provide me some sample coding.


 
0
Comment
Question by:dennistk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:hotlyq
ID: 6262189
Please give more detail:
Are you use SQLServer DB through Internet ,or in your Lan and present the data to Internet?
0
 
LVL 92

Accepted Solution

by:
objects earned 80 total points
ID: 6263712
You can access the database in exactly the same way from the Internet as from the intranet.
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9017440
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[points to objects]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question