You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-36Lines changed: 5 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Various PowerShell functions and scripts. These are published as [WFTools](https://www.powershellgallery.com/packages/WFTools/0.1.39) on the PowerShell Gallery (thanks to @psrdrgz for the idea!)
4
4
5
+
Two functions have been migrated to their own repositories to simplify and enable improved collaboration. Copies remain here for historical purposes and may be updated:
These files contain functions. For example, Invoke-Sqlcmd2.ps1 contains the Invoke-Sqlcmd2 function.
@@ -25,42 +30,6 @@ These files contain functions. For example, Invoke-Sqlcmd2.ps1 contains the Inv
25
30
26
31
Note: Using Import-Module to load these functions will break certain scenarios for Invoke-Parallel's variable import ([details](https://github.com/RamblingCookieMonster/Invoke-Parallel/issues/16#issuecomment-77167598)) - dot source the function if you need this.
27
32
28
-
## Invoke-Sqlcmd2
29
-
30
-
I'm a fan of Invoke-Sqlcmd2. Props to Chad Miller and the other contributors for a fantastic function. I've added a few features with much help from others:
31
-
32
-
* Added pipeline support, with the option to append a ServerInstance column to keep track of your results:
* Speed comparison between DataRow and PSObject output with 1854 rows, 84 columns:
46
-
*
47
-
48
-
### That DBNull behavior is strange! Why doesn't it behave as expected?
49
-
50
-
I agree. PowerShell does a lot of work under the covers to provide behavior a non-developer might expect. From my perspective, PowerShell should handle [System.DBNull]::Value like it does Null. Please vote up [this Microsoft Connect suggestion](https://connect.microsoft.com/PowerShell/feedback/details/830412/provide-expected-comparison-handling-for-dbnull) if you agree!
51
-
52
-
Major thanks to [Dave Wyatt](http://powershell.org/wp/forums/topic/dealing-with-dbnull/) for providing the C# code that produces the PSObject output type as a workaround for this.
53
-
54
-
### You clearly don't know SQL. Why are you working on this function?
55
-
56
-
I absolutely do not know SQL. If I'm doing something wrong please let me know!
57
-
58
-
I have a number of projects at work that involve PowerShell wrappers for SQL queries. Invoke-Sqlcmd2 has been my go-to command for this - now that I'm spending more time with it, I plan to add some functionality.
59
-
60
-
### Why is Invoke-Sqlcmd2 here?
61
-
62
-
I copied the code here to avoid the automated tweets for Poshcode.org submissions. I make many small changes and didn't want to spam twitter : )
63
-
64
33
## TechNet Galleries Contributions
65
34
66
35
Many of these functions started out in the Technet Gallery. You might find more context at these links.
0 commit comments