- Remove From My Forums
-
Question
-
From today I get an error 1526, when printing a Foxpro report containing _pagetotal.
Jo Simons
Answers
-
_PAGETOTAL has nothing to do with the error. It’s an ODBC error. Set up an error handler then use AERROR() to get more details.
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com-
Marked as answer by
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
-
From today I get an error 1526, when printing a Foxpro report containing _pagetotal.
Jo Simons
As Craig says, this is nothing to do with _pagetotal, or even VFP.
You need to find out what the error is. Error 1526 is simply a wrapper for a remote connectivity error. To find the details you need to use the AERROR() function in your error handler when the error number is 1526. The actual error message from the server is contained in the second column of the array that it generates.
Something like this in your error handler will do it:
IF m.errnum = 1526 AERROR(laErr) MESSAGEBOX( laErr[2], 16, 'ODBC Error' ) ENDIF
— Andy Kramek
-
Marked as answer by
Riquel_Dong
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
-
You may check to have admin rights on vista system….
dni
-
Marked as answer by
Riquel_Dong
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
- Remove From My Forums
-
Question
-
Hi Everybody
It is not my first time that I am coming across this problem.I get an error message that reads like «[Microsoft][ODBC SQL Server Driver][DBNETLIB] General Network error. Check your network documentation» when I run a load on sql server 2005 (64 bit) using ssis however i must mention that in the past i did manage to solve the problem using a hot fix on KB articlce 942861.This worked for about for months now the problem is that the error is back.
I have also came across other KB articles that seem to suggest alternative ways of resolving the issue.I have not used them yet!
KB 945977
KB 899599
KB 940202
KB 951037
KB 328476
Also another suggestion was to disable SynAttackProtect.(more related to Biztalk)
What I am looking for is the ultimate fix becuase the initial fix which is specified under KB article KB 942861 has failed to stop the problem having said that I must mention that it did work for 4 months.Is it possible that a later hotfix might have overwritten KB942861?Should I reinstall it again.
best regards
Globalwarming
newbie
Let us examine the error 1526 connectivity error Microsoft ODBC SQL server driver and the reasons causing it and the troubleshoots requires to remove the error. At Bobcares our MSSQL Support services will give you a detailed overview of the error and the troubleshooting steps.
1526 connectivity error Microsoft ODBC SQL server driver
Error 1526 represents the connectivity problem. To find the details you need to use the AERROR() function in the error handler when the error number is 1526. The server’s real error message is located in the second column of the array that it generates.
Connectivity error: “name” (Error 1526)
An ODBC error has occurred. This message is provided by Visual FoxPro as a wrapper for the underlying ODBC error. The ODBC error might be caused by either the ODBC driver management, the ODBC driver, or the back-end data server.
AERROR(В ) returns the ODBC errors. The following codes show the format of an ODBC error 1526 as returned by AERROR(B).
Element number: Error Message.
1: Numeric. Contains 1526. Character.
2: The text of the error message.
3: Character. ODBC error message text.
4: Character. The current ODBC SQL state.
5: Numeric. The ODBC data source's error number
6: Numeric. The ODBC connection handle.
7: The null value
The source of the fault is listed as the final name in the list preceding the actual error text in the ODBC error message (element number 3). Look up the error in the ODBC book (Programmer’s Reference) using the ODBC state code (element number 4).
The data source error is set when there is a server error (element number 5). Look up the error in the server documentation with it.
1526 connectivity error Microsoft ODBC SQL server driver: Errors
Users may encounter one or more of the errors listed below:
Error: General ODBC Error: Communication Link Failure. Native Error 0.
Error: -2147211486 (80042722) Run time error General ODBC error: [Microsoft][ODBC SQL Server driver] Communication Link Failure Native Error 0.
Error: General ODBC Error [Microsoft] [ODBC SQL Server Driver] [DBNETLIB] connectionread (recv()) Native Error 10054.
Error: General ODBC Error [Microsoft] [ODBC SQL Server Driver] General Network Error--check your network documentation--Native Error 11.
Error: Run-Time error '-2147211486 (80042722)': General ODBC Error: [Microsoft] [ODBC SQL Server Driver] Communication link failure Native error:0.
Error: General ODBC Error:Communication Link Failure. Native Error:0 when opening an invoice or vendor record.
Error: General ODBC Error:[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite(send()). Native error:10054. [Microsoft][ODBC SQL Server Driver][DBNETLIB] General network error.Check your network documentation. Native error: 11.
This can occur if any of the following events occur:
- For a few moments, the program has been dormant. Executing a query
- Creating an individual constituent record
- Invoice viewing
Troubleshooting steps for the 1526 connectivity error
We can repeat the following steps until the 1526 connectivity error Microsoft ODBC SQL server driver is resolved:
- If the SQL Server instance is installed and running on Windows Server or R2 and the errors occur on multiple workstations, consult Microsoft Article 942861.
- Reboot the workstation.
- Update/Repair the workstation.
- Modify the Power Options to prevent the computer from shutting down after prolonged inactivity.
Disable the network card power management feature by doing the following steps:
- Select Properties from the My Computer menu.
- Choose Device Manager.
- To expand the Network adapters tree, click the plus symbol.
- Choose the correct Network Interface Card (NIC) from the list.
- Select Action, and Properties from the menu bar. Select the Power Management tab.
- Remove the check from “Allow the computer for turning off the device to save power.” Then click OK to remove the 1526 connectivity error Microsoft ODBC SQL server driver.
Disable the wifi connection on the problematic computer:
- Open Control Panel.
- Click on Network and Sharing Center
- Click Change Adapter Settings
- Disable the wireless connection by right-clicking it.
- Connect to a wired network.
- Log out and back in.
After this follow the steps given below to continue the Disable the network card power management features:
- Recreate the Windows user profile
- Install the most recent version of the Microsoft Data Access Components (MDAC)
- Use the Microsoft TechNet article The Cable Guy: Network Diagnostics & Tracing in Windows to check for general network issues.
- Give the user the appropriate NTFS Permissions
- Restart the SQL Server service if the problem occurs on many workstations.
To do this click Start, then type Services.msc and hit Enter. Scroll down to the SQL Server instance. Right-click and select Restart.
Perform a continuous ping on a workstation that is experiencing the problem:
- Click Start, Select Run
- Type cmd and press Enter
- Click OK
- Enter the command ping -t servername (where servername is the SQL server name)
- When the error occurs press Ctrl + C
The number of packets lost should be 0. If the number of packets lost exceeds zero, we are having a networking problem and are losing contact with the database server.
[Need assistance with similar queries? We are here to help]
Conclusion
To conclude we have learned more about the error 1526 connectivity error Microsoft ODBC SQL server driver, the reasons causing it, and the Troubleshooting steps required to remove the error with the support of our MSSQL support services at Bobcares.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
GET STARTED
Troubleshooting
Problem
After applying a SSL certificates on the SQL Server, you may see «SQL1822N General Network Error» while doing a SELECT from a federated SQL Server datasource.
Symptom
Running SELECT from a federated SQL Server datasource will return below error:
select count(*) from dbo.datasource_group_memberships
SQL1822N Unexpected error code «08S01» received from data source «XYZDataSource».
Associated text and tokens are «func=»DriverConnect» msg=«General network error.error. Check your network documentation.»
Running ‘example’, an ODBC DataDirect sample application will return similar error:
./example DataDirect Technologies, Inc. ODBC Example Application.
Enter the data source name : XYZDataSource
Enter the user name : db2inst1
Enter the password : <password supplied>
SQLSTATE = 08S01
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]General network error. Check your network documentation.
SQLSTATE = 01000
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]ConnectionRead (recv()).
SQLConnect: Retrying Connect.
SQLSTATE = 08S01
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]General network error. Check your network documentation.
SQLSTATE = 01000
NATIVE ERROR = 11
MSG = [IBM(DataDirect OEM)][ODBC SQL Server Legacy Driver][libssclient27]ConnectionRead (recv()).
Cause
After applying SSL certificates on the SQL Server side, SSL needs to be enabled on the DB2 side too, using ODBC.ini
Diagnosing The Problem
In db2diag.log you will see below error messages:
2015-01-07-12.33.50.177032-300 I2656219048A1813 LEVEL: Error
PID : 21037272 TID : 18905 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-36154 APPID: *LOCAL.db2inst1.00000000000
AUTHID : DB2INST1 HOSTNAME: myhost1
EDUID : 18905 EDUNAME: db2agent
FUNCTION: DB2 UDB, mssql wrapper, Mssql_Server::get_error_info, probe:7
MESSAGE : ODBC error txt:
DATA #1 : Hexdump, 248 bytes
0x00000001423277A0 : 5B49 424D 2844 6174 6144 6972 6563 7420 [IBM(DataDirect
0x00000001423277B0 : 4F45 4D29 5D5B 4F44 4243 2053 514C 2053 OEM)][ODBC SQL S
0x00000001423277C0 : 6572 7665 7220 4C65 6761 6379 2044 7269 erver Legacy Dri
0x00000001423277D0 : 7665 725D 5B6C 6962 7373 636C 6965 6E74 ver][libssclient
0x00000001423277E0 : 3237 5D47 656E 6572 616C 206E 6574 776F 27]General netwo
0x00000001423277F0 : 726B 2065 7272 6F72 2E20 4368 6563 6B20 rk error. Check
0x0000000142327800 : 796F 7572 206E 6574 776F 726B 2064 6F63 your network doc
0x0000000142327810 : 756D 656E 7461 7469 6F6E 2E00 0000 0000 umentation……
0x0000000142327820 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327830 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327840 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327850 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327860 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327870 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327880 : 0000 0000 0000 0000 0000 0000 0000 0000 …………….
0x0000000142327890 : 0000 0000 0000 0000
2015-01-07-12.33.50.177386-300 I2656220862A596 LEVEL: Error
PID : 21037272 TID : 18905 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-36154 APPID: *LOCAL.db2inst1.00000000000
AUTHID : DB2INST1 HOSTNAME: myhost1
EDUID : 18905 EDUNAME: db2agent
FUNCTION: DB2 UDB, mssql wrapper, Mssql_Server::get_error_info, probe:1
MESSAGE : MSSQL Server:
DATA #1 : Hexdump, 8 bytes
0x000000012D5F01E0 : 5445 4D30 3553 514C XYZDataSource
2015-01-07-12.33.50.177682-300 I2656221459A602 LEVEL: Error
PID : 21037272 TID : 18905 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-36154 APPID: *LOCAL.db2inst1.00000000000
AUTHID : db2inst1 HOSTNAME: myhost1
EDUID : 18905 EDUNAME: db2agent (
FUNCTION: DB2 UDB, mssql wrapper, Mssql_Server::get_error_info, probe:2
MESSAGE : Function name:
DATA #1 : Hexdump, 13 bytes
0x0900000028BAF070 : 4472 6976 6572 436F 6E6E 6563 74 DriverConnect
Data1 (PD_TYPE_DIAG_LOG_REC,591) Diagnostic log record:
2015-01-07-12.33.50.177974-300 I2656222062A590 LEVEL: Error
PID : 21037272 TID : 18905 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-36154 APPID: *LOCAL.db2inst1.00000000000
AUTHID : db2inst1 HOSTNAME: myhost1
EDUID : 18905 EDUNAME: db2agent (
FUNCTION: DB2 UDB, mssql wrapper, Mssql_Server::get_error_info, probe:3
MESSAGE : ODBC native err:
DATA #1 : Hexdump, 2 bytes
0x0A00000004FF2000 : 3131
Data1 (PD_TYPE_DIAG_LOG_REC,676) Diagnostic log record:
2015-01-07-12.33.50.190925-300 I2656228445A675 LEVEL: Error
PID : 21037272 TID : 18905 PROC : db2sysc 0
INSTANCE: db2inst1 NODE : 000 DB :
APPHDL : 0-36154 APPID: *LOCAL.db2inst1.00000000000
AUTHID : db2inst1 HOSTNAME: myhost1
EDUID : 18905 EDUNAME: db2agent
FUNCTION: DB2 UDB, Query Gateway, sqlqgPassthruPrepare, probe:30
MESSAGE : ZRC=0x80260160=-2144992928=SQLQG_ERROR «Error constant for gateway.»
DATA #1 : String, 71 bytes
FedStart Failed, check the remote data source or the user mapping first
DATA #2 : String, 8 bytes
XYZDataSource
Resolving The Problem
Make sure you are not using Legacy DataDirect ODBC driver but Wire Protocol DataDirect ODBC driver. IBM Branded DataDirect Wire Protocol ODBC driver is part of VMsqls00.so file. Also add below encryption related settings in odbc.ini:
[XYZDataSource]
Driver=/opt/IBM/odbcdriver/branded_odbc/lib/VMsqls00.so
Description=Microsoft SQL Server Driver
EncryptionMethod=1
Truststore=<Your truststore>
TruststorePassword=
HostNameInCertificate=<name as listed in certicate>
ValidateServerCertificate=0
Database=<DB_Name>
Address=myhost.abc.com,1433
You may need to get information about Truststore, TruststorePassword, HostNameInCertificate from your SSL administrator.
Related Information
[{«Product»:{«code»:»SSEPGG»,»label»:»Db2 for Linux, UNIX and Windows»},»Business Unit»:{«code»:»BU058″,»label»:»IBM Infrastructure w/TPS»},»Component»:»Connectivity — Federated»,»Platform»:[{«code»:»PF002″,»label»:»AIX»},{«code»:»PF016″,»label»:»Linux»},{«code»:»PF027″,»label»:»Solaris»},{«code»:»PF033″,»label»:»Windows»}],»Version»:»9.8;9.7;10.1;10.5″,»Edition»:»Advanced Enterprise Server;Advanced Workgroup Server;Enterprise Server;Express;Express-C;Personal;Workgroup Server»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]
You receive the following error trying to make a call from an SQL database using Microsoft Access.
ODBC—call failed.
[Microsoft][ODBC SQL Server Driver][DBNETLIB][ConnectionWrite (Send()). (#10054) [Microsoft][ODBS SQL Server Driver][DBNETLIB]General network error. Check your network documentation. (#11)
SQL services need to be started or restarted on the server hosting the SQL database your Access database is communicating with making the ODBC call.
* Please use the comment form below. Comments are moderated.*
It’s due to a server configuration named «query wait», which states the # of seconds your query executer will wait before breaking the connection.
By default, it is set to -1. Which means 25 times the query cost. That is, if a query cost is estimated to run in 2 seconds, the time it will wait at most is 50 seconds. Normally that’s enough, but depending on the server load and thousand other possibilities, it might not be enough.
The fact u guys say it works perfect for a top 10 * limit of rows only proves it. Coz the cost of the query for a top 10 reduces considerably.
The solution is seting an explicit # of seconds for any query to last before connection is broken. Depending on how much time u think ur query will need, u’ll need to set that time in seconds.
Say 200,000 seconds is a little over 2 days, and in my experience it covers any heavy query, unless u need more time than that, of course, you can customize it to whatever ur needs are.
This is the code for changing the query wait option in the server.
-- this one lets u update query wait, in case u don't have it enabled
sp_configure 'show advanced options', 1
go
reconfigure with override
go
-- and this one does the trick
sp_configure 'query wait', 200000
go
reconfigure with override
go
To change it back to normal, just set the seconds parameter to -1.
Hope it is of help.
Meer
Let us examine the error 1526 connectivity error Microsoft ODBC SQL server driver and the reasons causing it and the troubleshoots requires to remove the error. At Bobcares our MSSQL Support services will give you a detailed overview of the error and the troubleshooting steps.
1526 connectivity error Microsoft ODBC SQL server driver
Error 1526 represents the connectivity problem. To find the details you need to use the AERROR() function in the error handler when the error number is 1526. The server’s real error message is located in the second column of the array that it generates.
Connectivity error: “name” (Error 1526)
An ODBC error has occurred. This message is provided by Visual FoxPro as a wrapper for the underlying ODBC error. The ODBC error might be caused by either the ODBC driver management, the ODBC driver, or the back-end data server.
AERROR(В ) returns the ODBC errors. The following codes show the format of an ODBC error 1526 as returned by AERROR(B).
Element number: Error Message.
1: Numeric. Contains 1526. Character.
2: The text of the error message.
3: Character. ODBC error message text.
4: Character. The current ODBC SQL state.
5: Numeric. The ODBC data source's error number
6: Numeric. The ODBC connection handle.
7: The null value
The source of the fault is listed as the final name in the list preceding the actual error text in the ODBC error message (element number 3). Look up the error in the ODBC book (Programmer’s Reference) using the ODBC state code (element number 4).
The data source error is set when there is a server error (element number 5). Look up the error in the server documentation with it.
1526 connectivity error Microsoft ODBC SQL server driver: Errors
Users may encounter one or more of the errors listed below:
Error: General ODBC Error: Communication Link Failure. Native Error 0.
Error: -2147211486 (80042722) Run time error General ODBC error: [Microsoft][ODBC SQL Server driver] Communication Link Failure Native Error 0.
Error: General ODBC Error [Microsoft] [ODBC SQL Server Driver] [DBNETLIB] connectionread (recv()) Native Error 10054.
Error: General ODBC Error [Microsoft] [ODBC SQL Server Driver] General Network Error--check your network documentation--Native Error 11.
Error: Run-Time error '-2147211486 (80042722)': General ODBC Error: [Microsoft] [ODBC SQL Server Driver] Communication link failure Native error:0.
Error: General ODBC Error:Communication Link Failure. Native Error:0 when opening an invoice or vendor record.
Error: General ODBC Error:[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite(send()). Native error:10054. [Microsoft][ODBC SQL Server Driver][DBNETLIB] General network error.Check your network documentation. Native error: 11.
This can occur if any of the following events occur:
- For a few moments, the program has been dormant. Executing a query
- Creating an individual constituent record
- Invoice viewing
Troubleshooting steps for the 1526 connectivity error
We can repeat the following steps until the 1526 connectivity error Microsoft ODBC SQL server driver is resolved:
- If the SQL Server instance is installed and running on Windows Server or R2 and the errors occur on multiple workstations, consult Microsoft Article 942861.
- Reboot the workstation.
- Update/Repair the workstation.
- Modify the Power Options to prevent the computer from shutting down after prolonged inactivity.
Disable the network card power management feature by doing the following steps:
- Select Properties from the My Computer menu.
- Choose Device Manager.
- To expand the Network adapters tree, click the plus symbol.
- Choose the correct Network Interface Card (NIC) from the list.
- Select Action, and Properties from the menu bar. Select the Power Management tab.
- Remove the check from “Allow the computer for turning off the device to save power.” Then click OK to remove the 1526 connectivity error Microsoft ODBC SQL server driver.
Disable the wifi connection on the problematic computer:
- Open Control Panel.
- Click on Network and Sharing Center
- Click Change Adapter Settings
- Disable the wireless connection by right-clicking it.
- Connect to a wired network.
- Log out and back in.
After this follow the steps given below to continue the Disable the network card power management features:
- Recreate the Windows user profile
- Install the most recent version of the Microsoft Data Access Components (MDAC)
- Use the Microsoft TechNet article The Cable Guy: Network Diagnostics & Tracing in Windows to check for general network issues.
- Give the user the appropriate NTFS Permissions
- Restart the SQL Server service if the problem occurs on many workstations.
To do this click Start, then type Services.msc and hit Enter. Scroll down to the SQL Server instance. Right-click and select Restart.
Perform a continuous ping on a workstation that is experiencing the problem:
- Click Start, Select Run
- Type cmd and press Enter
- Click OK
- Enter the command ping -t servername (where servername is the SQL server name)
- When the error occurs press Ctrl + C
The number of packets lost should be 0. If the number of packets lost exceeds zero, we are having a networking problem and are losing contact with the database server.
[Need assistance with similar queries? We are here to help]
Conclusion
To conclude we have learned more about the error 1526 connectivity error Microsoft ODBC SQL server driver, the reasons causing it, and the Troubleshooting steps required to remove the error with the support of our MSSQL support services at Bobcares.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
GET STARTED
- Remove From My Forums
-
Question
-
From today I get an error 1526, when printing a Foxpro report containing _pagetotal.
Jo Simons
Answers
-
_PAGETOTAL has nothing to do with the error. It’s an ODBC error. Set up an error handler then use AERROR() to get more details.
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com-
Marked as answer by
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
-
From today I get an error 1526, when printing a Foxpro report containing _pagetotal.
Jo Simons
As Craig says, this is nothing to do with _pagetotal, or even VFP.
You need to find out what the error is. Error 1526 is simply a wrapper for a remote connectivity error. To find the details you need to use the AERROR() function in your error handler when the error number is 1526. The actual error message from the server is contained in the second column of the array that it generates.
Something like this in your error handler will do it:
IF m.errnum = 1526 AERROR(laErr) MESSAGEBOX( laErr[2], 16, 'ODBC Error' ) ENDIF
— Andy Kramek
-
Marked as answer by
Riquel_Dong
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
-
You may check to have admin rights on vista system….
dni
-
Marked as answer by
Riquel_Dong
Thursday, July 23, 2009 8:36 AM
-
Marked as answer by
Hi:
I have an application that will execute an insert statement. When I try to run this morning I’ve encountered this: Error #: [1526]: Connectivity error: [Microsoft][ODBC SQL Server Driver]Associated statement is not prepared. I’m running — ‘Microsoft SQL Server 2005 — 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)’
Do you have any idea whats the exact explanation of this error? I’ve tried to search at the help file but it won’t give me any correct information.
thanks
Jan
Просто продолжение этого вопроса … с частичным решением.
Я провел трассировку, по сути, их несколько. Я обнаружил, что у этих ошибок может быть несколько причин. Мне удалось найти и исправить одну из них, но мы все еще получаем эту ошибку в других местах, и они не отображаются на трассировках, которые я сделал.
Так в чем же дело с тем, что я нашел? Итак, по трассировке я обнаружил, что эти ошибки ODBC появились после другой ошибки SQL Server:
Error: 1203, Severity: 20, State: 1.
Process ID 94 attempted to unlock a resource it does not own: OBJECT: 25:1699834390:0 . Retry the transaction, because this error may be caused by a timing condition. If the problem persists, contact the database administrator.
Из кода FoxPro я обнаружил, что оператор вставки вызывал эту ошибку … не всегда … но иногда. В этой вставке они вытягивали все поля из одной таблицы, а некоторые поля из другой таблицы — в третью. Каждая таблица в этой базе данных имеет столбец идентификаторов с именем id_col, а оператор select, который заполнял третью таблицу, возвращал два поля id_col.
insert into tablethree
select a.*, b.price, b.item, id_col
from tableone a, tabletwo b
where a.item = ....
Когда мы реструктурировали код так, чтобы возвращался только один id_col … ошибки прекратились.
Честно говоря, есть еще один возможный виновник этой ошибки, которую я исправил в то же время. Прямо перед этим был еще один большой / длинный запрос, который использовал синтаксис Foxpro Rushmore (например, a.item+a.customer = lc_item+lc_customer) в запросе сервера sql. У нас и раньше были проблемы с этим типом вещей, так что это могло быть одной из причин проблемы … но есть свидетельства того, что причиной является дополнительный столбец идентификации.
Здравствуйте! Помогите, пожалуйста, решить проблему.
Начало описания.
Хочу поработать в SQL Server Management Studio 15.0.18092.0
Клиентские средства служб Microsoft Analysis Services 15.0.1000.65
Компоненты доступа к данным (MDAC) 10.0.17134.1
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.17134.0
Microsoft .NET Framework 4.0.30319.42000
Операционная система 6.3.17134
Нажимаю «Соединить», появляется ошибка:
Отчет об ошибке:
При установлении соединения с SQL Server произошла ошибка, связанная с сетью или с определенным экземпляром. Сервер не найден или недоступен. Убедитесь, что имя экземпляра указано правильно и что на SQL Server разрешены
удаленные соединения. (provider: SQL Network Interfaces, error: 26 — Ошибка при обнаружении указанного сервера или экземпляра) (.Net SqlClient Data Provider)
ЗАГОЛОВОК: Соединение с сервером
——————————
Невозможно подключиться к DESKTOP\MSSQLSERVER01.
——————————
ДОПОЛНИТЕЛЬНЫЕ СВЕДЕНИЯ:
При установлении соединения с SQL Server произошла ошибка, связанная с сетью или с определенным экземпляром. Сервер не найден или недоступен. Убедитесь, что имя экземпляра указано правильно и что на SQL Server разрешены
удаленные соединения. (provider: SQL Network Interfaces, error: 26 — Ошибка при обнаружении указанного сервера или экземпляра) (Microsoft SQL Server, ошибка: -1)
Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
Моя догадка: не включена служба Виндовс 10 — хочу запустить, появляется ошибка:
Не удалось запустить службу SQL Server на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки
17051.
Конец описания.
-
Перемещено
29 марта 2019 г. 8:23