473,378 Members | 1,507 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,378 software developers and data experts.

doesnt display char type data field length 1

Hi
I m facing strange problem...
I have one field char type data length 1..
It has data either 1 or 2 in all the field tht I have
checked through enterprise manager.

I'm running query
"select * from table" and fetching all the records and
displaying...
It display all the data except data from this
field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?
Any help would be grateful.
Thanx

dave
Jul 19 '05 #1
2 2073
What happens when you just do "select [fieldname] from table?"

And then you do:

Response.Write rs.Fields.Item(0).Value

Ray at home

"dave" <an*******@discussions.microsoft.com> wrote in message
news:18*****************************@phx.gbl...
Hi
I m facing strange problem...
I have one field char type data length 1..
It has data either 1 or 2 in all the field tht I have
checked through enterprise manager.

I'm running query
"select * from table" and fetching all the records and
displaying...
It display all the data except data from this
field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?
Any help would be grateful.
Thanx

dave

Jul 19 '05 #2
Thanx
I found the what the problme was.
Previous field containing null data so it was affecting
next field data...
my code was
<td><%=rs("field0")%></td>
<td><%=rs(field1)%></td>
now if field0 contains null value, then it also doesnt
display field1 data..very strange isnt it??
neway, i found it so no proble..
thanx for your help
dave
-----Original Message-----
What happens when you just do "select [fieldname] from table?"
And then you do:

Response.Write rs.Fields.Item(0).Value

Ray at home

"dave" <an*******@discussions.microsoft.com> wrote in messagenews:18*****************************@phx.gbl...
Hi
I m facing strange problem...
I have one field char type data length 1..
It has data either 1 or 2 in all the field tht I have
checked through enterprise manager.

I'm running query
"select * from table" and fetching all the records and
displaying...
It display all the data except data from this
field..Doesnt display anything..

I had put Response.write rs("fieldname")

What could be the problem?
Any help would be grateful.
Thanx

dave

.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prithpal | last post by:
Please help!!! We had a sql server 7 DB, with a char 8 field, in which some of the data was only 7 characters in length. Via a type 4 JDBC driver, we got back a NON space padded String. This...
23
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H...
2
by: Miss Livvy | last post by:
Would it be OK to use varchar(5) instead of char(5) as the first field of a composite clustered index? My gut tells me that varchar would be a bad idea, but I am not finding much information on...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
10
by: Techie | last post by:
what's the difference of the two data types?
0
by: maheshmohta | last post by:
Background Often while remodeling legacy application, one of the important tasks for the architects is to have an optimum usage of storage capabilities of database. Most of the legacy applications...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.