Replies: 4 comments
-
You can import any PowerShell object into SQL Server using |
Beta Was this translation helpful? Give feedback.
-
Thank you Bro potatoqualitee this the first time I work with PowerShell command i feel it is simple, but because i do not have a time I want to finish this part of my job quickly to save my time and to get good applause from my manager :) to automate this job. because we do it manually. I hope and really appreciate to help me if you explain or give me the commandto insert this data to SQL server directly from PoewrShell this the command below to extract the data from Nonstop to DataSet i need the step 2 how i insert this data from DataSet to SQL server $SqlQuery = "select * from spfppi ;" |
Beta Was this translation helpful? Give feedback.
-
I executed the following commands for step two and it was executed and finished without any errors and when I checked the table in SQL server it was empty?! there is any mistake in the commands? $SqlServer = 'xxxxxxxx' # SQL Server instance (HostName\InstanceName for named instance) for ($i = 0; $i -lt $DataSet.Tables[0].Rows.Count; $i++)
} $Command.CommandText = $insertquery } |
Beta Was this translation helpful? Give feedback.
-
hey @Leumosta - this is not dbatools. You'll probably have better luck on the SQL Slack in the #PowerShell channel https://aka.ms/sqlslack |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have data in Nonstop and I want to migrate this data to SQL server
is there any way to do it by Powershell, I already have command to read this data from Powershell, but I don't know now to migrate or copy these data to SQL server .
and if this data huge, can we migrate it these data?.
Beta Was this translation helpful? Give feedback.
All reactions