Bad Token from SQL Server

Bad Token from SQL Server

Post by Steven Kast » Sun, 23 Feb 1997 04:00:00



Server:  NT Server 4.0 (SP2), SQL Server 6.5 (SP2)
Client:  NT Workstation 4.0 (No SP), Client app in PB5 & iSQL/w

Clients can run 1-3 queries fine, then client apps die.
iSQL/w generates Dr. Watson.
PB5 app returns error message:

        Bad token from SQL Server: Datastream processing out of         synchronization.

We have looked at all configuration info and have been unable to find
problems.  All systems are using same NIC with same driver version and all
client apps have been functioning fine for about 6 months now.

Error messages just started appearing recently (within last 10 days).
Norton AV was installed about the time that error messages started
appearing.  We have since unistalled Norton AV, but the problems persist.

Any help on this would be greatly appreciated.

Regards,

Steve Kastl

 
 
 

Bad Token from SQL Server

Post by Neil Pik » Tue, 25 Feb 1997 04:00:00


Quote:

> Server:  NT Server 4.0 (SP2), SQL Server 6.5 (SP2)
> Client:  NT Workstation 4.0 (No SP), Client app in PB5 & iSQL/w

> Clients can run 1-3 queries fine, then client apps die.
> iSQL/w generates Dr. Watson.
> PB5 app returns error message:

>  Bad token from SQL Server: Datastream processing out of  synchronization.

Steve,

1.  Have all the clients had their db-lib/obdc drivers updated to 6.5 SP2
level?  
2.  This problem happens far more often with the tcp-ip protocol, especially
with sockets.  Can you use named-pipes instead?  In any case a network trace
will probably be needed to see where the error is.


 Protech Computing Ltd (MS Solution Provider)
 Using Virtual Access 3.52 build 159c (32-bit) on NT 4.0 SP2

 
 
 

Bad Token from SQL Server

Post by John OBrie » Wed, 26 Feb 1997 04:00:00


ISQL/W is a dblib application and I believe the PB has both dblib and ODBC
interfaces, so assuming that you go the dblib way check the following file
versions or later:

ntwdblib.dll 6.50.213 7/29/96
dbmssocn.dll 6.50.201
sqlsrv32.dll  2.65.0213 7/29/96

both on the 32 bit client and the server.  I don't think your using ODBC,
but if you are, and you are going tcp/ip sockets the dbmssocn.dll is being
used by sqlsrv32.dll

Also, this is indicative of a true network error, maybe a router.  Try the
NT tracert command and check the route that the client is taking for packet
loss, look for errors in the NT event log and the sql error log for
additional clues as to what is wrong.

Any network stop signs in the event log of the server are definately a
problem.

Also, Neil is right, try a different net lib, maybe pipes.




Quote:> Server:  NT Server 4.0 (SP2), SQL Server 6.5 (SP2)
> Client:  NT Workstation 4.0 (No SP), Client app in PB5 & iSQL/w

> Clients can run 1-3 queries fine, then client apps die.
> iSQL/w generates Dr. Watson.
> PB5 app returns error message:

>    Bad token from SQL Server: Datastream processing out of
synchronization.

> We have looked at all configuration info and have been unable to find
> problems.  All systems are using same NIC with same driver version and
all
> client apps have been functioning fine for about 6 months now.

> Error messages just started appearing recently (within last 10 days).
> Norton AV was installed about the time that error messages started
> appearing.  We have since unistalled Norton AV, but the problems persist.

> Any help on this would be greatly appreciated.

> Regards,

> Steve Kastl

 
 
 

Bad Token from SQL Server

Post by Steven Kast » Fri, 28 Feb 1997 04:00:00




> > Server:  NT Server 4.0 (SP2), SQL Server 6.5 (SP2)
> > Client:  NT Workstation 4.0 (No SP), Client app in PB5 & iSQL/w

> > Clients can run 1-3 queries fine, then client apps die.
> > iSQL/w generates Dr. Watson.
> > PB5 app returns error message:

> >  Bad token from SQL Server: Datastream processing out of
synchronization.

> Steve,

> 1.  Have all the clients had their db-lib/obdc drivers updated to 6.5 SP2
> level?  
> 2.  This problem happens far more often with the tcp-ip protocol,
especially
> with sockets.  Can you use named-pipes instead?  In any case a network
trace
> will probably be needed to see where the error is.


>  Protech Computing Ltd (MS Solution Provider)
>  Using Virtual Access 3.52 build 159c (32-bit) on NT 4.0 SP2

We are using named pipes and I have not had the opportunity to check the
dblib/odbc versions.  A check of the event log shows no stop errors or
strange happenings.

In the interest of functionality (not my decision, mind you) SQL was moved
to an NT Server 3.51 (no SP) machine.  Things are running fine, but the new
machine only has 32 MB RAM and things are going slow.

I noticed this new feature in SP2 for NTS 4.0:

"Microsoft also added two new API calls to NT 4.0, using SP2 as a delivery
vehicle. These two calls, ReadFileScatter() and WriteFileGather(), let
programs pull in data from an uncached file and store it in a discontiguous
buffer, and vice versa. They also give disk I/O-intensive applications such
as SQL Server and Internet Information Server (IIS) a serious performance
boost because you can now move data from memory to disk in one pass."

I am beginning to wonder if this is the culprit, or at least a contributing
factor.

Still trying to figure out why.

Steve Kastl

 
 
 

Bad Token from SQL Server

Post by Neil Pik » Fri, 28 Feb 1997 04:00:00


Steve,

Replied to earlier e-mail.  New api's are NOT used by SQL Server - not till v7
anyway.


 Protech Computing Ltd (MS Solution Provider)
 Using Virtual Access 3.52 build 159c (32-bit) on NT 4.0 SP2

 
 
 

1. Bad token from SQL Server

I am getting the following error when selecting from two different
tables.  The tables have a wide row.
"DB-Library: Possible network error: Bad token from SQL Server:
Datastream processing out of sync.
Net-Library error 0:"

I have found a article Q152128 in the KB that suggests that this error
does not happen with SQLServer 6.5.  Well, I am running SQLServer 6.5
sp3.

Any suggestions to get the data out?

Thanks Dave.....

2. sql recusion

3. Bad token from Sql Server; DataStream processing out of sync

4. Create Table woes

5. HELP!! Error: DB-Library: Possible network error: Bad token from SQL Server: Datastream

6. Subselects in Access97

7. Bad token from SQL Server: Datastream processing out of sync.

8. MSIDXS

9. Sql Server 6.0 Bad Token Error Problem Challenge

10. [ODBC SQL Server Driver]Unknown token received from SQL Server

11. Bad token: Datastream processing out of sync