Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Execute query in xsl (vbscript) >Thread Next - Re: Execute query in xsl (vbscript) Re: Execute query in xsl (vbscript)To: NULL Date: 4/6/2007 1:48:00 PM
Ghena wrote:
> function testSQL()
> Dim Conn
> Set Conn= Server.CreateObject("ADODB.Connection")
> inside the template I call the function in this way:
> <xsl:value-of select="user:testSQL()" />
>
> but the system return an error:
>
> Microsoft VBScript runtime error Object required: 'Server' line = 12,
Simply use
Set Conn = CreateObject("ADODB.Connection")
the Server object is only available to script in an ASP page.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
