473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Query giving different results between Query Analyzer and ASP Page

3
I am successful pulling the appropriate data from a database table and a view (which contains 2 tables) via SQL query tool. However, when I make the selection from my ASP code, several fields will come back empty. There is no difference in the query generated via the code (I've cut/pasted) and what gets run into the query tool. Has anyone else experienced getting back empty fields, but you know that there really is data?

I have the code at work and will add tomorrow, if that would be helpful. But my first real question is if anyone else has experienced data not being returned when it is in the database.

My code is written in ASP and is for displaying on a web page. Not sure if I should post this question on ASP or SQL, so I'll try both! Thank you!
Jun 5 '07 #1
3 1467
Motoma
3,237 Expert 2GB
I am successful pulling the appropriate data from a database table and a view (which contains 2 tables) via SQL query tool. However, when I make the selection from my ASP code, several fields will come back empty. There is no difference in the query generated via the code (I've cut/pasted) and what gets run into the query tool. Has anyone else experienced getting back empty fields, but you know that there really is data?

I have the code at work and will add tomorrow, if that would be helpful. But my first real question is if anyone else has experienced data not being returned when it is in the database.

My code is written in ASP and is for displaying on a web page. Not sure if I should post this question on ASP or SQL, so I'll try both! Thank you!
I am not sure what could be causing this...You say that the full result set is returned when you run the query through Query Analyzer?
Jun 5 '07 #2
Torie
3
I am not sure what could be causing this...You say that the full result set is returned when you run the query through Query Analyzer?
Yes! It's the weirdest thing. The only thing I can narrow it in on is that there is too much data being returned? Is there a limit to how many variables can be retrieved? Also, one of the items being returned is a TEXT data type. Perhaps that throws a monkey wrench into it?
Jun 6 '07 #3
Motoma
3,237 Expert 2GB
I have renamed this thread to have a more descriptive title, and moved it to the ASP forum with the hopes that someone there will have encountered a similar situation.
Jun 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Not4u | last post by:
Hello I have a SQL 2000 server, the server setting is default language : French and all Collation names in French If i launch the 'Query Analyzer' from the SQL Entreprise Manager on my...
4
by: laurenq uantrell | last post by:
I am trying to determine which of three stored procedure designs are fastest in the Query Analyzer: One query is a straight SELECT query with all desired rows and a dozen (tblName.RowName =...
6
by: Steven D.Arnold | last post by:
I have a query which does not use column indexes that it should use. I have discovered some interesting behaviors of Postgres which may indicate a bug in the database's query planning. Take a...
0
by: billchalmers | last post by:
I am using sql 2005 express and I have a strange proble, when I execute a stored procedure from the query window I get the results I expect, but when I execute it from an asp page then I get a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.