Xbasic
SQL::ConnectionGenerateDropUserStatement Method
Syntax
SQL_Statement as C = GenerateDropUserStatement as C (User as C)
Arguments
An add user group statement appropriate for the database.
- User
The name of the group to create.
Returns
- SQL_StatementCharacter
Returns a SQL statement that deletes a user.
Description
Generate a SQL Drop User statement.
Discussion
The .GenerateDropUserStatement() method returns the SQL statement that will delete a user.
Example
dim conn as SQL::Connection conn.open("{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}") ? conn.GenerateDropUserStatement("Tom") = "DROP USER Tom"
See Also