Showing posts with label basic. Show all posts
Showing posts with label basic. Show all posts

Tuesday, March 27, 2012

DB2 & SQL server?

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
-AlYou need to ask whoever is administering your servers what technology is
used for accessing the DB2 database. Microsoft has a product called Host
Integration Server which can connect to DB2 systems. It is also possible to
link Microsoft SQLServer to external data sources such as DB2, but without
more information about what system you have in place it's difficult to give
a useful answer to your question.
Assuming you are provided with an OLEDB or ODBC connection to the database
you can use ADO to access your data from within Visual Basic.
http://msdn.microsoft.com/library/d.../>
rtpage1.asp
http://msdn.microsoft.com/library/d...t_oledb-db2.asp
To do this you'll need information such as the provider name, server name,
database name, user name and password. Your system administrator should be
able to supply that information.
(cross-postings removed)
David Portas
--
Please reply only to the newsgroup
--|||Thanks for the reply.
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
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@.acm.org> wrote in message
news:ereU30F0DHA.2308@.TK2MSFTNGP11.phx.gbl...
quote:

> You need to ask whoever is administering your servers what technology is
> used for accessing the DB2 database. Microsoft has a product called Host
> Integration Server which can connect to DB2 systems. It is also possible

to
quote:

> link Microsoft SQLServer to external data sources such as DB2, but without
> more information about what system you have in place it's difficult to

give
quote:

> a useful answer to your question.
> Assuming you are provided with an OLEDB or ODBC connection to the database
> you can use ADO to access your data from within Visual Basic.
>

http://msdn.microsoft.com/library/d...ostartpage1.asp[QUOT
E]
>[/QUOTE]
http://msdn.microsoft.com/library/d...t_oledb-db2.asp[
QUOTE]
> To do this you'll need information such as the provider name, server name,
> database name, user name and password. Your system administrator should be
> able to supply that information.
>
> (cross-postings removed)
> --
> David Portas
> --
> Please reply only to the newsgroup
> --
>[/QUOTE]

DB2 & SQL server?

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
-AlReplied in microsoft.public.sqlserver.connect
--
David Portas
--
Please reply only to the newsgroup
--|||Hi!
I work as a Journalist with PC WORLD magazine. I would like to obtain recent news about
SQL and other news. You can e mail them to me and we would be glad to publish them in
our magazine.
Thanking You,
Anusha Kirubaharan

Sunday, March 11, 2012

DB question ... thanks

Suppose that I have the basic db structure as follow:

imgnum varchar(16)
description text
imagecode varchar(16)
note text
photographer varchar(16)
date date
location varchar(50)

The <imgnum> format is as follows(and its unique):
J-1 ... J-200
K-1 ... K-250
V-1 ... V-128

But some they have a few sub-images e.g: J-1 has say, J-J-1a, J-1b, J-1c
which represent the same pic but more details views; and the same with the
K-, and V- as well.

How do I structure the following in MySQL?

Thanks in advanceUseko Netsumi wrote:

>Suppose that I have the basic db structure as follow:
>imgnum varchar(16)
>description text
>imagecode varchar(16)
>note text
>photographer varchar(16)
>date date
>location varchar(50)
>The <imgnum> format is as follows(and its unique):
> J-1 ... J-200
> K-1 ... K-250
> V-1 ... V-128
>But some they have a few sub-images e.g: J-1 has say, J-J-1a, J-1b, J-1c
>which represent the same pic but more details views; and the same with the
>K-, and V- as well.
>How do I structure the following in MySQL?
>Thanks in advance
>
Suppose you explain why you posted this in just about every usenet group
you could spell.
You posted in groups for Sybase, SQL Server, Access, Dreamweaver,
Oracle, etc.
when your question has absolutely nothing to do with any of them.

Please do not post in usenet groups unless you are on-topic. And please
read the FAQ for a
group in the future before wasting everyone's time.

Thank you.

--
Daniel Morgan
http://www.outreach.washington.edu/...oad/oad_crs.asp
http://www.outreach.washington.edu/...aoa/aoa_crs.asp
damorgan@.x.washington.edu
(replace 'x' with a 'u' to reply)|||sorry for your trouble. perhaps you can tell me where should I post for this
type of question.

thanks

"Daniel Morgan" <damorgan@.x.washington.edu> wrote in message
news:1066675699.814023@.yasure...
> Useko Netsumi wrote:
> >Suppose that I have the basic db structure as follow:
> >imgnum varchar(16)
> >description text
> >imagecode varchar(16)
> >note text
> >photographer varchar(16)
> >date date
> >location varchar(50)
> >The <imgnum> format is as follows(and its unique):
> > J-1 ... J-200
> > K-1 ... K-250
> > V-1 ... V-128
> >But some they have a few sub-images e.g: J-1 has say, J-J-1a, J-1b, J-1c
> >which represent the same pic but more details views; and the same with
the
> >K-, and V- as well.
> >How do I structure the following in MySQL?
> >Thanks in advance
> Suppose you explain why you posted this in just about every usenet group
> you could spell.
> You posted in groups for Sybase, SQL Server, Access, Dreamweaver,
> Oracle, etc.
> when your question has absolutely nothing to do with any of them.
> Please do not post in usenet groups unless you are on-topic. And please
> read the FAQ for a
> group in the future before wasting everyone's time.
> Thank you.
> --
> Daniel Morgan
> http://www.outreach.washington.edu/...oad/oad_crs.asp
> http://www.outreach.washington.edu/...aoa/aoa_crs.asp
> damorgan@.x.washington.edu
> (replace 'x' with a 'u' to reply)|||Useko Netsumi wrote:

>sorry for your trouble. perhaps you can tell me where should I post for this
>type of question.
>thanks
>"Daniel Morgan" <damorgan@.x.washington.edu> wrote in message
>news:1066675699.814023@.yasure...
>
>>Useko Netsumi wrote:
>>
>>
>>
>>>Suppose that I have the basic db structure as follow:
>>>
>>>imgnum varchar(16)
>>>description text
>>>imagecode varchar(16)
>>>note text
>>>photographer varchar(16)
>>>date date
>>>location varchar(50)
>>>
>>>The <imgnum> format is as follows(and its unique):
>>> J-1 ... J-200
>>> K-1 ... K-250
>>> V-1 ... V-128
>>>
>>>But some they have a few sub-images e.g: J-1 has say, J-J-1a, J-1b, J-1c
>>>which represent the same pic but more details views; and the same with
>>>
>>>
>the
>
>>>K-, and V- as well.
>>>
>>>How do I structure the following in MySQL?
>>>
>>>Thanks in advance
>>>
>>>
>>>
>>>
>>>
>>Suppose you explain why you posted this in just about every usenet group
>>you could spell.
>>You posted in groups for Sybase, SQL Server, Access, Dreamweaver,
>>Oracle, etc.
>>when your question has absolutely nothing to do with any of them.
>>
>>Please do not post in usenet groups unless you are on-topic. And please
>>read the FAQ for a
>>group in the future before wasting everyone's time.
>>
>>Thank you.
>>
>>--
>>Daniel Morgan
>>http://www.outreach.washington.edu/...oad/oad_crs.asp
>>http://www.outreach.washington.edu/...aoa/aoa_crs.asp
>>damorgan@.x.washington.edu
>>(replace 'x' with a 'u' to reply)
>>
>>
>>
You could start by going to http://www.google.com and looking up the
product you are working with.

--
Daniel Morgan
http://www.outreach.washington.edu/...oad/oad_crs.asp
http://www.outreach.washington.edu/...aoa/aoa_crs.asp
damorgan@.x.washington.edu
(replace 'x' with a 'u' to reply)