static void PASCAL SetDefaultUser( LPCTSTR lpszDefaultUser );
throw( CDaoException, CMemoryException );
Parameters
lpszDefaultUser
The default user name. A user name can be 1 – 20 characters long and include alphabetic characters, accented characters, numbers, spaces, and symbols except for: " (quotation marks), / (forward slash), \ (backslash), [ ] (brackets), : (colon), | (pipe), < (less-than sign), > (greater-than sign), + (plus sign), = (equal sign), ; (semicolon), , ( comma), ? (question mark), * (asterisk), leading spaces, and control characters (ASCII 00 to ASCII 31). For related information, see the topic "UserName Property" in DAO Help.
Remarks
Call this member function to set the default user name that the database engine uses when a workspace object is created without a specific user name. The default user name that you set applies to new workspaces you create after the call. When you create subsequent workspaces, you do not need to specify a user name in the Create call.
To use this member function:
By default, the DefaultUser property is set to “admin” and the DefaultPassword property is set to an empty string ("").
For more information about workspaces, see the article DAO Workspace in Visual C++ Programmer's Guide. For related information, see the topics "DefaultUser Property" and "DefaultPassword Property" in DAO Help.