![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Our database server was running under ASA 9 and we were connecting from client computers using the following odbc profile... [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_works] "Driver"="C:\\Program Files\\Sybase\\SQL Anywhere 9\\win32\\dbodbc9.dll" "UID"="dba" "PWD"="*********" "DatabaseName"="albatross" "EngineName"="\\\\07-06-tides\\albatross_00" "AutoStop"="Yes" "Integrated"="No" "Debug"="No" "DisableMultiRowFetch"="No" "CommLinks"="SharedMemory,TCPIP{},SPX{},NamedPipes " "Compress"="No" "Description"="DB" I recently updated the database server to SQL Anywhere 11. I can connect to the database on the server itself, but if a client trys to connect using the following SQL Anywhere 11 odbc profile, I get a "Database server not found" error. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="********" "ServerName"="\\\\07-06-tides\\albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" I can connect to the server just fine if I use the ASA 9 odbc profile. But for some reason the SQL Anywhere 11 profile won't work. What am I missing? I'm using version 11.0.1.2044. Thanks. Shenn Sellers |
#3
| |||
| |||
|
|
While we sometimes see server names like that this usage "EngineName"="\\\\07-06-tides\\albatross_00" sometimes indicate a flawed configuraton there. When you start the server, what -n switches do you use? [in fact show you entire start line or service parameters] By specifying DEBUG=Yes and LOG=filename.txt for both you can maybe capture the context of the way the succeeding connection works and be able to compare those. [actually debug= is historical and ignored in both versions I believe, you just need LOG=filename.txt for it to work] Also watch our for any asasrv.ini and sasrv.ini files since they do interact here. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafc26f$1 (AT) forums-1-dub (DOT) .. Our database server was running under ASA 9 and we were connecting from client computers using the following odbc profile... [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_works] "Driver"="C:\\Program Files\\Sybase\\SQL Anywhere 9\\win32\\dbodbc9.dll" "UID"="dba" "PWD"="*********" "DatabaseName"="albatross" "EngineName"="\\\\07-06-tides\\albatross_00" "AutoStop"="Yes" "Integrated"="No" "Debug"="No" "DisableMultiRowFetch"="No" "CommLinks"="SharedMemory,TCPIP{},SPX{},NamedPipes " "Compress"="No" "Description"="DB" I recently updated the database server to SQL Anywhere 11. I can connect to the database on the server itself, but if a client trys to connect using the following SQL Anywhere 11 odbc profile, I get a "Database server not found" error. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="********" "ServerName"="\\\\07-06-tides\\albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" I can connect to the server just fine if I use the ASA 9 odbc profile. But for some reason the SQL Anywhere 11 profile won't work. What am I missing? I'm using version 11.0.1.2044. Thanks. Shenn Sellers |
#4
| |||
| |||
|
|
I've attached the two log files and here is how I set up our server on a PC named 07-06-tides. dbsvc -as -s auto -t network -w Albatross_DB C:\_Apps\Albatross\Bin32\dbsrv11.exe -n albatross_00 -c 20m C:\_Apps\Albatross\albatross.db "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcc81$1 (AT) forums-1-dub (DOT) .. Also adding "a -z -o filename.txt" to the servers will capture the context on that side as well. "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcbed$1 (AT) forums-1-dub (DOT) .. While we sometimes see server names like that this usage "EngineName"="\\\\07-06-tides\\albatross_00" sometimes indicate a flawed configuraton there. When you start the server, what -n switches do you use? [in fact show you entire start line or service parameters] By specifying DEBUG=Yes and LOG=filename.txt for both you can maybe capture the context of the way the succeeding connection works and be able to compare those. [actually debug= is historical and ignored in both versions I believe, you just need LOG=filename.txt for it to work] Also watch our for any asasrv.ini and sasrv.ini files since they do interact here. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafc26f$1 (AT) forums-1-dub (DOT) .. Our database server was running under ASA 9 and we were connecting from client computers using the following odbc profile... [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_works] "Driver"="C:\\Program Files\\Sybase\\SQL Anywhere 9\\win32\\dbodbc9.dll" "UID"="dba" "PWD"="*********" "DatabaseName"="albatross" "EngineName"="\\\\07-06-tides\\albatross_00" "AutoStop"="Yes" "Integrated"="No" "Debug"="No" "DisableMultiRowFetch"="No" "CommLinks"="SharedMemory,TCPIP{},SPX{},NamedPipes " "Compress"="No" "Description"="DB" I recently updated the database server to SQL Anywhere 11. I can connect to the database on the server itself, but if a client trys to connect using the following SQL Anywhere 11 odbc profile, I get a "Database server not found" error. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="********" "ServerName"="\\\\07-06-tides\\albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" I can connect to the server just fine if I use the ASA 9 odbc profile. But for some reason the SQL Anywhere 11 profile won't work. What am I missing? I'm using version 11.0.1.2044. Thanks. Shenn Sellers |
#5
| |||
| |||
|
|
Nick, After looking over the logs and trying things out, I've got it working with the following configuration. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="sql" "ServerName"="albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" By taking out the computer name , "07-06-tides", under the "ServerName" entry, that corrected my problem. Was I just doing it wrong this whole time or did you have to put the computer name in as well using ASA 9? I've been doing it that way with ASA 9 for years. Maybe SQLAny 11 just makes you do it the right way now. Thanks for your help. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafd2dd$1 (AT) forums-1-dub (DOT) .. I've attached the two log files and here is how I set up our server on a PC named 07-06-tides. dbsvc -as -s auto -t network -w Albatross_DB C:\_Apps\Albatross\Bin32\dbsrv11.exe -n albatross_00 -c 20m C:\_Apps\Albatross\albatross.db "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcc81$1 (AT) forums-1-dub (DOT) .. Also adding "a -z -o filename.txt" to the servers will capture the context on that side as well. "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcbed$1 (AT) forums-1-dub (DOT) .. While we sometimes see server names like that this usage "EngineName"="\\\\07-06-tides\\albatross_00" sometimes indicate a flawed configuraton there. When you start the server, what -n switches do you use? [in fact show you entire start line or service parameters] By specifying DEBUG=Yes and LOG=filename.txt for both you can maybe capture the context of the way the succeeding connection works and be able to compare those. [actually debug= is historical and ignored in both versions I believe, you just need LOG=filename.txt for it to work] Also watch our for any asasrv.ini and sasrv.ini files since they do interact here. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafc26f$1 (AT) forums-1-dub (DOT) .. Our database server was running under ASA 9 and we were connecting from client computers using the following odbc profile... [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_works] "Driver"="C:\\Program Files\\Sybase\\SQL Anywhere 9\\win32\\dbodbc9.dll" "UID"="dba" "PWD"="*********" "DatabaseName"="albatross" "EngineName"="\\\\07-06-tides\\albatross_00" "AutoStop"="Yes" "Integrated"="No" "Debug"="No" "DisableMultiRowFetch"="No" "CommLinks"="SharedMemory,TCPIP{},SPX{},NamedPipes " "Compress"="No" "Description"="DB" I recently updated the database server to SQL Anywhere 11. I can connect to the database on the server itself, but if a client trys to connect using the following SQL Anywhere 11 odbc profile, I get a "Database server not found" error. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="********" "ServerName"="\\\\07-06-tides\\albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" I can connect to the server just fine if I use the ASA 9 odbc profile. But for some reason the SQL Anywhere 11 profile won't work. What am I missing? I'm using version 11.0.1.2044. Thanks. Shenn Sellers |
#6
| |||
| |||
|
|
That is consistent with the log from the v9 client trace as well 10:40:55 Attempting TCPIP connection (address 10.20.230.110:2638 found in asasrv.ini cache) 10:40:55 Trying to find server at cached address 10.20.230.110:2638 without broadcasting 10:40:55 Found server, verifying server name 10:40:55 Found database server at address 10.20.230.110:2638 10:40:55 Found database server albatross_00 on TCPIP link It seems to just (silently) ignore the prefix with V9. The fact that it worked before is actually a (silent) bug I believe. The server name was never meant to be a system or domain name ... just one known locally to the dbsrv process internally. Glad to see you're up and running now "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafd964 (AT) forums-1-dub (DOT) .. Nick, After looking over the logs and trying things out, I've got it working with the following configuration. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="sql" "ServerName"="albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" By taking out the computer name , "07-06-tides", under the "ServerName" entry, that corrected my problem. Was I just doing it wrong this whole time or did you have to put the computer name in as well using ASA 9? I've been doing it that way with ASA 9 for years. Maybe SQLAny 11 just makes you do it the right way now. Thanks for your help. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafd2dd$1 (AT) forums-1-dub (DOT) .. I've attached the two log files and here is how I set up our server on a PC named 07-06-tides. dbsvc -as -s auto -t network -w Albatross_DB C:\_Apps\Albatross\Bin32\dbsrv11.exe -n albatross_00 -c 20m C:\_Apps\Albatross\albatross.db "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcc81$1 (AT) forums-1-dub (DOT) .. Also adding "a -z -o filename.txt" to the servers will capture the context on that side as well. "Nick Elson [Sybase iAnywhere]" <@nick@.@elson@@sybase@.@com@> wrote in message news:4aafcbed$1 (AT) forums-1-dub (DOT) .. While we sometimes see server names like that this usage "EngineName"="\\\\07-06-tides\\albatross_00" sometimes indicate a flawed configuraton there. When you start the server, what -n switches do you use? [in fact show you entire start line or service parameters] By specifying DEBUG=Yes and LOG=filename.txt for both you can maybe capture the context of the way the succeeding connection works and be able to compare those. [actually debug= is historical and ignored in both versions I believe, you just need LOG=filename.txt for it to work] Also watch our for any asasrv.ini and sasrv.ini files since they do interact here. "Shenn Sellers" <ssellers (AT) co (DOT) riverside.ca.us> wrote in message news:4aafc26f$1 (AT) forums-1-dub (DOT) .. Our database server was running under ASA 9 and we were connecting from client computers using the following odbc profile... [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_works] "Driver"="C:\\Program Files\\Sybase\\SQL Anywhere 9\\win32\\dbodbc9.dll" "UID"="dba" "PWD"="*********" "DatabaseName"="albatross" "EngineName"="\\\\07-06-tides\\albatross_00" "AutoStop"="Yes" "Integrated"="No" "Debug"="No" "DisableMultiRowFetch"="No" "CommLinks"="SharedMemory,TCPIP{},SPX{},NamedPipes " "Compress"="No" "Description"="DB" I recently updated the database server to SQL Anywhere 11. I can connect to the database on the server itself, but if a client trys to connect using the following SQL Anywhere 11 odbc profile, I get a "Database server not found" error. [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\albatros s_00] "Driver"="C:\\PROGRA~1\\SQLANY~2\\Bin32\\dbodbc11. dll" "UserID"="dba" "Password"="********" "ServerName"="\\\\07-06-tides\\albatross_00" "AutoStop"="YES" "Integrated"="NO" "Debug"="NO" "DisableMultiRowFetch"="NO" "CommLinks"="SharedMemory,TCPIP{}" "Compress"="NO" "Description"="DB" "DatabaseName"="albatross" I can connect to the server just fine if I use the ASA 9 odbc profile. But for some reason the SQL Anywhere 11 profile won't work. What am I missing? I'm using version 11.0.1.2044. Thanks. Shenn Sellers |
![]() |
| Thread Tools | |
| Display Modes | |
| |