{"id":15003363,"url":"https://github.com/mattddowney/posh-sql-objects","last_synced_at":"2026-03-17T13:18:27.063Z","repository":{"id":139545372,"uuid":"74916553","full_name":"mattddowney/posh-sql-objects","owner":"mattddowney","description":"Powershell module for interacting with MS SQL Server system tables","archived":false,"fork":false,"pushed_at":"2016-12-31T18:07:46.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T14:22:20.739Z","etag":null,"topics":["database","database-management","database-objects","database-schema","db-tool","ms-sql-server","powershell","schema","stored-procedures","system-tables","trigger"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattddowney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-27T21:52:22.000Z","updated_at":"2017-02-25T19:10:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"60fb84d9-5dd9-4a32-abfc-c29b5c354746","html_url":"https://github.com/mattddowney/posh-sql-objects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fposh-sql-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fposh-sql-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fposh-sql-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattddowney%2Fposh-sql-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattddowney","download_url":"https://codeload.github.com/mattddowney/posh-sql-objects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243154732,"owners_count":20244984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","database-management","database-objects","database-schema","db-tool","ms-sql-server","powershell","schema","stored-procedures","system-tables","trigger"],"created_at":"2024-09-24T18:58:07.446Z","updated_at":"2025-12-25T13:47:50.426Z","avatar_url":"https://github.com/mattddowney.png","language":"PowerShell","readme":"# PoSh SQL Objects #\n\nConvenience functions for interacting with MS SQL Server's system tables.\n\nUseful for:\n* Searching a database for objects (stored procedures, functions, views) containing text\n* Getting object definitions of all objects in a database\n* Getting the names of all objects in a database\n\n## Installation ##\n\nRun the following in a command prompt:\n\n`Powershell.exe -file install.ps1`\n\nThis just copies the posh-sql-objects folder to your modules folder.\n\nImport the module into powershell:\n\n`Import-Module -Name posh-sql-objects`\n\n## Methods / Usage ##\n\n### Find-DbObjects ###\nFind objects whose definitions contain the string \"text\" in a database:\n\n`Find-DbObjects -Server ServerName -Database DbName -DefinitionText \"text\"`\n\n### Get-Dbs ###\nList a server's databases:\n\n`Get-Dbs -Server ServerName`\n\n### Get-DbSchemas ###\nList schemas on a database:\n\n`Get-DbSchemas -Server ServerName -Database DbName`\n\n### Get-DbObjects ###\nList all the objects on a database:\n\n`Get-DbObjects -Server ServerName -Database DbName`\n\n### Get-DbObjects ###\nList all the objects in a particular database schema:\n\n`Get-DbObjects -Server ServerName -Database DbName -Schema SchemaName`\n\n### Get-DbObjectDefinition ###\nGet the definition (source code) of a particular object:\n\n`Get-DbObjectDefinition -Server ServerName -Database DbName -Name ObjectName`\n\n### Get-DbFunctions ###\nList all the functions on a database:\n\n`Get-DbFunctions -Server ServerName -Database DbName`\n\n### Get-DbFunctionDefinitions ###\nGet the definition (source code) for all functions on a database:\n\n`Get-DbFunctionDefinitions -Server ServerName -Database DbName`\n\n### Get-DbStoredProcedures ###\nList all the stored procedures on a database:\n\n`Get-DbStoredProcedures -Server ServerName -Database DbName`\n\n### Get-DbStoredProcedureDefinitions ###\nGet the definition (source code) for all stored procedures on a database:\n\n`Get-DbStoredProcedureDefinitions -Server ServerName -Database DbName`\n\n### Get-DbTriggers ###\nList all the triggers on a databse:\n\n`Get-DbTriggers -Server ServerName -Database DbName`\n\n### Get-DbTriggersDefinitions ###\nGet the definition (source code) for all triggers on a database:\n\n`Get-DbTriggersDefinitions -Server ServerName -Database DbName`\n\n### Get-DbViews ###\nList all the views on a databse:\n\n`Get-DbViews -Server ServerName -Database DbName`\n\n### Get-DbViewDefinitions ###\nGet the definition (source code) for all views on a database:\n\n`Get-DbViewDefinitions -Server ServerName -Database DbName`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattddowney%2Fposh-sql-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattddowney%2Fposh-sql-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattddowney%2Fposh-sql-objects/lists"}