i have file/table in my database with the following format account_name (blank) Trade_date Price sam by 09012010 102.3 jaz by 09012010 101.8 mike by 09122010 104.3 sam by 09132010 105.5 i want to achieve the output like this first of all a file should be created as (account_number).dex so foe example :- file created sam.dex with entries like sam by 09012010 102.3 sam by 09132010 105.5 2 nd file created:- jaz.dex with entries jaz by 09012010 101.8 3rd file created:- mike.dex with entries mike by 09122010 104.3 How to achieve this output? thanks in advance!!!
Are you looking for this to be dynamic to be able to include any new account numbers that come in or is your data set going to remain static? If static a simple DTS, SSIS, or even TSQL statements using SQLCMD could pipe the results out to file. What version of SQL are you running and what are your full requirements?