Ber53rker
Ber53rker

Reputation: 649

Connecting to an SQL database using only Ajax?

Is there a way to connect to an SQL database without using ASP/ASP.NET, PHP, etc.?

And using only Ajax, JQuery, etc.? Thanks.

Upvotes: 1

Views: 4291

Answers (3)

Remus Rusanu
Remus Rusanu

Reputation: 294297

I don't want to have to build or anything.

Well, you're going to, willing or not. Have a look at Creating an OData API for StackOverflow including XML and JSON in 30 minutes for how to 'build' such a feature using ASP and Endity Framework to expose an OData API.

Upvotes: 2

Cade Roux
Cade Roux

Reputation: 89671

SQL Server supported Native XML/SOAP endpoints: http://technet.microsoft.com/en-us/library/cc280436.aspx

Now deprecated in SQL Server 2008

Now of course this would mean that your SQL Server had to be able to handle HTTP requests from the client - which might be on the Internet. But it's possible, regardless of the wisdom of doing so.

Upvotes: 1

Jake Feasel
Jake Feasel

Reputation: 16955

It's not "SQL", but I think you use CouchDB as your database platform - that supports a REST/JSON API for querying:

http://couchdb.apache.org/

Upvotes: 0

Related Questions