as_red_blue_tp200

rss

Subscribe to the RSS Feed by Email



Website (10)
Promotion (14)
Software News (130)
R10Cipher (66)
Paypal (1)
Preview (1)
Software Release (37)
Information (1)
TailoredMS.com (1)
Marketing (8)
Adwords (1)
Review (8)
Beta (18)
SQL (1)
DataClean (2)
News (8)
Windows 7 (1)
Newsletter (2)
R10News (1)
Movies (4)
Licensing (1)
Support (2)
Skype (1)
ArtenSUITE (1)
Tutorial (5)
R10Clean (21)
macVCR (7)
R10Vault (2)
Twitter (1)
General (4)
MDN (1)
PCD (1)
New Product (4)
Orac (5)
Contract (1)
Sales Results (1)
1st Qtr (1)
Arten Science (29)
RB (2)
R10BatchMail (24)
Press Release (2)
RBStarterKit (2)
MonitorMyMac (8)
Family License (1)
Grumble (1)
RealBasic (1)
ZECL (1)
Pyranet (1)
Encryption (35)
Key Management (4)
Bodega (1)
Presentation (1)
BNI (1)
Phoenix Chapter (1)
Product Update (5)
OoSooM (27)
Finalist (2)
ToDo Management (2)
Digital Vault (3)
Encrypted Storage (1)
Award (3)
StepByStep (1)
BCS (1)
British Computer Society (1)
CITP (1)
Chartered Information Technology Professional (1)
Data Protection Act (1)
Principle 7 (1)
Task Management (1)
Cross Platform (12)
R10Office (13)
Steve Cholerton (2)
Air Ambulance (3)
Crash (2)
Hospital (2)
Escape (1)
Bulk Email (4)
AuthSMTP (1)
Batch Email (1)
Update (9)
Halloween special (1)
Blog (1)
Subscribe (1)
Security Software (1)
Madeleine (1)
Charity (2)
Donate (2)
ContaX (15)
CrM (11)
Freeware (1)
JustWrite (2)
For Sale (1)
Books (1)
Forum (3)
Productivity (1)
Webcam Snapshot (1)
Screen Snapshots (1)
Feedback Needed (2)
Software Update (3)
Apple Store (1)
NFR (1)
Coupon Code (1)
FastSpring (1)
ECommerce (1)
Discount (1)
IPhone (2)
R10 (2)
Note Taking (1)
Customer Feedback (2)
Free for Parents (1)
Free (1)
Parents (1)
Monitor (1)
Safe (1)
Online (1)
Protect (1)
Children (1)
Movie (1)

Awesome DataClean Review on Version Tracker

http://www.versiontracker.com/dyn/moreinfo/macosx/10906872&mode=feedback

ss_dataclean1

Makes it all worth while Happy

Steven Cholerton
Arten Science

Subscribe to our RSS Feed: http://feeds.feedburner.com/ArtenScienceRssFeed

Creating SQL Update Statements for Bulk Imports using DataClean

DataClean can be useful for many types of data manipulation. Recently I have been working with an ArtenSUITE customer who was supplying large quantities of data as an Excel spreadsheet to be imported into ArtenSUITE.

A simplified version of the spreadsheet looks like this:

Spreadsheet Image


Traditionally to import this type of data I would have created a small screen to import the data via a loop, or maybe I would have used a database utility and mapped the columns. This time I used dataclean to convert this information into a long series of SQL Update statements which where then simply run as a script.

The procedure I was followed was this:

  • Open the spreadsheet using DataClean
  • Select Column A, Select all the Rows
  • Perform an Insert / Beginning of Column
  • Type: update countries_table set shipcost =
  • Select Column B
  • Perform an Insert / Beginning of Column
  • Type: , set max_wgt =
  • ....... (Each Column)
  • Select Column G
  • Perform an Insert / Beginning of Column
  • Type: WHERE country_code = ‘
  • Perform an Insert / End of Column
  • Type: ‘ ;
  • Save the Document using a Space Character as the Custom Delimiter
  • Run the Document as a SQL Script
It may look complicated but all you are doing is surrounding the columns with the SQL necessary to make each line a valid SQL Update statement. You end up with a text file full of statements like this:

update bas_cho_ccry set cry_1stvalue = 600 , cry_2ndvalue = 950 , cry_freevalue = 1300 where cry_code = 'AL' and cry_comp_fk_com = 61;

Very quick to do and very efficient. I love it Happy


DataClean Image

Steven Cholerton
Arten Science

Subscribe to our RSS Feed: http://feeds.feedburner.com/ArtenScienceRssFeed

Arten Science. 54 West Avenue. Ripley. Derbyshire. DE5-3JD. +44 7578 392945 - Support Forum