January 4, 2008 at 3:08 am
How can i export data in execel file in predefined excel format...
Example suppose one excel file like..
Report of newmwmber os year 2000 are following --- this is fix as header (for every ouput)
field name ----these are fields name
data -- -these are data
.
.
.
.
.
so, hearder is not in sql data...
i want this solution...
January 4, 2008 at 9:37 pm
3 pages starting at...
http://www.sql-server-helper.com/tips/read-import-excel-file-p01.aspx
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2008 at 8:53 pm
You can also use sp_makewebtask
exec sp_makewebtask @outputfile = 'C:\mypath\lester.xls',
@query = 'select * from table',
@colheaders =1,
@FixedFont=0,
@resultstitle= 'My Title',--Name of the report etc
@dbname = 'db_name' --'database_name'
Although i think this will be disregarded in MSSQL 2008 but anyways if your not using 08 as of now you can use this. Just my 2 cents..
"-=Still Learning=-"
Lester Policarpio
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply