What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 26551 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > SQL Server > How to find out the particular string used by tables ...
Self-Innovator

How to find out the particular string used by tables

 Code Snippet posted by: Self-Innovator | Posted on: 10/15/2012 | Category: SQL Server Codes | Views: 323 | Status: [Member] | Points: 40 | Alert Moderator   


Hi,
The below code is to find out the specific records consumed by list of tables in a Database sql Server 2008.
Ex:- Search for string 'INDIA'
SELECT Tbl.NAME AS TABLE_NAME,SCHEMA_NAME(SCHEMA_ID) AS SCHEMA_NAME,Cln.NAME AS COLUMN_NAME FROM SYS.tables AS Tbl

INNER JOIN
SYS.columns as Cln ON Tbl.object_id=Cln.object_id WHERE Cln.name LIKE 'INDIA%'


Join Hands Change lives
Thanks & Regards
Straight Edge Society
Found interesting? Add this to:


>> 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/21/2013 1:30:48 PM