473,804 Members | 2,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File / table description.

MF
Newby question but can't find it myself.

How can I get a file-description from a file / table ?

eg. the decription must deliver the following info:

Record nr.
Field nr.
Fieldname
Field description
Data type
Lenght
Decimals

etc....

Can somebody please tell me what to do?

Thanx
MF
Aug 24 '05 #1
5 3142
Is this?

Select * from information_sch ema.columns where table_name='you rTable'

Madhivanan

Aug 24 '05 #2
MF
Madhivanan wrote:
Is this?

Select * from information_sch ema.columns where table_name='you rTable'

Madhivanan


Doesn't work, but thanx for the response.
Aug 24 '05 #3
You'll probably have to combine a few different things to get those
details - check out sysobjects, syscolumns, object_name(),
objectproperty( ), columnproperty( ) and fn_listextended property() in
Books Online. You could also have a look at the source for sp_help,
which returns most of the items you're interested in.

If you can't work out what you're looking for, I suggest you post a
simple CREATE TABLE statement (or perhaps use to a table in the pubs
database as an example), and show what your desired output would look
like for that table - that will probably be clearer than a description.
You might also want to clarify why Madhivanan's suggestion didn't work
for you.

Simon

Aug 24 '05 #4
Madhivanan (ma************ @gmail.com) writes:
Is this?

Select * from information_sch ema.columns where table_name='you rTable'


Select * from INFORMATION_SCH EMA.COLUMNS where TABLE_NAME='you rTable'

This matter with a case-sensitive collation. And the names in
INFORMATION_SCH EMA is all in uppercase.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Aug 24 '05 #5
MF
Thanx a lot all of you. I was looking in the Master db for these files,
combining them will be difficult but I'll give it a try.

TY
Simon Hayes wrote:
You'll probably have to combine a few different things to get those
details - check out sysobjects, syscolumns, object_name(),
objectproperty( ), columnproperty( ) and fn_listextended property() in
Books Online. You could also have a look at the source for sp_help,
which returns most of the items you're interested in.

If you can't work out what you're looking for, I suggest you post a
simple CREATE TABLE statement (or perhaps use to a table in the pubs
database as an example), and show what your desired output would look
like for that table - that will probably be clearer than a description.
You might also want to clarify why Madhivanan's suggestion didn't work
for you.

Simon


Aug 25 '05 #6

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

Similar topics

3
711
by: Phillip Parr | last post by:
I'm trying to get a file upload to work and it's not happening. Here's my form code... echo '<form enctype="multipart/form-data" action="catalogue.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="204800"> <table border="0" width="100%"> <tr> <td width=100%> <center>
5
3307
by: Scott Tilton | last post by:
I am having a terrible time getting this to work. I am hoping someone out there can help me with very specific code examples. I am trying to get the linked tables in my Access 97 database to be updated whenever the database opens. I need to have them updated based on an INI file that resides in the same directory as the current database. I do not need or want the ability to open a dialog box to pick the location. I simply want it to...
2
1510
by: Alan Silver | last post by:
Hello, I am just trying out reading an XML file in an ASP.NET page, but am having a little trouble. I'm sure this is something really obvious and dumb, but I can't see what ... I have an XML file that contains some site map info (see further down), and I have written a page to read this in and display the contents. I put it into a datagrid and also use a repeater (the former was a quick way of seeing what happened, the latter was in...
2
5783
by: john_aspinall | last post by:
Here's the overview: Im building an eCommerce web site using ASP. It has an Access DB at the back end. Im receiving the Product info from a series of CSV files. Ive created a Table in Access called 'Products' and the two fields which concern me are called 'ProductID' and 'Price'. The product prices change regularly, sometimes quaterly. The updated prices will be received in the CSV file. Here's the problem:
1
6535
by: vj | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file? I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to java class which creates a xml file based on values entered in dynamic jsp page. Now i want to read all those values entered to xml in my other jsp page. I am able to call values from file in my jsp page. But as dynamic values can be any in no...
6
2182
by: fpcreator2000 | last post by:
Hello everyone. I'm having problems with a page I've created that is used to insert data into a database. It uploads two files into two distinct folder, and it takes the filenames and inserts them into a MYSQL database along with other product information. Here is the entire .php file. I list it because the errors are not showing at all, and I need a fresh pair of eyes to look at it. Any answers, critisims (constructive), or other talk...
2
7655
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
4
2939
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of text and I can't find the error on why it isn't working. Any help is greatly appreciated. Here is the form
1
1774
by: raghudr | last post by:
Hi all, I am parsing an .xml file.My main intention is to retrieve the field value:- "Name Value" which is "rag" and store it in a List. Fot that i wrote code like this: //i am using dataset method to read the .xml files
14
3212
by: jeddiki | last post by:
Hi, I am looking at a download from clickbank and I notice that it has two files, a very small on suffixed with .dtd which I list below, and a huge file 26 Mb suffixed with .xml ( not sure if I should use the "code" tags for these files–yes, you should, Mod) Here is the .dtd <!ELEMENT Catalog ( Category* ) >
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9576
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5516
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4292
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 we have to send another system
3
2988
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.