Showing posts with label client. Show all posts
Showing posts with label client. Show all posts

Tuesday, March 27, 2012

General Network Error

Hi Guys,

I'm using Native OLE DB\SQL 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.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q229/5/64.asp&NoWebContent=1

It may have to do with connection pooling, evidently they will not work well in OLE DB

General Network Error

Hi Guys,

I'm using Native OLE DB\SQL 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.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q229/5/64.asp&NoWebContent=1

It may have to do with connection pooling, evidently they will not work well in OLE DB

General network error

I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using a
TCP/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?

ThanksHi

Have you checked that there is not a network problem? Try a different port,
check no errors in the event log ...

John

"CD" <carl.davis@.gmail.com> wrote in message
news:fceeddde.0408270623.5c9c9fec@.posting.google.c om...
> I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using a
> TCP/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|||CD (carl.davis@.gmail.com) writes:
> I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using a
> TCP/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?

That's bad. It appears that your SQL Server thread experiences an
access violation, or other serious execution error and termintates
your thread. This could be because the backup is corrupt or because
of a hardware problem on the disk you are trying to restore to.

If you look in the SQL Server error, you should find a stack dump, but
it is unlikely that this will give you any useful information.

If you are in serious need of that data, you should open a case with
Microsoft.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||"CD" <carl.davis@.gmail.com> wrote in message
news:fceeddde.0408270623.5c9c9fec@.posting.google.c om...
> I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using a
> TCP/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

Check out
http://support.microsoft.com/defaul...2&Product=sql2k
as it relates specifically to your issue.

Kevin

General network Error

I have some Jobs in the sceduler with the same problem.
The error is General network Error
The Client and the SErveur are the same, Only database or
table change.
I can have the error at any time a day.
I can have this error with Sceduler or directly into DTS.
I use the protocole TCP-IP only.
SQL SERVEUR version :
Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003
Microsoft Corporation
Enterprise Edition on
Window's version :Windows NT 5.0 (Build 2195: Service Pack
4)
The last version of MDAC : MDAC 2.7 SP1 REFRESH with
Component Checker 2.0 from Microsoft.
---
-- E -- x -- e -- m -- p -- l -- e --
---
TSRun OnStart: DTSStep_DTSExecuteSQLTask_12
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_22
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_12
DTSRun OnStart: DTSStep_DTSDataPumpTask_15
DTSRun OnError: DTSStep_DTSDataPumpTask_15, Error = -
2147467259 (80004005)
Error string: [DBNETLIB][ConnectionWrite (send()).]
General network error. Check your network documentation.
Error source: Microsoft OLE DB Provider for SQL Server
Help file:
Help context: 0
Error Detail Records:
Error: -2147467259 (80004005); Provider Error: 11 (B)
Error string: [DBNETLIB][ConnectionWrite (send()).]
General network error. Check your network documentation.
Error source: Microsoft OLE DB Provider for SQL Server
Help file:
Help context: 0
DTSRun OnFinish: DTSStep_DTSDataPumpTask_15
DTSRun: Package execution complete.
---
Thanks for your help.Did you see any corresponding problems with your network card in the NT
System Even log?
Does the problem reproduce easily or is it only under stress?
Does the problem happen if you enable Named Pipes or create a Named Pipes
Alias on the machine?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||I try severall test with the network card on this Server=20
and on another servers and the result are comparable.
In the past I have Named Pipes network librairy but for=20
few days, I dont get the General Network Error.
I can reproduce the problem but generaly with only 3 or 4=20
main jobs. ( ~8 DTS packages )
I have alias with TCP-IP but I have uncheck named Pipe=20
because I always got the error when this librairy is=20
checked.=20
ThankS,
Dominic H=E9bert
quote:

>--Original Message--
>Did you see any corresponding problems with your network=20

card in the NT=20
quote:

>System Even log?
>Does the problem reproduce easily or is it only under=20

stress?
quote:

>Does the problem happen if you enable Named Pipes or=20

create a Named Pipes=20
quote:

>Alias on the machine?
>Thanks,
>Kevin McDonnell
>Microsoft Corporation
>This posting is provided AS IS with no warranties, and=20

confers no rights.
quote:

>
>.
>

Wednesday, March 21, 2012

Fuzzy Grouping Transform Corrupts Pass-through Data

We are working with a client and are using Fuzzy Group transform for de-duping, and hierarchy creation for a national account list.

I've found that if a large number of pass through columns are sent to the Fuzzy Grouping transforms it randomly corrupts the char columns.

Our work around was to only pass through ID columns and then build out the attributes needed from views against the Fuzzy group output however product team should take a look at this.
By corruption I mean random characters from other records would show up in character columns (we had address and name corruption in about 10% of a 1.5 million record dataset).

Thanks.

Michael Slater
Software Architects

Michael,

Thanks for your post. We have been unable to reproduce the problem you have reported in the new test cases that we have created for this issue. We would very much like to get to the bottom of what you are seeing. Can you please contact me directly so that we might work with you to find a better repro case that can be used to further investigate and fix this problem?

Please send an email to KrisGan@.microsoft.com

Thanks,
Kris Ganjamsql

Friday, March 9, 2012

function of drillthrough

Hi,


I can't visualize clearly what drillthrough is for. I dunno if this can cater what i'm looking for. basically, the client wants that from a default view to click on one of the dimensions and give him a more detailed view:

example:

GroupHeads Model No No.Of Units

A 1 10

B 2 14

C 2 20

Once the user clicks on the GroupHead A, he wants to see this detailed view:

Service Jobs Amount

1 10

2 20

3 50

4 11

....

10 9

Can this be done by drillthrough?

cherriesh

Hi,

The drillthrough functionality is used to drill into the a particular measure and produce a report based on the slice taken. So in your example above you might want to drill into the No.Of Units = 10, which is a slice of GroupHeads = A and Model No = 1

From that you can produce an output that makes up that value of 10 (you don't have to include the No.of Units) e.g. You might want to look at the service jobs, amount spent and the no units ordered:

Service Job Amount No.Of Units

2 12 5

8 36 2

10 1 3

If you slice it by something else e.g.

Year 2004 2005 2006

Service Job

A 12 10 11

B 22 20 21

C 32 30 31

If you drill through number 20, you will slice your drill through by year =2005 and service job = B e.g.

Service Job Amount No.Of Units

2 12 15

8 36 2

10 1 3

HTH

Matt

|||

Can drillthrough have more than 1 level? like after clicking on the first view, you click again on the 2nd view to show you another slice?

thanks a lot.

cherriesh

|||

Hi,

No you can only dril down once, unless you create an action to a report which in turn has the ability to drill down again in another report. But the standard drillthrough functionality I'm fairly sure you can't, as it takes you to the lowest level of granularity.

HTH

Matt

Wednesday, March 7, 2012

function causes a timeout

I have a function which is causing a time out it is only being used on 1700 records and the problem seems to happen in the afternoon The client gets the error on a live system and so do I on the dev system

ALTER FUNCTION[8977].[isClosed] (@.Irefnvarchar(30),@.clidint)
RETURNS BIT
AS/* if the event is closed return true */
BEGIN
RETURN(SELECTclosed
FROMdbo.tblOCompEvents
WHERE(ClientID = @.clid)AND(IRef = @.Iref)
GROUP BYclosed
HAVING(closed = 1))
END

I am using in like this
AND([8977].isClosed(tblOCompEvents.IRef, tblOCompEvents.ClientID)IS NULL)

I have taken the IRef Argument out still times out
I have changed it from IS NULL to = 0 and to = 1, all still cause a time out

any ideas please?

When you write a function like that, it is making SQL Server go through every row to evaluate the isClosed bit, and then go through your original query to evaluate the AND. Try incorporating the function logic into the WHERE clause instead of calling it like you are.|||

See if you can join this SQL statement to your original query and get the value of the function logic directly in the SELECT stmt.

|||

This would probably run much faster:

ALTER FUNCTION[8977].[isClosed] (@.Irefnvarchar(30),@.clidint)
RETURNS BIT
AS/* if the event is closed return true */
BEGIN
RETURN(SELECT TOP 1closed
FROMdbo.tblOCompEvents
WHERE(ClientID = @.clid)AND(IRef = @.Iref) AND (closed = 1))
END

This may be even faster yet, but you need to do some performance testing.

CREATEFUNCTION [8977].[isClosed](@.Irefnvarchar(30),@.clidint)

RETURNSBIT

AS/* if the event is closed return true */

BEGIN

IFEXISTS(SELECT closedFROM dbo.tblOCompEvents

WHERE(ClientID= @.clid)AND(IRef= @.Iref)AND(closed= 1))

RETURN 1

ELSE

RETURN 0

END

Ultimately, changing your where clause to something like:

WHERE NOT EXISTS(SELECT closedFROM dbo.tblOCompEventsWHERE(ClientID= @.clid)AND(IRef= @.Iref)AND(closed= 1))

would be much much faster than using a scalar function. You can also change your query to use a join like:

SELECT ...

FROM ... a

LEFT JOIN dbo.tblOCompEvents e ON a.ClientID=e.ClientID AND a.IRef=e.IRef AND e.Closed=1

WHERE ...

AND e.ClientID IS NULL

|||

yes I suspected that was part of the problem

Thanks

|||

tried that thanks but I think the function it's self is not right

|||

thanks but I think it is more fundemental than that I don't think the function is doing what I want. it is working fine now there is less pressure on the server (after 5pm in the UK)

But I am sure I could do better
these are the rows

clientid1,row 1, false, ref1
clientid2,row 2, false, ref2
clientid2,row 2, false, ref2
clientid2,row 4, true, ref2
clientid1,row 5, false, ref1

if a series of rows have the same ref and the same client id and JUST one of the rows is trueref2 then return true if the series of rows are all false then return false
However in this case I think it will be better to return the client id and use that to include or exclude clients

|||

The function does achieve your goals, but it's very very inefficient. Any of the above 3 methods I gave will greatly reduce the resources needed to run your queries.

Is this possible?

clientid1,row 1, false, ref1
clientid2,row 2, false, ref2
clientid2,row 3, false, ref2
clientid2,row 4, true, ref2
clientid1,row 5, false, ref1
clientid2,row 6, false, ref2
clientid2,row 7, false, ref2

If so, what should it return? You said if a series of rows have the same ref and the same client id, which there are two series of rows, one series has a true, the other does not. Or did I misunderstand?

|||

your example is possible and client2 ref2 would return true and client1 ref1 false you do understand it

I have tried you option :
NOT EXISTS(SELECTclosedFROMdbo.tblOCompEventsWHERE(ClientID = dbo.tblClients.ClientID)AND(IRef = tblOCompEvents.Iref)AND(closed = 1))

thanks