8 votes

SQL for XSLT (jesper.com)

Version 2.0 released - this version contains a new method "SQLExecuteScalar" to use for sqlstatements like INSERT and UPDATE.

This package installs an XSLT extension that enables you to execute any SQL statements. You can use it on the Umbraco database or on any other database for which you have configured a database connection string in web.config

You can use it to fetch any MSSQL data as xml and you can use it to update any MSSQL data.

Have a look at the jesper.umbracosql.xslt example file and try adding the macro to a template or RTE.

Security warning
Do NOT pass any inputvalues, querystring parameters directly into the sql expression.

Examples of use
* fetching / updating data from another database and present it with an xslt macro
* log visitor behaviour to db
* update your custom counter

Configuring another db
Just add the following to your web.config
<add key="MYOWNDB" value="server=myservername.dk;database=test;user id=testuser;password=ddd33422" />

Requries
Umbraco 3+ and MS SQL server.

 
Good luck
Jesper

http://www.jesper.com

 ... HEY - please remember to vote for this if you like it.

Project owner

Jesper Ordrup

Jesper Ordrup

Jesper has 1319 karma points

Project Compatibility

This project is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Project Information

  • Project owner: Jesper Ordrup
  • Created: 10/09/2009
  • Current version 2.0
  • License MIT
  • Downloads: 2324