Comments (6)
Just a simple addition to hopefully make the closing of this issue easier.
Tracking down the logic from the Get-DbaDependency
through the used there SMO
classes/objects I believe that the method used is the buildin views method and I believe so due to the use of sys.sql_expression_dependencies through-out the SMO
repo.
from dbatools.
@ReeceGoding / @userwiths : dbatools uses SMO, and that command uses dependency tracking via SMO just like SSMS does. This means that if SMO is able to trace dependencies dbatools will, too. Excluding bugs, that means basically that everything is within scope EXCEPT dynamic sql, where it's quite impossible to track down dependencies .... would a "This command uses SMO to track dependencies, so everything except dynamic sql" note on the help suffice ?
from dbatools.
Works for me, might want to wait and hear back from OP tho.
from dbatools.
@niphlod That works for me. Ideally, a hyperlink to the relevant SMO's docs would also be included.
from dbatools.
@ReeceGoding , something like https://learn.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.management.smo.dependencywalker.discoverdependencies?view=sql-smo-160 or https://github.com/microsoft/sqlmanagementobjects/blob/main/src/Microsoft/SqlServer/Management/Smo/DependencyWalker.cs is okay ? dunno how much "clear" it'd be , even linking it.
from dbatools.
@niphlod Yeah, that's all that I had in mind. I was hoping that there would be a smoking gun showing a DMV clearly being used, but what you have found is the best we'll get.
from dbatools.
Related Issues (20)
- test-dbalastbackup dates of backup files outputs Dataplat.Dbatools.Utility.DbaDateTime[] HOT 14
- Backup-DbaDbMasterKey missing file extention in Filename property HOT 1
- `New-DbaDbUser` - Multiple `-SqlInstance` Without `-Database` Doesn't Add User To All Dbs HOT 3
- Backup-DbaDatabase : ERROR The length of the device name provided exceeds supported limit (maximum length is:259) when database name is long HOT 15
- Issues while passing Computer name parameter of type Dataplat.Dbatools.Parameter.DbaInstanceParameter[] using variable in update-dbainstance HOT 2
- Install-DbaInstance and Set-DbaPrivilege: Which account should be used to grant SeManageVolumePrivilege?
- Backup-DbaDatabase : add a switch that will prevent to always append dbname in the directory backup path and strictly respect the given path variable.
- Get-DbaRegServer - SSMS upgraded from 19.x to 20.1, reading "old" RegisteredServersStore
- Add command to set the instance authentication mode
- Get-DbaHideInstance does not work on a system with named instance HOT 2
- Get-DbaDbBackupHistory - exception on data source length in connection HOT 4
- Issue with creating new directory when Invoke-DbaDbLogShipping. HOT 1
- Find-dbadbunusedindex | write-dbadbtabledata - Incorrect syntax near ')' HOT 7
- Azure Automation Account - issue loading the module HOT 6
- Odd Experience when using Connect-DbaInstance HOT 3
- Test-DbaWindowsLogin add property on account name mismatch HOT 3
- Invoke-DbaQuery's parameter list is oddly formatted. This appears to break the online docs and Get-Help. HOT 7
- Update-DbaInstance can not use secure PS Remoting
- dbatools.io / github Slack Invite has expired (again) HOT 1
- Copy-DbaAgentJob fails when trying to copy CDC jobs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbatools.