Click or drag to resize
PortalLogin Method (String, String, String, String, Int16, Boolean, Boolean)
This Login method is retained for backward compatibility. It uses DYNAMICS as the system database.

Namespace: KampData.TaxEngine.API
Assembly: KDTaxEngine (in KDTaxEngine.dll) Version: 3.0.5512.25362
Syntax
public string Login(
	string server,
	string userId,
	string password,
	string companyDatabase,
	short timeOutSeconds,
	bool displayProgressBar,
	bool useSqlPassword
)

Parameters

server
Type: SystemString
SQL Server name as used in the connection string.
userId
Type: SystemString
Microsoft Dynamics GP Login Name
password
Type: SystemString
Microsoft Dynamics GP Password
companyDatabase
Type: SystemString
SQL Server company database name
timeOutSeconds
Type: SystemInt16
Seconds elapsed before login times out. This setting will be set to the default if it is less than 1 second. The default is 15 seconds
displayProgressBar
Type: SystemBoolean
Display a progress bar to show time remaining before timeout.
useSqlPassword
Type: SystemBoolean
Use the password assigned on SQL server to authenticate the user. This is designed for use on a server other than one running Dynamics GP as Dynamics encrypts non-sa passwords.

Return Value

Type: String
An empty string if login is successful. An error message if not.
See Also