×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Remote database connection

Remote database connection

Remote database connection

(OP)
Hey,

I have a website powered by mySQL, written in .NET - with Microsoft SQL Server Management Studio Express as the SQL management software.

I am looking to develop an add on application for this website in PHP - so would make it on a seperate server (php) - but this new application will need access to the SQL (or at least aspects of it).

Will it be as simple as making the php site connect to the database remotely (so instead of localhost connect, it connects to the database at www.domain.com/blaablaa)

Although of course, the database isn't stored at domain.com/blaa since it's somewhere in root level.

I figure that because we're connected SQL, it shouldn't matter that the two sites are in different languages...

So I guess the question is - how easy would it be to connect, using PHP, to this remote SQL database, on the .NET server?

Any thoughts, most appreciated
Cheers

RE: Remote database connection

As long as the database is accessible to the server that will have the PHP site on it, then yes you can access the SQL Server via PHP.

If you are connecting to the database with the Microsoft SQL Server Management Studio Express then you are using Microsoft SQL not MySQL.  They are different products.

You'll be connecting to the hostname or IP address of the server running the database.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog

RE: Remote database connection

(OP)
"If you are connecting to the database with the Microsoft SQL Server Management Studio Express then you are using Microsoft SQL not MySQL.  They are different products."

Is the language fully compatible? i.e. can I use data from the Microsift SQL with an appliction designed for mySQL?

Cheers

RE: Remote database connection

yes, you can use the data

no, you cannot use the same SQL statements

neither SQL Server nor MySQL is fully ANSI SQL compatible (the forum you posted into)

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close