as_red_blue_tp200

rss

Subscribe to the RSS Feed by Email

Smiley Faces

1st Qtr (1)
Adwords (1)
Air Ambulance (3)
App Store (1)
Apple Store (1)
Arten Science (36)
ArtenSUITE (1)
AuthSMTP (1)
Award (3)
Award Winning (1)
Batch Email (2)
BCS (1)
Beta (18)
Blog (1)
Blog Post (1)
Blowfish (1)
Blue Spire (1)
BNI (1)
Bodega (2)
Books (1)
British Computer Society (1)
BT Internet (1)
Bulk Email (5)
Charity (2)
Chartered Information Technology Professional (1)
Children (1)
CITP (1)
Coding (1)
Computer Consultancy (1)
Configure (1)
Contact Relationship Management (8)
ContaX (15)
ContaXCRM (38)
Contract (1)
Coupon Code (1)
Crash (2)
CrM (25)
Cross Platform (32)
Custom (2)
Customer Feedback (4)
CuteCipher (6)
Data Protection Act (1)
DataClean (2)
Development (1)
Digital Vault (3)
Discount (1)
Donate (2)
ECommerce (1)
Encrypted Storage (1)
Encryption (42)
Escape (1)
Family License (1)
FastSpring (1)
Feedback Needed (2)
Finalist (2)
For Sale (1)
Forum (3)
Free (2)
Free for Parents (1)
Free Software (2)
Freeware (2)
General (4)
Grumble (1)
Halloween special (1)
Hospital (2)
Information (1)
IPhone (2)
JustWrite (2)
Key Management (4)
Keyboard Shortcuts (1)
Licensing (1)
Lonely Hacker (1)
macformat (1)
macVCR (7)
Madeleine (1)
manual (1)
Marketing (8)
MDN (1)
midlands IT Group (1)
Monitor (1)
MonitorMyMac (9)
Movie (13)
Movies (4)
multi-user (5)
mySQL (6)
New Product (4)
News (8)
Newsletter (2)
NFR (1)
Note Taking (1)
Online (1)
Online Manual (2)
OoSooM (28)
Orac (5)
Parents (1)
Paypal (1)
PCD (1)
Phoenix Chapter (1)
Pre-Release (1)
Presentation (2)
Press Release (5)
Preview (1)
Pricing (2)
Principle 7 (1)
Privacy Policy (1)
Product Update (5)
Productivity (1)
Promotion (15)
Protect (1)
Pyranet (1)
R10 (2)
R10BatchMail (27)
R10Cipher (74)
R10CipherIV (7)
R10Clean (22)
R10News (1)
R10Office (14)
R10Vault (2)
RB (2)
RBStarterKit (2)
RealBasic (1)
Recommendation (1)
Review (8)
Safe (1)
Sales Results (1)
Screen Snapshots (2)
Security Software (2)
Setup (1)
Skype (1)
Sneak Peak (1)
Software Development (1)
Software News (141)
Software Release (43)
Software Update (8)
SQL (1)
StepByStep (1)
Steve Cholerton (2)
Subscribe (1)
Support (2)
TailoredMS.com (1)
Task Management (1)
Testimonial (2)
ToDo Management (2)
Tutorial (16)
TwitQwik (1)
Twitter (2)
Twitter Client (1)
Update (12)
Update Frequency (1)
Version 2 (1)
Webcam Snapshot (2)
Website (10)
Windows 7 (1)
ZECL (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

0 Comments

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

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