Re: Newbie help: sql string conversion
From: David Portas (REMOVE_BEFORE_REPLYING_dportas_at_acm.org)
Date: 10/29/04
- Next message: PC Data***: "Re: Amount NOT Found..."
- Previous message: Duane Hookom: "Re: Complex Query... I think"
- In reply to: steve: "Re: Newbie help: sql string conversion"
- Next in thread: Erland Sommarskog: "Re: Newbie help: sql string conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 21:20:11 +0100
Create a new table, then use the query I gave you to INSERT into it:
INSERT INTO NewTable (...)
SELECT ...
FROM OldTable
But if the data is changing, maintaining two copies of it is hard work and
unnecessary. The usual practice is to validate and transform data once and
then maintain it in a consistent, strongly-typed relational format in the
database. If you validate the data properly once then you won't need the
original format again. If you don't then you pay the price every time you
query the table.
-- David Portas SQL Server MVP --
- Next message: PC Data***: "Re: Amount NOT Found..."
- Previous message: Duane Hookom: "Re: Complex Query... I think"
- In reply to: steve: "Re: Newbie help: sql string conversion"
- Next in thread: Erland Sommarskog: "Re: Newbie help: sql string conversion"
- Messages sorted by: [ date ] [ thread ]