1) Fadenkreuz auf das Fenster der WPF Anwendung drag & droppen => Fenster mit GUI-Baum der WPF App öffnet sich
2) mit CRT-SHIFT Mause over wird das Control, über dem sich die Maus befindet im Snoop GUI Baum ausgewählt
3) Datacontext zeigt View Model an
meine Sys/Db admin & Developper Notitzen - wer Rechtschreibfehler findet darf sie behalten ... my Sys/Db Admin and developper notes - I don't care about typos
Monday, February 25, 2019
Wednesday, February 20, 2019
powershell Ja Nein (Yes No)
1) mit GridView
$Answer = "J","N" | Out-GridView -PassThru -Title "Obige Schichten wirklich löschen ?"2) mit Read-Host
do{
$Answer = Read-Host "Obige Schichten wirklich löschen ? (J/N)"
}
While ($Answer -ne "J" -and $Answer -ne "N")
Powershell Ergebnis sql Abfrage anzeigen Out-Gridview
display sql return:
Write-Verbose $sql;
# if windows user has not enough rights use other eg.: -Username sa -Password xxx
$ret=invoke-sqlcmd -Query $sql -serverinstance $ServerInstance -Database $Database
#display in cmd window
write-host ($ret | Format-Table | Out-String)
#display in new window with columns
$Ret | Out-GridView
Write-Verbose $sql;
# if windows user has not enough rights use other eg.: -Username sa -Password xxx
$ret=invoke-sqlcmd -Query $sql -serverinstance $ServerInstance -Database $Database
#display in cmd window
write-host ($ret | Format-Table | Out-String)
#display in new window with columns
$Ret | Out-GridView
Tuesday, February 19, 2019
powershell Debug Verbose
- Run
$DebugPreference = 'Continue'
to start seeing output fromWrite-Debug
calls. - When you're done, restore preference variable
$DebugPreference
to its default value, using$DebugPreference = 'SilentlyContinue'
$VerbosePreference = "continue"
Wednesday, February 13, 2019
hardlink link erstellen mit miklink (windows )
/J für Verzeichnis:
mklink /J Git C:\Users\myUser\AppData\Local\Programs\Git\
Monday, February 04, 2019
constraint system views sql server
select * from sys.indexes
select * from sys.check_constraints
select * from sys.key_constraints
select * from sys.default_constraints
select * from sys.sysconstraints
select * from sys.foreign_keys
Subscribe to:
Posts (Atom)