If you use an sde-schema geodatabase, you can use a Windows sde login instead of a SQL Server-authenticated sde login. To do so, create the Windows or domain login to be mapped to the sde user, add it to the SQL Server instance, create a database to be used to store your geodatabase, add an sde user and schema to that database, mapping the appropriate login to the sde user.
- Create a Windows login, which will be mapped to the sde user. This can be a domain login or a local Windows login on the server where SQL Server is installed.
- Add this login to the SQL Server logins collection on the SQL Server instance.
- Start SQL Server Management Studio and create a database.
- Open a new query window in Management Studio.
- Add the login to your new database as a user and create a default schema for the user by executing the following command. Be sure to replace the <domain or server name> with your domain or server name and <login name> with the actual login name.
CREATE USER sde FOR LOGIN <domain or server name>\<login name> WITH DEFAULT_SCHEMA = sde; CREATE SCHEMA sde AUTHORIZATION sde;
- Grant the sde user CREATE TABLE, CREATE VIEW, CREATE PROCEDURE, and CREATE FUNCTION privileges in the database.
GRANT CREATE TABLE , CREATE VIEW , CREATE PROCEDURE , CREATE FUNCTION TO sde;
- Log in to Windows using the login account to create the geodatabase repository. You must be logged in as the new Windows account to perform this step.
- Start ArcCatalog or ArcMap and open the Catalog window.
- Add a database connection to the database you created in step 3. Use operating system authentication to connect.
- Right-click the database connection and click Enable Geodatabase.
The Enable Enterprise Geodatabase opens and the Input Database text box is populated with the database connection.
- Browse to the ArcGIS Server keycodes file that was created when you authorized your ArcGIS Server installation, and add it to the Authorization File text box.
When you use the wizard to authorize ArcGIS Server, a keycodes file is written to the server where the software is installed. If you authorized ArcGIS Server on a Linux box, the file was created in /arcgis/server/framework/runtime/.wine/drive_c/Program Files/ESRI/License<release>/sysgen. If you authorized on a Windows server, the file was created in Program Files\ESRI\License<release>\sysgen. If you have not already done so, authorize ArcGIS Server to create this file.
- Click OK to run the tool.
If your geodatabase users will only connect directly to the geodatabase and you have installed the SQL Server native client on all client machines, your geodatabase setup is complete.