Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Datatable updating

$
0
0

How do I update a datatable ?for ($i=0;$i -le $datatable.rows.count;$i++)
{
   $therow=$datatable.rows[$i]
  $therow.Servername = $SQLServer
 }

but there is some problem ..

Property 'Servername' cannot be found on this object; make sure it exists and is settable.
At line:52 char:11
+   $therow. <<<< Servername = $SQLServer
    + CategoryInfo          : InvalidOperation: (Servername:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>