Viewing 15 posts - 46 through 60 (of 972 total)
Change this line:
foreach($Value in $TargetDataSet.Tables[0])
To this:
foreach($Value in $TargetDataSet.Tables[0].Rows)
And then the "$Value" contains each row, then you can pass each value to the specified property by referring to it as "variable.columnName"....
March 26, 2016 at 8:02 pm
The switch you are referring to is for sqlcmd. Being that your code outputs a table (dataset) there is no true way of removing it just with a switch.
You could...
March 25, 2016 at 7:34 pm
February 23, 2016 at 2:24 pm
I actually wrote this up in a few blog post here[/url] and here[/url].
The link provided in the previous post is the link that takes you to the latest release...
February 11, 2016 at 6:35 am
The method used for that script has the objects associated with the table included in the table script, just as it would if you scripted the object in SSMS. If...
February 9, 2016 at 7:12 pm
Availability Groups is mirroring with new features.
Just because the server is a secondary replica does not mean the database in question is part of the AG, unless you verified that...
January 25, 2016 at 8:37 am
Here is a tip that walks through the setup using PBM for column data types:
https://www.mssqltips.com/sqlservertip/1993/find-all-sql-server-columns-of-a-specific-data-type-using-policy-based-management/[/url]
January 22, 2016 at 8:01 am
$srv = new-Object Microsoft.SqlServer.Management.Smo.Server('myserver\inst1,7889')
ConnectionContext : server=''myserver\inst1'';Trusted_Connection=true;Application Name='SQL Management';multipleactiveresultsets=false
Properties are empty because you are not connected to the instance. You cannot pass the port number to SMO as you...
January 21, 2016 at 11:26 am
I think registration is open until the Friday before the event. If you go to the event page and do not see a registration button or option I would expect...
January 21, 2016 at 7:23 am
You need to audit for failed logins using "Audit Login Failed".
You might also check the default trace if the event occurred recently it should have captured it in that file...
January 15, 2016 at 10:47 am
chuck.forbes (1/14/2016)
January 14, 2016 at 12:41 pm
Overall your session is missing a target. If you do not provide one not sure what target it defaults to.
Will also note though that opening the Live Data Viewer...
January 14, 2016 at 10:39 am
Pluralsight ($30 USD a month is pretty cheap, not sure what that converts to your area) is best bet to get current self-paced training, anything by Stacia Misner Varga is...
January 12, 2016 at 7:22 am
Viewing 15 posts - 46 through 60 (of 972 total)