Hi all,
i have an requirement like to bulid a one script for validating fileds in all tablesby with below syntax..
----<FILELD_NAME>
INSERT INTO VALIDATION
SELECT CASE WHEN (select count(*) from <TABLE_NAME> where <FILELD_NAME>is not null and
<FILELD_NAME>>' ') > 0 THEN 'PASS' ELSE 'FAIL' END"RESULT",0,GETDATE() GO
my thing is i have an 87 tables in my datamart and more than 7000 fileds and i have a sheet which contains tablenames and field names.
is there any possibility to by doing automation for bulld a script
Thanks in Advance...
Need a Help on build script
Moderators: chulett, rschirm, roy
Need a Help on build script
D.N .MURTHY
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom