473,378 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Connecting to database

Jim
Hi Folks,

We have a DB2 database on a WAN at work. I want to access the database from
some Visual Basic for Applications code that I have written at work.

The database itself is not directly accessable and as it was described to me
is "buffered"
from the users by a second computer which passes on requests for data.

I assume that this intermediary computer would be whats called a SQL server?

If my assumption above is correct is it possible to get a query to the
server which
it will accept and reply to?

Anyone?

Cheers

-Al
Nov 12 '05 #1
5 2265
"Jim" <bi******@hotmail.com> wrote in message
news:bt**********@lust.ihug.co.nz...
Hi Folks,

We have a DB2 database on a WAN at work. I want to access the database from some Visual Basic for Applications code that I have written at work.

The database itself is not directly accessable and as it was described to me is "buffered"
from the users by a second computer which passes on requests for data.

I assume that this intermediary computer would be whats called a SQL server?
If my assumption above is correct is it possible to get a query to the
server which
it will accept and reply to?

Anyone?

Cheers

-Al

More than likely it was a gateway machine in between the DB2 server and
clients. Unless there are some networking issues involved in the WAN, you
should be able to submit requests directly to the DB2 server if you are
given proper authorization. The client software required to perform this
depends on what platform the DB2 server is running on.
Nov 12 '05 #2
Hi Jim;
what you're describing sounds like a DB2 Connect gateway server. From
an application perspective, it should look no different than any other
DB2 server, but it does take client requests and pass them on to other
(usually DB2 OS/390 or DB2 AS400/iSeries) DB2 servers.

Once you are given the normal DB2 client configuration for your shop
and a valid connection string to this DB2 Connect server, you should
be all set.

Pete H
ph******@MoshierIsland--NOSPAM--Group.com

"Jim" <bi******@hotmail.com> wrote in message news:<bt**********@lust.ihug.co.nz>...
Hi Folks,

We have a DB2 database on a WAN at work. I want to access the database from
some Visual Basic for Applications code that I have written at work.

The database itself is not directly accessable and as it was described to me
is "buffered"
from the users by a second computer which passes on requests for data.

I assume that this intermediary computer would be whats called a SQL server?

If my assumption above is correct is it possible to get a query to the
server which
it will accept and reply to?

Anyone?

Cheers

-Al

Nov 12 '05 #3
Jim
Thanks for the replies guys.

Currently we can query the database via a webpage interface.

I have looked at the code behind the webpage and it consists of some
javascript.

I am guessing but it looks like the webpage sends the request to the
webserver
which I assume passes it to the SQL server.

Is it possible that the computer i work on cant talk to the sql server
directly?

I need to know where to go from here....

Cheers

-Al

"Pete H" <ph******@intellicare.com> wrote in message
news:d2**************************@posting.google.c om...
Hi Jim;
what you're describing sounds like a DB2 Connect gateway server. From
an application perspective, it should look no different than any other
DB2 server, but it does take client requests and pass them on to other
(usually DB2 OS/390 or DB2 AS400/iSeries) DB2 servers.

Once you are given the normal DB2 client configuration for your shop
and a valid connection string to this DB2 Connect server, you should
be all set.

Pete H
ph******@MoshierIsland--NOSPAM--Group.com

"Jim" <bi******@hotmail.com> wrote in message

news:<bt**********@lust.ihug.co.nz>...
Hi Folks,

We have a DB2 database on a WAN at work. I want to access the database from some Visual Basic for Applications code that I have written at work.

The database itself is not directly accessable and as it was described to me is "buffered"
from the users by a second computer which passes on requests for data.

I assume that this intermediary computer would be whats called a SQL server?
If my assumption above is correct is it possible to get a query to the
server which
it will accept and reply to?

Anyone?

Cheers

-Al

Nov 12 '05 #4
"Jim" <bi******@hotmail.com> wrote in message news:<bt**********@lust.ihug.co.nz>...
Thanks for the replies guys.

Currently we can query the database via a webpage interface.

I have looked at the code behind the webpage and it consists of some
javascript.

I am guessing but it looks like the webpage sends the request to the
webserver
which I assume passes it to the SQL server.

Is it possible that the computer i work on cant talk to the sql server
directly?

I need to know where to go from here....


Your web pages will be generated by a web server that presumably
resides on the so-called "SQL server". The web server will use JDBC to
access DB2 (or any other RDBMS), and JDBC (type 3 and 4) drivers don't
need any DB2 client software to be installed anywhere. So this could
equally apply to Java programs running on your own workstation.

ODBC on the other hand does require a DB2 Client to be installed.
This can either talk to DB2 UDB databases directly, or through a DB2
Connect gateway on some other server (especially if you want access to
mainframe DB2).

I think people will need more information to be able to give you a
less generalised answer.
DG
Nov 12 '05 #5
Jim
Thanks DG.

I will try to get a little more info about what is being run on the server
side.

-Al

"Database Guy" <db******@hotmail.com> wrote in message
news:7f**************************@posting.google.c om...
"Jim" <bi******@hotmail.com> wrote in message

news:<bt**********@lust.ihug.co.nz>...
Thanks for the replies guys.

Currently we can query the database via a webpage interface.

I have looked at the code behind the webpage and it consists of some
javascript.

I am guessing but it looks like the webpage sends the request to the
webserver
which I assume passes it to the SQL server.

Is it possible that the computer i work on cant talk to the sql server
directly?

I need to know where to go from here....


Your web pages will be generated by a web server that presumably
resides on the so-called "SQL server". The web server will use JDBC to
access DB2 (or any other RDBMS), and JDBC (type 3 and 4) drivers don't
need any DB2 client software to be installed anywhere. So this could
equally apply to Java programs running on your own workstation.

ODBC on the other hand does require a DB2 Client to be installed.
This can either talk to DB2 UDB databases directly, or through a DB2
Connect gateway on some other server (especially if you want access to
mainframe DB2).

I think people will need more information to be able to give you a
less generalised answer.
DG

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP...
4
by: CodeImp | last post by:
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
5
by: Sebastian | last post by:
I'm using the following code to connect to an access 2000 database. (with reference to adodb) Public DBvar As New ADODB.Connection() DBvar.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data...
3
by: GTDriver | last post by:
I'm trying to connect my application with a web service located on my own web server(localhost). I guess when the solution/proect is built it makes a file called 'Web...
5
by: nielsgron | last post by:
Hi, I have created a database on DB2 8.1 and 8.2 for Windows using the codeset "Big5" with the command: db2 CREATE DATABASE TWBIG5 USING CODESET BIG5 TERRITORY TW When I try to connect to...
5
by: Odd Bjørn Andersen | last post by:
I have installed DB2 9 Enterprise Edition on my laptop and created the sample database. Now I'm having truble connecting to the database from Command Editor. If I connect from Command Window it's...
0
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've my win32 application which connecting to my sql database. till now i used MSDE as my database and now i want to upgrade to sql express 2005. after the upgrade i tried to connect to the...
3
by: Sebouh | last post by:
Hi guys. I'm completely new to databases, so i wanna ask you if this is achievable. I've been learning how to connect to an MS SQL database file with java. I've finally learned the basics,...
2
by: bobt1991 | last post by:
I just installed Microsoft Visual Studio 2008 Express edition, and it installs some sort of stripped down version of SQL Server. It comes with no tools for connecting to your "local" database,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.