473,401 Members | 2,146 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,401 software developers and data experts.

How list out all tables in MS SQL?

hi,
In Oracle SQL command, if i want to list out all the tables in a database, i will use ' SELECT * FROM TABS".
But then for MS SQL, what command should I use?
Hope some expertise in sql can help me in this....
Thanks a lot in advance...
Apr 17 '07 #1
4 14032
bartonc
6,596 Expert 4TB
hi,
In Oracle SQL command, if i want to list out all the tables in a database, i will use ' SELECT * FROM TABS".
But then for MS SQL, what command should I use?
Hope some expertise in sql can help me in this....
Thanks a lot in advance...
Not sure; let's ask in the MS SQL Forum, shall we...[from Member Introducutions]
Apr 17 '07 #2
iburyak
1,017 Expert 512MB
Try this:

[PHP]Select name from sysobjects where type like 'u'[/PHP]

type like 'u' - means user_table.


Good Luck.
Apr 17 '07 #3
SELECT sys.sysobjects.name AS tname
FROM sys.sysobjects LEFT OUTER JOIN
sys.sysusers ON sys.sysobjects.uid = sys.sysusers.uid
WHERE (sys.sysobjects.type = 'U')
Apr 18 '07 #4
Hi,

I am also coming from an Oracle background and found this page really useful;


http://vyaskn.tripod.com/oracle_sql_server_differences_equivalents.htm

It lists out the equivalent SQL commands/code etc and also has articke for works arounds when there is no equivalent.

Good luck, hope it helps!

Hannah
Apr 20 '07 #5

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

Similar topics

1
by: Not Me | last post by:
Hi, I'm sure this is a common problem.. to create a single field from a whole column, where each row would be separated by a comma. I can do this for a specified table, and column.. and I've...
0
by: picander77 | last post by:
Hello! I need to perform the following operation on an XML document: I have a first element containing a list of team (<Teams>). A name is assigned to all teams, as well as a list of their...
8
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. ...
2
by: Brian Henry | last post by:
I am working on a internal intranet site, and i need to make a permissions page, all the account authorization is done through AD to let them see the intranet site.. now, the permissions page i...
5
by: Javed | last post by:
Hi, is there a way to get a list of tables in MDB file? Ideally I want to write an SQL similar to 'select * from tab' of oracle.
5
by: Lee Brotzman | last post by:
Hi, I have a sequence of data tables in an ordered list, like this: <ol> <li><table></table></li> <li><table></table></li> </ol> However it renders on the page with the list item number...
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
3
by: Robertf987 | last post by:
Well, I think I've described what I want to do in the title here. In the database, I have two main tables that contain the main data for the database. One for group expenditures, another for...
2
by: Lysander | last post by:
I have not seen this feature documented before, so I thought I would share it with you, as I will be using it in a later article. For a combo or list box, the source data is normally a...
1
by: raam | last post by:
hi I have a list box with some country names from database. when i click search button the "country" list selecteditem should be selected. but it is not. here is my code where iam using a...
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: 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: 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
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
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...

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.