473,396 Members | 1,840 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,396 software developers and data experts.

Query SQLServer

There is an SQLServer database somewhere, and I would like to grab and
publish some data to my web pages.
I was told: "please, do", and given server address, database name, id,
and password.

My site is hosted on Linux at aruba.it and I do not have root rights,
nor any chance to edit whatever server setup. All I can do is use the
available tools, which you cand find here http://62.149.140.28/ver.php

All I need is query for a few data with an easy SELECT and publish on
the web.

Question: would that be possible or impossible?

Thank you

Mar 17 '06 #1
11 1600
"ki***@kirpi.it" <ki******@gmail.com> writes:
There is an SQLServer database somewhere, and I would like to grab and
publish some data to my web pages.
I was told: "please, do", and given server address, database name, id,
and password.

My site is hosted on Linux at aruba.it and I do not have root rights,
nor any chance to edit whatever server setup. All I can do is use the
available tools, which you cand find here http://62.149.140.28/ver.php

All I need is query for a few data with an easy SELECT and publish on
the web.

Question: would that be possible or impossible?


If by SQLServer you mean a mysql server it would be possible. If it's
something else it's not possible because only mysql is enabled in
their php installation.

--
Henrik Hansen
Mar 17 '06 #2
ki***@kirpi.it wrote:
There is an SQLServer database somewhere, and I would like to grab and
publish some data to my web pages.
I was told: "please, do", and given server address, database name, id,
and password.

My site is hosted on Linux at aruba.it and I do not have root rights,
nor any chance to edit whatever server setup. All I can do is use the
available tools, which you cand find here http://62.149.140.28/ver.php

All I need is query for a few data with an easy SELECT and publish on
the web.

Question: would that be possible or impossible?

Thank you


Hi,

SQLServer means Microsoft SQL Server?
Or some other db?
MS SQL Server runs on W$ machines, not on *nix.

If you are going to query M$ SQL SERVER, you need some layer in between to
help you from *nix. (Several solutions exist)

If you have another DB, please say which one, and we can help better.

Regards,
Erwin Moller
Mar 17 '06 #3
ki***@kirpi.it wrote:
There is an SQLServer database somewhere, and I would like to grab and
publish some data to my web pages.
I was told: "please, do", and given server address, database name, id,
and password.

My site is hosted on Linux at aruba.it and I do not have root rights,
nor any chance to edit whatever server setup. All I can do is use the
available tools, which you cand find here http://62.149.140.28/ver.php

All I need is query for a few data with an easy SELECT and publish on
the web.

Question: would that be possible or impossible?

Thank you


Hmmm, you're going to have to get your host to help you here.

It's possible, but to access MS SQL you need to have some extensions
added. If you're hosting is on Windows, you'll need the MS SQL Client
tools. If you're running on UNIX, you'll need the FreeTDS library
(http://www.freetds.org) library. Alternatively, the Sybase functions
are supposed to work because they two are compatible protocol-wise, but
I've never tried it.

Depending on your host, they may or may not be willing to install these
for you.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 17 '06 #4
> SQLServer means Microsoft SQL Server?

Yes, it does: I'm sad to confirm that.

MS SQL Server runs on W$ machines, not on *nix.
Indeed, it runs on a machine which has nothing to do with me: I just
could have access to the database (id, password,...) with the purpose
of extracting a few data and publish them on my (linux powered) site.

Hmmm, you're going to have to get your host to help you here.
[...]
...you'll need the FreeTDS library...
Alternatively, the Sybase functions are supposed to work...


The issue is: my host does not install any extra software.
That's why I'm asking. Is there any dirty, raw trick to read (just
read, not write) data from that database?

Luigi

Mar 18 '06 #5
ki***@kirpi.it wrote:
SQLServer means Microsoft SQL Server?

Yes, it does: I'm sad to confirm that.
MS SQL Server runs on W$ machines, not on *nix.

Indeed, it runs on a machine which has nothing to do with me: I just
could have access to the database (id, password,...) with the purpose
of extracting a few data and publish them on my (linux powered) site.
Hmmm, you're going to have to get your host to help you here.
[...]
...you'll need the FreeTDS library...
Alternatively, the Sybase functions are supposed to work...

The issue is: my host does not install any extra software.
That's why I'm asking. Is there any dirty, raw trick to read (just
read, not write) data from that database?

Luigi


Luigi,

Not unless you have the appropriate libraries installed.

You might want to look for another host (perhaps on Windows?), or get a
VPS and do it yourself.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 19 '06 #6
> Not unless you have the appropriate libraries installed.

:-(

You might want to look for another host (perhaps on Windows?),
or get a VPS and do it yourself.


That could be an idea...!
I know nothing about Windows: do you think that if I get a Windows
hosting then it will be smooth to connect to that database? Or again I
will need extra software to be installed?
I ask because a Windows hosting could come rather cheap, and could be
affordable.
Indeed a Linux VPS is the best solution, but the best I found is 20
euro/month, which is more than ten times the price I can afford... (you
know: children, house morgages, unemployment,...)

Luigi

Mar 19 '06 #7
ki***@kirpi.it wrote:
Not unless you have the appropriate libraries installed.

:-(
You might want to look for another host (perhaps on Windows?),
or get a VPS and do it yourself.

That could be an idea...!
I know nothing about Windows: do you think that if I get a Windows
hosting then it will be smooth to connect to that database? Or again I
will need extra software to be installed?
I ask because a Windows hosting could come rather cheap, and could be
affordable.
Indeed a Linux VPS is the best solution, but the best I found is 20
euro/month, which is more than ten times the price I can afford... (you
know: children, house morgages, unemployment,...)

Luigi


Yes, I understand about the hosting - I pay about that for each of my
servers. But it gives me the power and flexibility I need. And I
consider it to be a good investment.

As to the windows hosting, you'll have to look around. You will still
need the SQL Server client installed; check around to see what you can
find. I've seen all kinds of prices.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 19 '06 #8
> You will still need the SQL Server client installed

I live in the open-source world and (sorry) don't have the faintest
idea of how these Microsoft things work: should I also pay for that
"SQL Server client", or is it something I can download and use without
stress?

Luigi

Mar 20 '06 #9
ki***@kirpi.it wrote:
You will still need the SQL Server client installed

I live in the open-source world and (sorry) don't have the faintest
idea of how these Microsoft things work: should I also pay for that
"SQL Server client", or is it something I can download and use without
stress?

Luigi


Luigi,

I don't know if the client itself is available or not. The server is
quite expensive, but comes with the client.

I suggest you try the Microsoft website.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 20 '06 #10
Jerry Stuckle wrote:
ki***@kirpi.it wrote:
You will still need the SQL Server client installed

I live in the open-source world and (sorry) don't have the faintest
idea of how these Microsoft things work: should I also pay for that
"SQL Server client", or is it something I can download and use without
stress?

Luigi


Luigi,

I don't know if the client itself is available or not. The server is
quite expensive, but comes with the client.

I suggest you try the Microsoft website.


Hi Jerry and Luigi,

Maybe this helps:
http://www.microsoft.com/sql/edition...s/default.mspx

It is a 'free' SQL Server version for developers or something like that.
(I cannot, will not, basically 100% refuses to read Microsoft mumbo-jumbo,
so judge for yourself.)

In general: M$ doesn't know the meaning of 'free', but maybe you can extract
some dll from that package that is legal to use (in some countries,
provided you contact Redmond first in 20-fold, by snailmail, asking
permission) or maybe not.

The highest (latest) usercontribution on
http://nl2.php.net/manual/en/function.mssql-connect.php says:

------------------------
As described here: http://php.net/manual/en/function.ms...nect.php#58787
MSSQL Express Edition does not work with ntwdblib.dll bundled with PHP. But
if you have not installed MSSQL Server2000, you can find correct
ntwdblib.dll here: http://webzila.com/dll/1/ntwdblib.zip or try to find it
from main page (http://www.webzila.com) if link is not work.
--------------------------

Maybe that helps.

Regards,
Erwin Moller
Mar 20 '06 #11
Thanks to you all.
I'll now make my homework, and let you know how things evolve.

Luigi

Mar 21 '06 #12

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

Similar topics

15
by: laurenq uantrell | last post by:
Wondering if there is a physical or realistic limitation to the number of UNION statements I can create in a query? I have a client with approx 250 tables - the data needs to be kept in seperate...
1
by: Learner | last post by:
Hi there, I have installed Sql server 2005 developer on my machine which already has a Sql server 2000 installed on. Now i am trying to query the Sqlserver 2005 data(Ex: from Person.Address...
3
by: comp_databases_ms-sqlserver | last post by:
This post is related to SQL server 2000 and SQL Server 2005 all editions. Many of my stored procedures create temporary tables in the code. I want to find a way to find the query plan for these...
1
by: Darsin | last post by:
Hi, I have three tables with there fields given in brackets: User: (PK), Divisions: (PK), DivisionsOfUsers: , the "DivisionsOfUsers" tables has many-to-many relationships between userid...
5
by: bobh | last post by:
Hi All, I have this query which updates a field based on the result of an IIF statement. The table is on SQLServer and I'm linked to it and it has many records and will take Access a very long...
3
by: t8ntboy | last post by:
I have a table that contains a field for the start time for each day of the week (e.g., MondayStart, TuesdayStart, WednesdayStart, FridayStart, SaturdayStart, SundayStart). I need a query that...
2
by: Dinesh | last post by:
Hi experts, I am working on SQL Server 2005. Now i have to write a query which will extract some information from a table. My main table is having few columns supose 3 columns. EmpID ...
12
by: Yash | last post by:
My SQL query is like: SELECT ..... FROM tblCLAIM C INNER join tblXXX .... INNER join tblYYY ....(5 more joins) WHERE C.created_date between @start_date and @end_date AND...
5
by: Chris Kennedy | last post by:
Hi all I'm running SQL Server 2005 Express Edition. One database One table called Sites Fields as follows: id (bigint, Identity, Primary Key) SiteName (varchar(50), allows nulls) Generation...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.