Skip to content

Instantly share code, notes, and snippets.

View TimothyK's full-sized avatar

Timothy Klenke TimothyK

  • Edmonton, Alberta, Canada
View GitHub Profile
@TimothyK
TimothyK / FindById.snippet
Last active December 10, 2021 21:08
Search all rows in the database for an Id
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>id - Search All Tables for an Id</Title>
<Shortcut>id<!-- Not supported by MS SSMS yet --></Shortcut>
<Description>Search tables for a row</Description>
<Author>Timothy Klenke</Author>
<SnippetTypes><SnippetType>Expansion</SnippetType></SnippetTypes>
</Header>
@TimothyK
TimothyK / ColumnSearch.sql
Last active July 6, 2021 04:31
Search for columns and add descriptions to columns
/* Script: Column Search with Descriptions
** Author: Timothy Klenke
** Date: 2014-02-27
** License: Public domain, unlicenced
**/
Select
--** Schema Name
--sch.name As 'Schema',
--** TableName
/* Script: Column Search
** Author: Timothy Klenke
** Date: 2014-02-16
** License: Public domain, unlicenced
**/
Select
--sch.name As 'Schema',
obj.name As 'Table',
col.name As 'Column'