digiman1134
Programmer
I am trying to query a MSSQl database in my vbscript, could anybody tell me what I'm doing wrong, if anything other than just having the servername wrong
Code:
Function GetReportButton_onclick()
SET MMS = CreateObject("ADODB.Connection")
MMS.ConnectionString = "PROVIDER=SQLOLEDB;DATA SOURCE=MMS;UID=abdreports;PWD=abdreports"
MMS.open
SET MMS2 = Createobject("ADODB.command")
MMS2.ActiveConnection = MMS
MMS1.commandText = "SELECT FROM Products WHERE all"
MMS2.execute
SET MMS1 = Nothing
End Function