473,503 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I check the length of a Field in a Table

Hi!,

I just want to display (in a DataGrid) the length and Type (e.g.
Type=Char Length=10) of all the fields in my database table. I have
already made a DataTable using the DataAdapter Fill command. So how
can I do it.

Your kind help will be highly appreciated.
cheers

SY
Nov 22 '05 #1
4 1371
read the database schema

http://www.dotnetextreme.com/code/getdbschema.asp

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Sajid" <sa*********@yahoo.com> wrote in message
news:e0**************************@posting.google.c om...
Hi!,

I just want to display (in a DataGrid) the length and Type (e.g.
Type=Char Length=10) of all the fields in my database table. I have
already made a DataTable using the DataAdapter Fill command. So how
can I do it.

Your kind help will be highly appreciated.
cheers

SY

Nov 22 '05 #2
read the database schema

http://www.dotnetextreme.com/code/getdbschema.asp

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Sajid" <sa*********@yahoo.com> wrote in message
news:e0**************************@posting.google.c om...
Hi!,

I just want to display (in a DataGrid) the length and Type (e.g.
Type=Char Length=10) of all the fields in my database table. I have
already made a DataTable using the DataAdapter Fill command. So how
can I do it.

Your kind help will be highly appreciated.
cheers

SY

Nov 22 '05 #3
Hi!,

Thanks for replying back. Is there any equivalent command available for ODBC?

cheers

SY

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<OQ**************@TK2MSFTNGP10.phx.gbl>...
read the database schema

http://www.dotnetextreme.com/code/getdbschema.asp

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Sajid" <sa*********@yahoo.com> wrote in message
news:e0**************************@posting.google.c om...
Hi!,

I just want to display (in a DataGrid) the length and Type (e.g.
Type=Char Length=10) of all the fields in my database table. I have
already made a DataTable using the DataAdapter Fill command. So how
can I do it.

Your kind help will be highly appreciated.
cheers

SY

Nov 22 '05 #4
Hi!,

Thanks for replying back. Is there any equivalent command available for ODBC?

cheers

SY

"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<OQ**************@TK2MSFTNGP10.phx.gbl>...
read the database schema

http://www.dotnetextreme.com/code/getdbschema.asp

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Sajid" <sa*********@yahoo.com> wrote in message
news:e0**************************@posting.google.c om...
Hi!,

I just want to display (in a DataGrid) the length and Type (e.g.
Type=Char Length=10) of all the fields in my database table. I have
already made a DataTable using the DataAdapter Fill command. So how
can I do it.

Your kind help will be highly appreciated.
cheers

SY

Nov 22 '05 #5

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

Similar topics

7
7373
by: Randell D. | last post by:
Folks, I've heard of buffer overflows being used/abused by hackers and believe one method to reduce this from happening is to check the length of my form data before writing it to my MySQL...
5
7415
by: Edward Mitchell | last post by:
I have a database with text string fields defined by varchar(nnn). When I request from the user the text from a textbox, I'd like to set the maximum number of characters in the textbox to the...
5
6299
by: Steve Wylie | last post by:
I am constructing an HTML questionnaire and one of the questions requires people to rate some choices from 1 to 5, where 1 is their favourite and 5 is their least favourite: Car Bus Taxi cab...
2
41248
by: Paul Telco | last post by:
Hello, I'm a new user designing a simple database to retrieve pre-prepared docunents for printing. I have five tables, a form to design the documents, a form to customise and retrieve the...
5
24596
by: Krechting | last post by:
Hi ALl, I have a code that checks if the documents in a hyperlink field are still where they should be. I use fileexist(). First I want to filter out all the hyperlink fields that are empty. I...
2
3308
by: Robert Fitzpatrick | last post by:
I have a field in my pgsql 7.4.2 table that is char(6) type. This holds an ID that contains only numbers, but must be six characters in length. First two chars are the year followed by a sequential...
2
6941
by: John | last post by:
Hi Everyone, I have a question about dynamically changing the length of a varchar(n) field, in case the value I'm trying to insert is too big and will give a "truncated" error, but before the...
3
3837
by: imtmub | last post by:
Hi All, I am facing some problem in the field data(Description field in Item table). In that table one field(Description field)data legth is 255 and type: nvarchar. In some operation this field data...
4
2092
by: plumba | last post by:
Let me explain.... I have a form (most of which you guys have helped me with!!). The initial problem I was having is that it was holding the data in the fields after submit, I resolved this by...
1
5169
by: Anuj | last post by:
Hi, since sometime I'm stuck in a problem where I want to check or uncheck all the checkboxes. If I'm choosing name for the checkbox array as 'chkbx_ary' then I'm able to check/uncheck all the...
0
7199
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
7322
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...
1
6982
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...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.