Archive for August, 2012|Monthly archive page

SQL Server – Finding tables for column name

Needed to know which tables in the database I was working on had any FK columns I needed to consider. Here is a nice query to help.



USE [database-name]
GO

SELECT
    t.name AS Table_Name,
    SCHEMA_NAME(schema_id) AS Schema_Name,
    c.name AS Column_Name

FROM
    sys.tables AS t
        INNER JOIN sys.columns c
            ON t.OBJECT_ID = c.OBJECT_ID

WHERE c.name LIKE '%Service%'

ORDER BY Schema_Name, Table_Name;

 

 

Data Binding Frameworks

This came across my mailbox from our lead. for those who have used jQuery templates, this will make some sense. Dan Wahlin, also has a follow-up post with a simple yet gripping example of using AngularJS.

JsHint

JsHint

Ken brought my attention to this in July 2012. More in line with MS coding standards and assumes jQuery.