Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Looking for a way to remove a row of data from a dataset
Topic Summary:
Created On: 02/14/2013 12:10 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 02/14/2013 12:10 PM
User is offline View Users Profile Print this message

Author Icon
BrianPearson
Expert (100-199)

Posts: 149
Joined: 04/08/2005

we have a .csv file that contains a row(s) that needs to be removed. in the row of data is a field: altempnum ... we have identified that altempnum in a sql table.

so what is the most effecient way to remove that row of data? do we need to do a preceding loop that removes it from the .csv before it gets into the dataset, or is there a good way to pull it out of the dataset?

 Category Survey
 02/14/2013 09:27 PM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Brian,
The solution seems to be coding a WHERE clause in the SQL query.
If you want to eliminate a row where the field named 'altempnum' has a given value,
SELECT * FROM thetable WHERE altempnum != 'thatvalue'
would do it. This way that row will not appear in the resulting dataset
Does this do it for you ?

 Category Survey
AutoMate BPA Server 8 version:
Windows version:


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1339 guests browsing this forum, which makes a total of 1339 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog