How To Add a User and Set User Privileges to SQL Server (191694)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft Data Access Components 2.5
This article was previously published under Q191694 SUMMARY
When using integrated security with SQL Server, the presence or absence of
a login ID determines if a user is uniquely known within SQL Server or is
instead mapped to a default account, if one exists. If no default account
and no login ID exists for a specific user, that user cannot log in.
If no login ID exists for a specific user, the following error message
appears when that login ID is used in an attempt to initiate an ODBC
connection to SQL Server:
Connection Failed
SQL State: '28000'
SQL Server Error: 4002
[Microsoft][ODBC SQL Server Driver][SQL Server] Login Failed
This article describes how to add a valid user SQL Server login ID from
within Visual FoxPro.
REFERENCES
SQL Server 6.5 Help; search on: "sp_addlogin"
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by
John Desch, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbcode kbhowto kbSQLProg KB191694 |
---|
|