Consultor Eletrônico



Kbase P15923: Errors 301 & 325 occur when incorrect connection string is p
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/5/2003
Status: Unverified

SYMPTOM(s):

Errors 301 and 325 occur when attempting to connect to MS SQL Server

** Could not recognize argument: <string>. (301)

Unable to execute CONNECT statement. (325)

-Dsrv qt_cache_size,<>,skip_schema_check,MSS_PRESERVE_CURS,<>,PRGRS_BLOCK_CURS,<>,PRGRS_CONNECT,DSN=<DSN_NAME>,TXN_ISOLATION,<>, BINDING,<> -U user -P password

String works when defined within the startup file

String does not work when defined from the command line

CAUSE:

There is a space in between two parameters. The space or descrepency can exist between any value and/or parameter to instigate these two errors. The reason is worked fine within the startup file is essentially because the startup file used the correct connection parameter string.

FIX:

Remove the space and/or the descrepency within the command line.