Only one between SERVER, SERVERNAME and DSN

venkata krishna Thaluru <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CA+nnEYoten0v=9NK8_uM2jt7Xr=iAQzi67_OeGKTTYncf827Lg@mail.gmail.com>
Hi All,
I am getting the below exception ,when i try to connect to MSSQL Server.

Only one between SERVER, SERVERNAME and DSN

I have checked the code ,we are thowing the below exception . Please see
the details below.

if (CHK_PARAM(Server)) {
                        /* error if servername or DSN specified */
                        if ((cfgs & (CFG_DSN|CFG_SERVERNAME)) != 0) {
                                tds_dstr_free(&value);
                                odbc_errs_add(errs, "HY000", "Only one
between SERVER, SERVERNAME and DSN can be specified");
                                return 0;
                        }



} else if (CHK_PARAM(Servername)) {
                        if ((cfgs & (CFG_DSN|CFG_SERVER)) != 0) {
                                tds_dstr_free(&value);
                                odbc_errs_add(errs, "HY000", "Only one
between SERVER, SERVERNAME and DSN can be specified");
                                return 0;
                        }
 else if (CHK_PARAM(DSN)) {
                        if ((cfgs & (CFG_SERVER|CFG_SERVERNAME)) != 0) {
                                tds_dstr_free(&value);
                                odbc_errs_add(errs, "HY000", "Only one
between SERVER, SERVERNAME and DSN can be specified");
                                return 0;
                        }


I have downloaded the freetds-0.92.812 from site and i have run the
following commands (./configure,make,make install) and copied those
binaries ,When i try to connect to MSSQL server , I am getting the above
exception.

Could you please let us know ,if i am missed any configurations or
compilation ?

Thanks in advance .

Thanks
Venkata Krishna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.