Has anyone tried using ODBC LotusScript commands to create a table within a SQL database? I’ve tried this code:
=-=-=-=-=-=-=-=-=-=-=-=-
Dim con As ODBCConnection
Dim qry As ODBCQuery
Dim result As ODBCResultSet
Dim tables As Variant
Set con = New ODBCConnection
Set qry = New ODBCQuery
Set result = New ODBCResultSet
Set qry.Connection = con
Set result.Query = qry
Call con.ConnectTo ( “SQLServer”, “sa”, [password] )
qry.SQL = “CREATE TABLE aaaTest ( name CHAR (30). age INTEGER ) IN DATABASE TestDB”
result.Execute
tables = con.ListTables
=-=-=-=-=-=-=-=-=-=-=-=-
…but the tables variable never shows the aaaTest table in the list, so I’m assuming it’s not working.
Is it possible to send non-query SQL commands via LS?
Dave