MSSQLRemote is a basic library which allows you to access a corporate MS SQL Server. Why would you want to do this?, well in my case it's for wireless hand held devices used in a warehouse environment.
:sign0104: Warning This is not currently in production and as it is my first library there are likely bugs and probably there are better ways of doing things. In particular the BeginTransaction and related functions are not fully tested.
Usage as follows:
LastError - Returns the last exception as string
New - Sets up the Connection and returns True or False
Open(ConnString) - Opens a database where ConnString is something like "Persist Security Info=False;Integrated Security=False;Server=CWS-MARK, 1433; initial catalog=ArrowDemo; user id=sa; password=pass;" Returns True or False depending on success.
Close - Closes the current connection
ExecuteNonQuery(QueryString) - Returns True or False. QueryString like "Update Invoices Set StatusFlag = 'X' Where Reference = '1234'"
ExecuteQuery(QueryString) - Returns True or False. QueryString like "Select * From Invoices"
After ExecuteQuery the following are valid:
OR
Rows - Return number of rows in current result set (only after BuildResultSet)
FieldInfo - Returns Array of field name and field type for current result set
BeginTransaction - Returns True or False
Commit - returns True or False
RollBack - returns True or False
TransactionDispose - returns True or False
Use BuildResultSet and GetResultSet with care as they use Array Redim. Large record sets may/will cause performance problems. Unfortunately CF and also basic4pcc do not appear to support multi dimensional arraylists? If any has any further information or ideas it would be most appreciated.
Requires System.Data.SqlClient.Dll. Tested on SQL Server 2005 should work on 2000 and Express.
Cheers
Mark S
:sign0104: Warning This is not currently in production and as it is my first library there are likely bugs and probably there are better ways of doing things. In particular the BeginTransaction and related functions are not fully tested.
Usage as follows:
LastError - Returns the last exception as string
New - Sets up the Connection and returns True or False
Open(ConnString) - Opens a database where ConnString is something like "Persist Security Info=False;Integrated Security=False;Server=CWS-MARK, 1433; initial catalog=ArrowDemo; user id=sa; password=pass;" Returns True or False depending on success.
Close - Closes the current connection
ExecuteNonQuery(QueryString) - Returns True or False. QueryString like "Update Invoices Set StatusFlag = 'X' Where Reference = '1234'"
ExecuteQuery(QueryString) - Returns True or False. QueryString like "Select * From Invoices"
After ExecuteQuery the following are valid:
- Data - Returns True or False. Step Through result set one row at at a time ie. (Do While Data - i = ReadRow - Loop)
- Read(FieldName) - Returns single field as string from current row
- ReadRow - Returns string array of current row
OR
- BuildResultSet - Will read entire result set and return True or False if data.
- GetResultSet - Returns entire result set as Array
Rows - Return number of rows in current result set (only after BuildResultSet)
FieldInfo - Returns Array of field name and field type for current result set
BeginTransaction - Returns True or False
Commit - returns True or False
RollBack - returns True or False
TransactionDispose - returns True or False
Use BuildResultSet and GetResultSet with care as they use Array Redim. Large record sets may/will cause performance problems. Unfortunately CF and also basic4pcc do not appear to support multi dimensional arraylists? If any has any further information or ideas it would be most appreciated.
Requires System.Data.SqlClient.Dll. Tested on SQL Server 2005 should work on 2000 and Express.
Cheers
Mark S