Originally we had laid out how we wanted our packages to work. In that concept we never really wanted our packages to fail but to offload the problem data to a file so that we could examine it (finding a problem in 1, 10, or 100 rows is easier than finding problems in 100,000 lines). The 2nd thing we want to achieve is to audit each task at the beginning and at the end. Very similar to how the the number of rows is shown in the dataflow.
Our first problem is that each task would require us to create a new file to offload the problem data. This quickly became a huge concern due to the number of files that we would have to maintain. The second problem is that we haven't figured out a way to capture the row count as it flows through the tasks and send that data to an audit table.
The auditing we want to do will go along way in ensuring that we can truly automate our packages which need to run once an hour.
Are any of you currently doing something of this nature and if so how did you go about handling some of the issues and concerns we have had?
id beg for a hint if our idea of a general dynamic CATCH handler for SPs is possible somehow. We search for a way to dynamically figure out which input parameters where set to which value to be used in a catch block within a SP, so that in an error case we could buld a logging statement that nicely creates a sql statement that executes the SP in the same way it was called in the error case. Problem is that we currently cant do that dynamically.
What we currently do is that after a SP is finished, a piece of C# code scans the SP and adds a general TRY/CATCH bloack around it. This script scans the currently defined input parameters of the SP and generates the logging statement accordingly. This works fine, but the problem is that if the SP is altered the general TRY/CATCH block has to be rebuildt as well, which could lead to inconstencies if not done carefully all the time. As well, if anyone modifies an input param somewhere in the SP we wouldnt get the original value, so to get it right we would have to scan the code and if a input param gets altered within the SP we would have to save it at the very beginning.
So the nicer solution would be if we could sniff the input param values dynamically on run time somehow, but i havent found a hint to do the trick.....
DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.CREATE PROCEDURE [dbo].[spu_Import_Export_Image](@srvr varchar(50),@db varchar(50),@usr varchar(15),@pwd varchar(50),@tbl varchar(50),@col varchar(50),@mod varchar(1),@imgpath1 varchar(1000),@pk varchar(50))ASBEGINdeclare @path varchar(50)declare @whr varchar(200)declare @fil varchar(100)declare @cmd varchar(1000)declare @imgpath varchar(800)declare @ext varchar(5)--declare @pk varchar(50)declare @KeyValue varchar(8000)declare @image varchar(50)--declare @imgpath1 varchar(1000)declare @imgpath2 varchar(1000)declare @sellist varchar(2000)set @path = 'c: extCopy.exe'select @sellist = 'DECLARE curKey CURSOR FOR SELECT ' + @pk +' FROM '+ @tbl + ' ORDER BY ' + @pkexec (@sellist)OPEN curKeyFETCH NEXT FROM curKey INTO @KeyValueWHILE (@@fetch_status = 0)BEGINset @whr = '"where '+ @pk +' = "' + @KeyValueset @fil = @imgpath1 + '' + @KeyValue --+ @extset @cmd = @path + ' /S ' + @srvr + ' /D ' + @db + ' /U ' + @usr+ ' /P ' + @pwd+ ' /T ' + @tbl + ' /C ' + @col + ' /W ' + @whr + '/F ' + @fil+ ' /' + @modexec Master..xp_cmdShell @cmdFETCH NEXT FROM curKey INTO @KeyValueENDCLOSE curKeyDEALLOCATE curKeyENDGOAbove srcipt runs fine with image data type in one table but when irun for some other table it gives me Error MessageTEXTCOPY Version 1.0DB-Library version 8.00.194SQL Server 'WSQL01' Message 170: Line 1: Incorrect syntax near '99'.(Concerning line 1)DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.ERROR: Could not use database 'test1'NULL-----------Aslo it only runs on server console if i run it from workstation uingsame files and tables it gives me an error again. Can anybody help meand reply me at Join Bytes! asap.thnx,dharmesh
I've recently migrated all databases to SQL Server 2005. I couldn'tfigure out how to create an SSIS package in the time I had, so I juststuck with the DTS packages. They all worked fine during testing, butonce we renamed the server we had problems. The DTS packages stillwork, but whenever I click into the Copy SQL Server Object and try toSelect Objects (on the Copy tab) I get this error:Microsoft SQL-DMOError 21776: General ErrorI click OK and get the error again and again for a total of 12 times(regardless of which database I'm connecting to in the packages, soit's not related to the number of objects in the database). Then theSelect Objects screen appears and it's business as usual.Has anyone else come across this problem and found a solution? I'verenamed the server using sp_dropserver and sp_addserver and select@@servername returns the correct valueJohn Hunter
I get the error "General SQL Error" when reading or writing to a memo field in Sql Server through a frontend build in Delphi 4. I'm Using the latest BDE. I have recently installed this onto a NT enviroment in the same manner as my own enviroment but get the error message above.
On my own enviroment and a friends enviroment I do not get any errors.
Can someone please give me some help on this or a direction to run in ?
Hello. I'm running into a rather intermittent problem when a search query is run on an ASP.Net web application. The error is 'General Network Error' Check your Network Documentation... As I said, it doesn't happen everytime which leads me to beleive that there is a problem with the database connection There's probably no more than 50-60 max users hitting the app at any one time. Anybody familiar with this?
hi guys i am developing my application on framework 1.1 on asp .net i am trying to connect to sql server 2005 but it gives me error like general network error check your network documentation.
does any one know how to solve this error then pl reply fast
Please help!Getting this error intermittently:System.Data.SqlClient.SqlException: Timeout expired. The timeout periodelapsed prior to completion of the operation or the server is notresponding. at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehaviorcmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() After getting a fair number of these errors I get this one also:System.Data.SqlClient.SqlException: General network error. Check yournetwork documentation. at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehaviorcmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() SQL connection pooling is turned off. All sql parameters passed to thestored procedure and all the data types are correct.*** Sent via Developersdex http://www.developersdex.com ***
Hi all,I'm getting the above error in Delphi 4 when attempting to connect aTDatabase component to an MS Access table. I am following the belowinstructions:Database1.DatabaseName:='tryDB';Database1.DriverName:=MSACCESS;Database1.LoginPromt:=false;Database1.Params.Clear;Database1.Params.Add('DATABASE NAME=D:Projectspattern.mdb');Database1.Connected:=true;TDBGrid.DataSource:=DataSource1;DataSource1.DataSet:=Table1;Table1.DatabaseName:='tryDB';Table1.Active:=true;Any help would be appreciated.TIA,TJ
I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using aTCP/IP client connection.I get this error when attempting to restore a database.[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead(WrapperRead()).[Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error.Check your network documentation.Does anybody know how to resolve this issue?Thanks
Hi , can anyone explain what is general network error. Im facing this error quite frequently during DTS uploading of data. When ever DTS is running this error is generated and the specific package fails to load the data and continues loading data for other packages and certainly interupts the loading process. This error doesnt seems to occur on 1 package but on different.
I have a problem with my application.when i try to run it to a network pc, show me this message "Network general error". But if i run it to simple pc everything ok.
Database is local. SQL Express agent running locally.Also all protocols for sql server is enebled.
An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "[DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.".
The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
I'm using Native OLE DBSQL Native Client provider to get data from SQL Server 2000 database into SQL Server 2005 database using SSIS.
The problem is I get this error:
An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "[DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.".
The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
Hi All,I want to catch the next MSSQL error in my SQL code with following continuecalculationsServer: Msg 17, Level 16, State 1, Line 1SQL Server does not exist or access denied.If REMOTE_SERVER_1 is inaccessible (as in (a) below) the executing of SQLwill not continue with (b) - I need the code in (b) to run despite whetherthe previous exec was successful or not - Any ideas?begin transaction(a) exec REMOTE_SERVER_1...bankinsert '1' , '1' , 1 , 0 , 0(b) print @@errorcommit transactionwhere REMOTE_SERVER_1 is link to server created byEXEC sp_addlinkedserver @server = 'REMOTE_SERVER_1', @srvproduct = '',@provider = 'SQLOLEDB', @datasrc = 'MYCOMP1', @catalog = 'mirror2'EXEC sp_addlinkedsrvlogin @rmtsrvname = 'REMOTE_SERVER_1', .....Exec sp_serveroption 'REMOTE_SERVER_1', 'data access', 'true'Exec sp_serveroption 'REMOTE_SERVER_1', 'rpc', 'true'Exec sp_serveroption 'REMOTE_SERVER_1', 'rpc out', 'true'Exec sp_serveroption 'REMOTE_SERVER_1', 'collation compatible', 'true'Any help will be greatly appreciated
When trying to view a web page from my local web server with a database that is connected to a remote sql 7 db I get the following:
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBMSSOCN]General network error. Check your network documentation.
/sql7Test/ASP Page2.asp, line 30
If I upload the page to the web host and view, I can see the page fine. I am using VI6 and can see the data through the data tools, but when I view the project web page, I get the above error.
When I try to schedule a dump of a database, I receive the following error message "Error 2812: Stored Procedure `master.dbo.sp_schedulersignal` not found. I looked in the msdb databases and this stored procedure was not listed. I recently had to reinstall SQL server due to problems with IP sockets. How do I go about correcting this problem? Do I need to somehow reinstall this Stored Procedure? Any help will be greatly appreciated.
I have a friend at another company that is getting this error:
03/07/2007 16:03:49 Version 21.00.69 - UID - xxx - Error -2147467259 - [DBNETLIB][ConnectionWrite (send()).]General network error. Check your network documentation.
I have checked around and found two potential fixes for this problem. The first one describes this as a problem specific to the Named Pipes protocol. The fix is listed as available from this site:
The second fix is listed as making an additional entry to the registry like this:
The problem arises on a busy SQL system and some requests will randomly seem to be dropped with a General Network Error.
To fix: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServic esTcpipParameters Add a new DWORD key SynAttackProtect with value of 0. Restart server. Can someone tell me if either or both of these approaches is correct?
Hello everyone, this post will be a bit lengthy, so please bear with me. I've been programming asp.net for abou 2 years. I'm not a master by any means, and I do things like I learn from books. Here is my standard way of connection to my mssql database (which is on the same server as my site, so I just use "localhost") Dim objConnection As New SqlConnection(Application("dbstring")) Dim strSQL As String = "SELECT * FROM myTable WHERE this='that'" Dim objCommand As New SqlCommand(strSQL, objConnection) Dim objDataReader As SqlDataReader
Do While objDataReader.Read() = True 'Do what I need to do with the data Loop
objDataReader.Close() objConnection.Close()
objConnection.Dispose()Here's my issue. Our website gets this error 2-4 and as many as 6 or 7 times a day: General network error. Check your network documentation.Line ###: objConnection.Open()I use the method I wrote above for getting data on almost every page in the site. Its a HUGE site, but I've made sure that I close all my connections. This is my global connection string: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) Application("dbstring") = "Server=WWW1;database=###;uid=#####;password=#####;Connect Timeout=300;Connection Reset=False;Pooling=False;Max Pool Size=75000;" End Sub Here's my web.config file:<configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>... This server has only one website running on it, its a dedicated server. Is there something in my code causing this error to happen so much? We have to restart the sql server everytime this error happens for it to go away. Its very disruptive to the website.
I have application desinged using VB.Net and sql server 2005. Its been deployed at remote site which is connected to my database server using VPN.
There are 2 machine at the remote site. One machine is working perfectly with all the reports and forms working. second machine is having problem runing one report. Reports is based on View which around 8 tables joined.
It shows the following eror
failed to openrowset Microsoft OLD DB provider for sql server DBNETLIB connectionread(recv()). General Network Error. Check your network doucmentation.
I am getting "General network error. Check your documentation." I am using .net 1.1 to connect sql server 2005 database at remote place. .net code is running on windows xp and database(Dev database) is running on windows 2003 server. below is my code.
conn = new SqlConnection("Persist Security Info=False; User ID=xxx; Password=pwd; database=WBWT; server=machinename; Connect Timeout=300; Max Pool Size=10"); conn.Open(); cmd = conn.CreateCommand(); cmd.CommandType = CommandType.StoredProcedure ; cmd.CommandText = "TestForCollation"; SqlParameter param1 = new SqlParameter("@MESSAGE",SqlDbType.NVarChar, 100); param1.Value= "Dhanaji"; param1.Direction = ParameterDirection.Input; cmd.Parameters.Add( param1 ); SqlParameter param2 = new SqlParameter("@CATEGORY",SqlDbType.Char, 10); param1.Value= "Patil"; param1.Direction = ParameterDirection.Input; cmd.Parameters.Add( param2 ); adapter = new SqlDataAdapter((SqlCommand)cmd); adapter.Fill(ds); // here it throws exception
When i use VARCHAR data type or Output parameter in stored procedure it gives this error. For the stored procedure which has not any parameter or only input int parameter is executed sucessfully, Same SP is excuted sucessfully on local machine. I need urgent help
Also same code works on another database at remote place(QA database)
We have a .net 1.1 application that gets this both with MSDE and SSE but more with SSE.
It randomly crashes with this error on laptops where they have SSE or MSDE installed on the local computer. They're being referenced by the machineNameInstance because (Local)Instance had bugs in the past with network connections disappearing and us getting this error. Now we're getting this, especially with Intel Wireless Cards on a random but consistant basis.
Under SSE we've had to turn on tcp/ip to make our app run, which tells me that something is preventing it from using shared memory access, which I suspect is that we're not using (Local)Instance, so I tried switching it, and no dice, same problem.
Is anyone else getting this? It's driving us nuts!!!! (and pissing off customers)
Has anyone encountered this message while adding a SQL 6.5 box as a linked server in SQL 7.0?
Server: Msg 11, Level 16, State 1, Line 1 General network error. Check your network documentation.
Whether I create the linked server through Query Analyzer or Enterprise Management, I can't access any objects on the linked server because I encounter the message above.
I am having a problem with my DTS package, sometimes during loading i'm faced with this error 'General network error' , and the data loading failes and i have restart the loading again. The DTS is transfering data from 1 DB to another DB which resides on the same server. The DTS transfers about 50 to 100 k records each day. Can anyone help me to solve this linggering issue.
This is regarding the intermittent failure of communication between the application server and database server in one of our customer environment. Application error as well as SQL error log shows "General Network Error","Communication Link Failure". Please find below the server configuration
Application Server OS: Win 2003 server + Service Pack1, Standard Edition Database Server OS: Win 2003 server + Service Pack1, MS SQL Server 2000 + SP4
We have checked the Client/Server Network utility associated with SQL Server and found TCP/IP protocol is used in communication neither than Named Pipes. DSN is used. We have also followed and implemented as per one KB article which mentioned Win 2003 server's feature of preventing Denial of Service attacks (Chance may be there to prevent the valid login packets).We made the registry changes and disabled this feature. A scheduled job which updates the database happens every morning. Also backup was done using a backup utility which needs the exclusive access to DB. So we have asked the customer to use enterprise manager for back up the DB instead of using the other utility to backup. If any one have experienced the same issue, please let me know.
First of all, sorry for the cross post but i need a quick answer on this.
I am executing a CLR Stored Procedure from a Windows Mobile device and regularly get a general network error.
The stored procedure cycles through up to 70 tables, checking for any records between two dates. The LastUpdate field is in each one of the 70 tables and is indexed.
The mobile device regularly reports general network error, which is due to a timeout. Command timeout is now set to 10 minutes but the timeout still occurs.
The stored procedure appears to get stuck on a particular table. If I rebuild the index on this table, it will get past it but then get stuck on the next table.
I set up a maintenance plan to run every 5 minutes (extreme, I know!) but the indices would appear to corrupt (without any activity on the table) in less than this interval.
However, running the exact same query from SQL Server Management Studio works correctly every time and usually within 10 seconds.
I€™m sure that it has something to do with the indices but cannot seem to resolve the issue. It€™s even more confusing how only the mobile device is affected!
We have a VB6 app, with SQL2005 database, SQLOLEDB driver
We have it installed at many clients and normally works fine.
We've migrated one client from SQL2000 to SQL2005 and had to move the database to a new machine.
It's now running SQLExpress sp1, on a Win XP sp2 machine
The clients now frequently get either
a) SQL timeouts or b) Runtime Error€™2147467259 (80004005) [DBNETLIB][Connection Read(recv()).]General network error. Check your network document Errors I suspect it is something to do with connections not be released (even though we explicitely free them in the app). Where do I look ? Thanks Bruce
Hi, in our environment - Windows XP - SQL Server Express 2005 - Internet connection via TCP/IP protocol
The described network error occurs, when we unplug the network cable: [DBNETLIB][ConnectionWrite (send()).] General network error.
The affected database resides on the locally installed SQLExpress, it doesn't use any network connections. The error doesn't occur immediately, in most cases there are up to 30 seconds where data can be (correctly!) written to the recordset, but after that timeout the connetion is broken.
We already tried out the described workarounds: - disable named pipes protocol - set SynAttackProtect=0 in HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
The error doesn't occur with MSDE (SQL 2000) or under Vista.
We have a SQL 2005 clustered server (Microsoft Cluster Services) that is queried from 4 IIS6 Windows Server 2003 frontends. Each frontend runs both classic ASP apps connection with SQL Server ODBC and .NET2 apps connecting with System.Data.SqlClient. Ocassionaly we get a string of errors/timeouts opening a connection lasting maybe 2 minutes.
One the classic ASP apps we log one of these two errors:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation
or
Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver]Timeout expired on the ADODB.Connection.Open On the .NET2 apps we log Message Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
StackTrace at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at System.Web.SessionState.SqlSessionStateStore.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo)
I would like to supress an Informational error that SQL is returning when I run a stored proc that I created. The error message returned is:
Warning: Null value eliminated from aggregate.
The values returned from the stored proc are the results from a 'select * from #tmp_tbl". Before returning the values, I simply create the temp table, populate it and then run the select statement. Prior to getting my results, I get the error message. Can I suppress it and how?