SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 24th, 2003, 10:04 AM
JohnC525 JohnC525 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 JohnC525 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy VBScript in XSL, trying to execute SQL connect.

I'm trying to modify a XSL file so it will execute a SQL Query against our SQL 2000 server. I've included the code below. I'm not sure if it is right but I am guessing it is not. The 2nd messagebox never executes. If I comment out the "oADOConn.Open Connect" line and the ".Close" line then the 2nd messagebox displays. Can anyone help me with this. I've tried a number of methods to connect to a SQL server from with in XSL to no avail. Any assistance would be greatly appreciated.

John.


<SCRIPT LANGUAGE="VBScript">

Dim Connect

Connect = "Provider=SQLOLEDB;"
Connect = Connect + "Initial Catalog=dpenterprise4;"
Connect = Connect + "Data Source = 10.0.0.1;"
Connect = Connect + "User ID=sa;"
Connect = Connect + "Password=g0pav*U;"

msgbox Connect

Dim oADOConn
Set oADOConn = CreateObject("ADODB.Connection")

oADOConn.Open Connect
oADOconn.Close
set oADOConn=Nothing

MsgBox "End"

</SCRIPT>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > VBScript in XSL, trying to execute SQL connect.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway