![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 |
|
|||
|
Re: Data returned by SQL Server ODBC driver is not correct
On 5 Aug, 14:57, woak...@googlemail.com wrote:
> 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. |
|
|||
|
Re: Data returned by SQL Server ODBC driver is not correct
(woakesd@googlemail.com) writes:
> On 5 Aug, 14:57, woak...@googlemail.com wrote: >> 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 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|