473,508 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server 2005 Metadata

N002213F
39 New Member
Does SQL Server 2005 have system tables that you can select to see meta data about a table? I have seem such tables in Oracle.

I would like to retrieve certain tables properties for analysis and comparisons

Any pointers most appreciated
Oct 27 '08 #1
5 1903
debasisdas
8,127 Recognized Expert Expert
yes those are also available here.
Oct 27 '08 #2
N002213F
39 New Member
Some names or web page might help.

Thanks in advance
Oct 27 '08 #3
ck9663
2,878 Recognized Expert Specialist
Depending on the version of SQL Server you're working on, there's a table called sysobjects.

If you're working with SQL 2005, there's a view called sys.tables

So, try the following:

Expand|Select|Wrap|Line Numbers
  1. select * from sys.tables
  2.  
  3. select * from sysobjects

-- CK
Oct 27 '08 #4
N002213F
39 New Member
Found it;
Expand|Select|Wrap|Line Numbers
  1. SELECT NAME FROM SYS.TABLES ORDER BY NAME
and
Expand|Select|Wrap|Line Numbers
  1. EXEC SP_SPACEUSED[TABLENAME]
I used Java to do the the looping, will look at using SQL procedures.
Oct 28 '08 #5
N002213F
39 New Member
Depending on the version of SQL Server you're working on, there's a table called sysobjects.

If you're working with SQL 2005, there's a view called sys.tables

So, try the following:

Expand|Select|Wrap|Line Numbers
  1. select * from sys.tables
  2.  
  3. select * from sysobjects

-- CK
Thanks, if selecting from the sysobjects, one may have to specify the type, lest you get all the objects.
Oct 28 '08 #6

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

Similar topics

1
2908
by: Carl | last post by:
Be careful when implementing views (from SQL Server 97/2K). SQL Server stores the metadata on the view at creation (or the last time it was saved). This means if you have: SELECT * FROM table1 it...
5
3633
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
4
9410
by: jas | last post by:
I have a basic client/server socket situation setup....where the server accepts a connection and then waits for commands. On the client side, I create a socket, connect to the server...then I...
2
990
by: Steve Franks | last post by:
Hi All, The following code was working just fine in Visual Studio 2005 Beta 2, but breaks now that I've upgraded to the RC build: public void setMetaValues(string metaKey, string metaVal) {...
2
6533
by: kharless | last post by:
Greetings, If I use a "select into" to clone a table, all attributes are created correctly, however, if I use the same statement across a linked server, my identity column loses its IDENTITY...
2
3346
by: Thirsty Traveler | last post by:
I have an xml column in a SQL Server 2005 table that was populated with a DataSet. I would like to read that column back into a DataSet object but am not quire sure how. Any ideas?
6
16151
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
16
4894
by: Omar Abid | last post by:
Hi every body, Im using VB 2005 to create a program that open SQL Data base The problem that i want to detect the tables of a database so how can i know a data base tables instantly Thank you...
0
1349
by: Desmodromic | last post by:
Within the SQL Server 2005 BI product suite, where should metadata be held regarding database objects for reporting? What I mean is if a user is presented with a field called "start_date" then a...
2
2418
by: smileprince00 | last post by:
what are metadata fnctions....how they can help the programming thank you regards rohit
0
7118
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
7323
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,...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
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
4706
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
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
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
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
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.