Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Scrambled" results from remote stored procedure

Status
Not open for further replies.

stevemiles

IS-IT--Management
Jul 28, 2003
1
US
I'm running into an issue where a stored procedure reverses the order of my print statements in its output - but only when it is run remotely. I've included a simplified example below.

Both servers are MSSQL 7.0.

Any help or thoughts are appreciated :)

CREATE PROC spTest AS
PRINT "a"
PRINT "b"
GO

-- executed locally
exec spTest
/*
Output is:
a
b
*/

-- executed remotely
exec Server.DB.User.spTest
/*
Output is:
b
a
*/
 
I tried to reproduce this behaviour between two SQL 2000 machines, but that works just fine. So I thought it's a sql 7 thing and tried that, but it's fine too.
Do you have the latest Service pack for SQL and MDAC installed on both machines ?

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top