What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 6003 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > SQL Server > Find out How many columns in Table of a same database ...
Dotnet4ashu

Find out How many columns in Table of a same database

 Code Snippet posted by: Dotnet4ashu | Posted on: 6/2/2012 | Category: SQL Server Codes | Views: 547 | Status: [Member] | Points: 40 | Alert Moderator   


hello friends,

I declaring a new query for finding out how many columns of a table in the same database

select * from sys.columns where object_name(object_id)='table name'

for example

select * from sys.columns where object_name(object_id)='resale'



I hope you will get better knowledge...................

Himanshu Sharma
If you see Dreams then Get Success On Dreams.....
Found interesting? Add this to:


 Responses

Pragati
Posted by: Pragati | Posted on: 6/4/2012 | Level: Starter | Status: [Member] | Points: 10 | Alert Moderator 

hi..
how can we find out how many columns of a table in the same database in oracle...

Pragati

Dhiren.Kaunar@Gmail.Com
Posted by: Dhiren.Kaunar@Gmail.Com | Posted on: 6/12/2012 | Level: Starter | Status: [Member] | Points: 10 | Alert Moderator 

Pragati,
Please find the below link which may be the answer of your question
http://www.dotnetfunda.com/codes/code2653-how-to-find-number-of-column-in-a-table-in-different-database.aspx

Thanks & Rgards,
Dhiren Kumar Kaunar

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 3:41:24 PM