The username is required even when running Windows
Authentication (SQL Server). If optional and a database
is specified, you should take the username from the
operating system.
Otherwise you should prompt for a username/password.
I am adding environment variables to complement command-
line syntax. In general, environment variables will be called
dbms2sde_* where * is an option, e.g., dbms2sde_fkey for
the -fkey option.
Two special environment variables will be "HOSTNAME"
(or "COMPUTERNAME") for -s, and "USER"
(or "USERNAME") for -u.
Command line options override environment variables, and
dbms2sde_s overrides "HOSTNAME"
(or "COMPUTERNAME") and dbms2sde_u overrides "USER"
(or "USERNAME").
Let me know how this works for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am adding environment variables to complement command-
line syntax. In general, environment variables will be called
dbms2sde_* where * is an option, e.g., dbms2sde_fkey for
the -fkey option.
Two special environment variables will be "HOSTNAME"
(or "COMPUTERNAME") for -s, and "USER"
(or "USERNAME") for -u.
Command line options override environment variables, and
dbms2sde_s overrides "HOSTNAME"
(or "COMPUTERNAME") and dbms2sde_u overrides "USER"
(or "USERNAME").
Let me know how this works for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=586167
I am adding environment variables to complement command-
line syntax. In general, environment variables will be called
dbms2sde_* where * is an option, e.g., dbms2sde_fkey for
the -fkey option.
Two special environment variables will be "HOSTNAME"
(or "COMPUTERNAME") for -s, and "USER"
(or "USERNAME") for -u.
Command line options override environment variables, and
dbms2sde_s overrides "HOSTNAME"
(or "COMPUTERNAME") and dbms2sde_u overrides "USER"
(or "USERNAME").
Let me know how this works for you.
Logged In: YES
user_id=586167
I am adding environment variables to complement command-
line syntax. In general, environment variables will be called
dbms2sde_* where * is an option, e.g., dbms2sde_fkey for
the -fkey option.
Two special environment variables will be "HOSTNAME"
(or "COMPUTERNAME") for -s, and "USER"
(or "USERNAME") for -u.
Command line options override environment variables, and
dbms2sde_s overrides "HOSTNAME"
(or "COMPUTERNAME") and dbms2sde_u overrides "USER"
(or "USERNAME").
Let me know how this works for you.