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

Change definition for a DataTable

$
0
0

Hello,

I have a DataTable and it has certain columns with "Double" data type. I am out putting the DataTable by using Out-DataTable found at http://gallery.technet.microsoft.com/ScriptCenter/4208a159-a52e-4b99-83d4-8048468d29dd/

In SQL, Double data type is not available, instead float or decimal can be used. I was wondering if I can change the data type from double to float as I intend to then store the data from DataTable in to a SQL table. Below is the DataTable member details:

Name        MemberType Definition                   
----        ---------- ----------                   
Date        Property   string Date {get;set;}       
DriveName   Property   string DriveName {get;set;}  
Error       Property   string Error {get;set;}      
FreeSpace   Property   double FreeSpace {get;set;}  
PercentFree Property   double PercentFree {get;set;}
ServerName  Property   string ServerName {get;set;} 
Time        Property   string Time {get;set;}       
TotalSpace  Property   double TotalSpace {get;set;} 
UsedSpace   Property   double UsedSpace {get;set;}  

Please advice, Thanks in advance.

Rajiv


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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