Connecting Tech Pros Worldwide Help | Site Map

Data returned by SQL Server ODBC driver is not correct

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 5th, 2008, 02:05 PM
woakesd@googlemail.com
Guest
 
Posts: n/a
Default Data returned by SQL Server ODBC driver is not correct

I've a query which happily returns a full set of data when run in SQL
Studio but when I do the same query using IIS with Classic ASP
connected via ODBC's SQL Server driver (not the native one) numbers
returned to the record set are filled with 0 and strings are empty
exept for a few rows.

This is happening in IIS 5.1 and IIS 6.0 when the database is on a
seperate machine. With IIS 5.1 and SQL Server 2005 Developer Edition
on the same machine (XP Professional) the query results are as
expected.

I can't even think of what to check or search for!

David

  #2  
Old August 5th, 2008, 03:55 PM
woakesd@googlemail.com
Guest
 
Posts: n/a
Default Re: Data returned by SQL Server ODBC driver is not correct

On 5 Aug, 14:57, woak...@googlemail.com wrote:
Quote:
I've a query which happily returns a full set of data when run in SQL
Studio but when I do the same query using IIS with Classic ASP
connected via ODBC's SQL Server driver (not the native one) numbers
returned to the record set are filled with 0 and strings are empty
exept for a few rows.
>
This is happening in IIS 5.1 and IIS 6.0 when the database is on a
seperate machine. *With IIS 5.1 and SQL Server 2005 Developer Edition
on the same machine (XP Professional) the query results are as
expected.
>
I can't even think of what to check or search for!
>
David
I noticed that the connection used had a transaction with deletes
pending and so I decided to create a second connection
and lo and behold the query returned the correct results.

The code was working perfectly with SQL Server 2000 so I remain very
concerned and would appreciate some help.
  #3  
Old August 5th, 2008, 09:35 PM
Erland Sommarskog
Guest
 
Posts: n/a
Default Re: Data returned by SQL Server ODBC driver is not correct

(woakesd@googlemail.com) writes:
Quote:
On 5 Aug, 14:57, woak...@googlemail.com wrote:
Quote:
>I've a query which happily returns a full set of data when run in SQL
>Studio but when I do the same query using IIS with Classic ASP
>connected via ODBC's SQL Server driver (not the native one) numbers
>returned to the record set are filled with 0 and strings are empty
>exept for a few rows.
>>
>This is happening in IIS 5.1 and IIS 6.0 when the database is on a
>seperate machine. *With IIS 5.1 and SQL Server 2005 Developer Edition
>on the same machine (XP Professional) the query results are as
>expected.
>>
>I can't even think of what to check or search for!
>>
>David
>
I noticed that the connection used had a transaction with deletes
pending and so I decided to create a second connection
and lo and behold the query returned the correct results.
>
The code was working perfectly with SQL Server 2000 so I remain very
concerned and would appreciate some help.
In such case, you need to be a whole lot more specific. You could start
us showing the code that is freaking out for you. Don't forget the
connection string!


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.