Viewing 11 posts - 1 through 11 (of 11 total)
July 17, 2018 at 6:29 am
July 10, 2018 at 12:54 pm
July 9, 2018 at 2:58 pm
July 7, 2018 at 7:03 am
We need to add the -Header argument to Import-Csv and give it dummy column names. The actual column names in the datatable are now determined from the table...
July 6, 2018 at 3:52 am
July 6, 2018 at 12:37 am
@bruin - here you go. It's somewhat longer now but does type checking and (optionally with command line switch) char column width
param
(
July 5, 2018 at 4:02 pm
Hi Bruin
If you and others are interested, I'll develop a full-fat version of this and post it later.
July 5, 2018 at 4:26 am
The PowerShell built-in cmdlet Import-Csv handles all the nonsense of commas within the quoted strings very nicely for us.
Try this for size.
July 4, 2018 at 2:14 pm
Much simpler and more efficient version (only one round-trip to the SQL server).
If you wanted to update the table with the current state, the valueList could be used to...
January 24, 2018 at 12:46 am
Killing connections like that reminds me of my Sybase days!
How about a one liner?
ALTER DATABASE [dbname] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
That will drop all user connections apart from your own....
July 7, 2016 at 3:18 am
Viewing 11 posts - 1 through 11 (of 11 total)