Example Result:
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open Source, ActiveConnection, CursorType, LockType, Options
Today is : 11/9/2007
Today Total visitors: 2
Today Total hits : 5
---------- tips memo ----------
if you get this:
"Microsoft VBScript runtime error '800a000d'
Type mismatch: 'GetSQLserverRecordset' "
this means: you forget to setup the function for 'GetSQLserverRecordset'
that is why [ mismatch ]
you need add a function for this
and you may name it whatever name you want
Function GetSQLServerRecordset( conn, source )
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open source, conn, 2, 2
Set GetSQLServerRecordset = rs
End Function
-------------------------------
For Access : GetMDBStaticRecordset ....
For Excel: GetExcelStaticRecordset
For FoxPro :GetExcelStaticRecordset
For Text : GetTextStaticRecordset
For dBase : GetdBaseStaticRecordset
For SQLserver : GetSQLserverStaticRecordset
|