Posts

Showing posts from October, 2011

For Searching a specific columns or fields name in the whole database.

If you want to search a specific column in the whole database in sql server then you can the following query: select * from INFORMATION_SCHEMA.COLUMNS where COLUMN_NAME like   '%yourColumnName%' in the place of yourColumnName between the Percent sign you have to write the column name which you want to search

Only For Me.....

where PropPropertySubtype.Description in ('Class A','Class B') and PropProperty.PropertyID in    (SELECT PROPERTYID FROM DBO.FN_SEARCHPROPERTYID(@SearchID,1)) 

For displaying only date and eliminating time from date in SSRS

For displaying only date and eliminating time from date in SSRS =formatdatetime(Parameters!ReportDate.Value,dateformat.shortdate) =formatdatetime(Fields!ReportDate.Value,dateformat.shortdate) use appropriate from above two formulas. " dateformat.shortdate " will show only date value and eliminate time from it. and it will be used in " formatdatetime " function.

For Retrieving all Databases information

There are three methods for retrieving data base information in sql server. EXEC sp_databases EXEC sp_helpdb SELECT *  FROM sys.sysdatabases order by name