Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Format A Number For Use As Number In Excel


I want to format a number like "#,##0.00" in order to handle it in Excel as a number (i.e. compute a sum).

Excel is able to show a number in a specail format and still allow to compute with ...

Thanks in advance,

Peter




View Complete Forum Thread with Replies

Related Forum Messages:
How To Change A Decimal Number To Percent Format Number?
in my sql, i want to change a decimal number to percent format number, just so it is convenient for users. for example there is a decimal number 0.98, i want to change it to 98%, how can i complete it?

thks

View Replies !
Exact Datetype Not There In Number Fromat In Format Cells At The Time Of Rendering Ssrs Report Into Excel
i have ssrs report with contains 3 fields like start date, end date, percentage value, for these fields i given date and percentage fromats  in format tab of the textbox, i export this report into excel sheet,
 
what is problem is , in the excel sheet i select the date or percentage column and select the format cells option and selected the number format,but here i did not seen any  format like date or percenatge  format what ever i given datatype in report and  it shows general format only for all columns.
 
 
here i need  solution  like when clicking the number format in format cells it shows defaultly appropriate dateformat like date or  percentage format at the time of rendering into excel.

 
i think it is bug in ssrs , any guy please help me
 
 

View Replies !
Format Number
I am doing some simple arithmatic for a query that I am working on. What I have below describes the arithmatic that is taking place withing a portion of the query:

select(o.sales_val/o.qty_sales) as 'Unit_Price', (o.acctng_cost_val/o.qty_sales) as 'Unit_Cost'
from opcsahf as o
go

The division is correct. My only issue is that the results for 'Unit Price' or 'Unit Cost' may be formatted like example: 4.25000000.


How can I have my nubers show up with only to 2 decimal places instead of all the zeros at teh end?

View Replies !
Format Number
I need to change a number that looks like 1365 and make it look like 1,365 without any decimal or trailing zeros. Then number can even be a 7 digit number. It seems like the only way I know is the money to varchar conversion using style 1, but this adds trailing zeros and a decimal point. Can anyone help on this

Thanks,

Hemal

View Replies !
Format Number
how can I get 1,33 for 12/9

sql server gives 1

View Replies !
Number Format
In the report Layout, if I right-click a cell that is located in the table details row, click Properties, and select the Format tab, there is an option for the Format code. I click on the little dot-dot-dot icon (...) and it brings up the Choose Format option. The choices are Default, Number, Date, Time, Percentage, and Currency. The format that I am interested in is Number, so I click on Number. Now, it shows '1234' ; '1,234.00' ; '1234' ; '1234.00' ; and finally '1.234123e+003'. The choice that I am looking for (or desire) is something that would show 9,452 and that is it. No decimals, but want the comma. I do not see an option for this. The option '1,234.00' has decimals. The two options '1234' and '1234' appear to not have decimals, but they do not appear to have commas either. Further, what is the difference between the first '1234' and the second '1234'?
 
 
 
*** Also, I have a couple formulas that I have entered. I have tried to change the Number Format for these cells in the table details row and nothing changes. Still the same format.

View Replies !
Number Format
When setting the format property for a textbox containing a number the first parameter relates to a positive number, the second negative and the third to zero. 

eg #,###; (#,###); 0

Is there a way of also formatting Null values in the same way without writing custom code?

View Replies !
Number Format
 

I have number field that I am trying to format.  The number currently shows -7899.99.  I would like it to show (7,899.99) for negative and 7,899.99 for positive.
 
Any ideas on how to do this? 

View Replies !
Format Phone Number
Hi Everyone,
   I have a phone number coming from the database coming in the format of 2132563111. How can I do this in sql query213-563-3111
Please let me know if there is any function that does it.
Thanks.

View Replies !
Format Number On Select
I have a price field that when I query it, it returns the price as"5.0000". What function can I use to return the price as "5.00"?THANKS

View Replies !
Format Phone Number
How to format phone numbers in sql? in current fields some phone number entered like this:
1 800 7894564
8001237878
1237878
1800blue etc...
I am trying to get into uniform like this:
8007834444
Thanks

View Replies !
Keep Phone Number Format
 

Hi,
 I have phone number column in Excel file. The phone number is in this format: 523-349-0212. When this data imported in to SQLServer file, it is not keeping the format, storing it as 5233490212. The data type of this column is varchar. How to keep this format?
 
Thanks in advance

View Replies !
Format Date And Number!
Dear Friens,

I'm having some problem to format my date and number fields!! :-(

In my column I have a date in the format 2007-05-28 00:00:00, and I want it to 28-05-2007.

 

And the field number I have in the format 28377497636.4987 and I need or 28.377.497.636,4987

 

or ‚¬ 28.377.497.636.4987.

 

Could you help me?

Thanks!!

View Replies !
Number Are Displayed In The Wrong Format
 
HiI'm not sure if this is a .net or a SQL issue. My development machine is using SQL 2005 while the live server is SQL2000. I have a smallmoney field in the database for holding a house rent. The following is used to display the contents on the page<asp:Label ID="lblrent" runat="server" Text='<%# Bind("rent", "(0:0.00)") %>'></asp:Label>In development, the number is displayed correctly, with the decimal place, .e.g. 200.50 but on the live server the number is displayed as 20050,00. What I have noticed in the database is that the number is held differentlySQL 2005 - 200.5000SQL 2000 - 20050Is there a difference between SQL 2000 and 2005? How do I get around this problem?

View Replies !
Auto-Number Format Problem
I have an autonumber in the format /100, which displays the first entry as 101 2nd as 102 and so on,

When i come to retrieve the data and display it on an aspx webpage it displays the values as 1,2,3,4 etc....

Is this an access thing or should i ask in the .net section?


many thanks

View Replies !
Changing The Number Format In SQL Query
Hi
 

I have query
 
SELECT  col1, a.Inv_Amount as Amount
FROM SPS_Oustandings a
 
I can get the result values for example as 12345.67 as result, but i need it in german format with , used as decimal point and . as thousand seperator
 
i need output as 12.345,67 
My DataGrid (ASP.NET) is directly bound to SP which have this query, i want to show amount in above format in grid.
 
Please Help,
Thanks

View Replies !
Format The Number In Matrix's Subtotal
Hi,
It looks like by default the subtotal number inherits the number format from the main column. Is there a way to override it?
In my case I am displaying percents with a decimal point in a column and sometimes the total comes out to 99.9% instead of 100%. I just want to round of the total to alway show 100%.
Is there a way to do it?

Thanks,
Igor

View Replies !
Number Format While Representing Two Different Field
 

Hi,
    I need to represent two different (number) fields in the same textbox ,  one number format is C0 (Currency) and other one is Percentage(P1), how can i keep this number format applicable to appropriate fields?
 
for exaple this is the expression to represent the two fiels in one textbox.
 

=Fields!Amount01.Value & vbCrLf & Fields!Amount01Percentage.Value
 
Thanks in advance.
 
 

View Replies !
How To Format The Phone Number In The Result?
like (###) ###-####.

I know that

SELECT phone
FROM author

however, the results will be like

408 496-7223.

but I do not know how to format the phone number.

can you help me to figure it out please?

thanks.

View Replies !
How To Find 'x' Number Of Days From 'yyyymmdd' Format?
I need to find out the count of number of records older than 100 days from a table having 'order_date' as yyyymmdd format eg. 20041115. Thanks in advance.

View Replies !
Format Number With Thousands Separator? 10000 --&&> 10,000
 

I would like to select a BIGINT type and get a formatted result with commas.  Anyone have ideas?
 
declare @i bigint
set @i = 123456789
 
select @i
 
--Would like to get
123,456,789

View Replies !
How To Convert Number Into Fixed Format String.
I would like to convert a number into fixed format string. Say for example if I have number 5, I would like to show it as four charactered string:

0005.

In case if I have 33, then I would like to have a result like '0033'. Please let me know the string functions with which I can acheive this.

View Replies !
How To Enter More Number Of Rows In A Table Having More Number Of Columns At A Time
Hi

I want to enter rows into a table having more number of columns
 
For example : I have one employee table having columns (name ,address,salary etc )
                     then, how can i enter 100 employees data at a time ?

Suppose i am having my data in .txt file (or ) in .xls

( SQL Server 2005)

View Replies !
Limitations In Term Of Number Of Tasks And Number Of Columns
Hi,

I am currently designing a SSIS package to integrate data into a data warehouse fact table. This fact table has about 70 columns among which 17 are foreign keys for dimension tables.

To insert data in that table, I have to make several transformations and lookups. Given the fact that the lookups I have to make are a little complicated, I have about 70 tasks in my Data Flow.
I know it's a lot, but I can't find a way to make it simpler. It seems I really need all these tasks.
 
Now, the problem is that every new action I try to make on the package takes a lot of time. At design time, everything is very slow. My processor is eavily loaded each time I change a single setting in one of the tasks, and executing the package in debug mode takes for ages. If I take a look at the size of my package file on disk, it's more than 3MB.

Hence my question : Are there any limitations in terms of number of columns or number of tasks that can be processed within a Data Flow ?

If not, then do you have any idea why it's so slow ?

Thanks in advance for any answer.

View Replies !
Format Money MS SQL Field Data As Number With Commas And No Decimals
If I pull a value from a MSSQL field with is defined as money, how can I get it to display in a textbox with commas and NO decimals?
87000.0000 = 87,000
I can currently remove the decimals like below but is there a way to add the commas as well?
decRevenue = drMyData("Revenue")
txtRevenue.Text = decRevenue.ToString("f0")
It current shows "87000".
 
 

View Replies !
Displaying Extra Characters With COLUMN-defined Number Format?
Here's a tricky SQL question that has definitely driven me to the end ofmy rope. I'm using Oracle 9i and I need to perform some simplemultiplication on a field and then display it with a percent sign usingthe COLUMN command. Here's the code thus far:COLUMN price format 9,999.99 HEADING 'Charged%'SELECT pricecharged * .231 as priceFROM VT_examdetailThe output from this reads:Charged%---------23.1034.6534.65....The kicker here is that I need to add a percent sign to the right of theoutput, so that it reads:Charged%---------23.10%34.65%34.65%....I thought I could do this by just adding "|| ('%')" into the SELECTstatement, but when I do this the decimal position defined in the COLUMNcommand is lost. Does anyone know another way around this?Thanks,Alex

View Replies !
Incorrect Host-column Number Found In BCP Format-file
Hi guys, would appreciate if you can shed some light on this.Sorry to be a pain, can you tell me what is wrong with the following:for /F %%i in ('dir /b /on c:cppc*.txt') do bcp Inventory..pc in%%i -fc:cpcp.fmt -T -S CHICKYywhere CHICKYy is the serverbcp.fmt8.00.19461 SQLCHAR 0 20 ", " 0 filler_1 ""2 SQLCHAR 0 8 "
" 1 computer_name ""3 SQLCHAR 0 20 ", " 0 filler_2 ""4 SQLCHAR 0 16 "
" 2 ip_address ""5 SQLCHAR 0 20 ", " 0 filler_3 ""6 SQLCHAR 0 60 "
" 3 operating_system ""pc1.txt and other *.txt format is:JW_193801,192.168.1.1,Windows XP,when I run it I get:C:cp>for /F %i in ('dir /b /on c:cppc*.txt') do bcp Inventory..pc in%i -fc:cpcp.fmt -T -S CHICKYyC:cp>bcp Inventory..pc in pc1.txt -fc:cpcp.fmt -T -S CHICKYySQLState = S1000, NativeError = 0Error = [Microsoft][ODBC SQL Server Driver]Incorrect host-column numberfound in BCP format-fileC:cp>bcp Inventory..pc in pc2.txt -fc:cpcp.fmt -T -S CHICKYySQLState = S1000, NativeError = 0Error = [Microsoft][ODBC SQL Server Driver]Incorrect host-column numberfound in BCP format-fileC:cp>bcp Inventory..pc in pc3.txt -fc:cpcp.fmt -T -S CHICKYySQLState = S1000, NativeError = 0Error = [Microsoft][ODBC SQL Server Driver]Incorrect host-column numberfound in BCP format-fileC:cp>bcp Inventory..pc in pc4.txt -fc:cpcp.fmt -T -S CHICKYySQLState = S1000, NativeError = 0Error = [Microsoft][ODBC SQL Server Driver]Incorrect host-column numberfound in BCP format-fileC:cp>bcp Inventory..pc in pc5.txt -fc:cpcp.fmt -T -S CHICKYySQLState = S1000, NativeError = 0Error = [Microsoft][ODBC SQL Server Driver]Incorrect host-column numberfound in BCP format-fileThe sql table has 3 columns:Sorry to be a pain.-----------------------------------------------------------------------"Are you still wasting your time with spam?...There is a solution!"Protected by GIANT Company's Spam InspectorThe most powerful anti-spam software available.http://mail.spaminspector.com

View Replies !
Conditional Number Format On Specific Matrix Column Group
I'll try to make this simple. I'm on SSRS 2005 and I have a report with a matrix object that has one row group and one column group. I need to switch the number format only for values where the column group has a specific value.
 
For example, here are the records in the table:
Customer, Type, Amount
Customer1, Revenue, -100
Customer2, Cost, 60
Customer1, Revenue, -200
Customer2, Cost, 125
 
By default the matrix object shows the following (the total comes from the standard subtotal on the column group):
                     Revenue         Cost           Total
Customer1          -100             60             -40
Customer2          -200            125            -75
 
But the users need the report to look like this, with all positives (why, oh why?!  ):
                     Revenue         Cost           Total
Customer1          100             60              40
Customer2          200            125             75
 

I was able to use the inscope function to switch the signs of the Total numbers. But now I need to switch the signs of the Revenue column from negative to positive (and vice versa), without affecting the signs of the Cost column. It's strange to me because I CAN switch the signs for a specific row group (changing Customer1's number format, without affecting Customer2's format) using something like this:
 
=iif(Fields!Customer.Value = "Customer1", "($#,###.#0); $#,###.#0", "$#,###.#0; ($#,###.#0)")
 
But a similar expression specifying a column group value does not work, because the report seemingly doesn't recognize the value of the column group at all no matter what I do:
 
=iif(Fields!Type.Value = "Revenue", "($#,###.#0); $#,###.#0", "$#,###.#0; ($#,###.#0)")
 
The other reason why this is strange is that I've done drill-through reports off of matrix objects where specific column group values (the ones clicked on) can be passed into the drill-through report parameters. So it recognizes the column group values upon drill-through, but not for formatting?
 
How else can I do this? I must be missing something here. Thanks.

View Replies !
Counting Occurrence Of A Value &&amp; How To Format For Fixed Number Of Rows &&amp; Columns
Hi,

I need to count and display the number of records which have GradeTitle="SHO". I'm only starting to use BI development studio and all attempts at using the built in aggregate functions have failed.

Also, the report I wish to create has a fixed number of columns and a fixed number of rows as the info being displayed is really only counting values in the DB. I tried using Table but multiple rows were created.

I'd appreciate if anyone could point me in the right direction, as searching this forum turned out to be pretty fruitless for me.

Thanks in advance,
John

View Replies !
Textbox - Number Format Leads To Mysterious Leading Bracket
A report is picking up some values from the body and displaying them in text boxes within the Page Header, via the ReportItems collection. The text boxes within the body have their format specified as #,###; (#,###) - so displaying negative values within brackets. If the following value is set for the Page Header text box:

 
="My Value" & " " & ReportItems!variance.Value
 
the value displayed is, for example:
 
(My Value (1,123
 
Hence the requested trailing bracket has been swapped to become a leading bracket. Whatever I've tried I cannot get the bracket in the correct place. Am I missing something obvious or is this a bug?
 

View Replies !
How To Return Time && Number Format That Has Set In The Regional Setting Using Stored Procedure
How to return time & number format that has set in the regional setting using stored procedure.
Following is my sp for getting current date format from Sql Server.

View Replies !
DTS - Excel Conversion From Number To Database Char
I have to import data from Excel file to an SQL Server Database.
One of the Excel Worksheet columns it's number (with max value of 4550204008914630000), I will import the column to a char 21 database field. Using a DTS to do the work, when I import that column it will convert the data in something like 4.5502041E+18.
Can you give me some help for the DTS.

Thanks,
Paulo

View Replies !
Export To Excel - Formatting Number Output
Hi all,

Once again, SSIS is giving me a 'F.U.N.' time (ask for definition of the F.U.N. acronym another time ).

I
have a relatively simple task - create an excel spreadsheet with 3
columns of data - Id, Description and Sales. ID and Description are
text, sales is int.

So my SP aggregates and creates my resultset
in my OLE DB Source in the Data Flow. It proceeds to the Excel
destination, and that all seems fine. My issue is that the data is
being written as text. Looking at the excel destination in Advanced
editor:
the Excel Destination Input, Input columns are formatted as
I expected: DT_WSTR 8 for the ID, DT_WSTR 100 for the Description and
DT_I4 for the Sales.
Excel Destination Input, External columns refuse to fall in line, though. They are all listed as DT_WSTR 255.

The
target excel spreadsheet is being created from a template file. That
template file has header columns. The target column for the Sales has
the entire column formatted to NUMBER (0 decimals). Yet to now avail.

When
I check the spreadsheet, the column has retained the cell formatting,
and I have a 'I' pop-up to inform me that 'someone' has inserted text
data into the number column (even though the data IS number).

Since
the SP spits out INT, it isn't a case of receiving a text value, imho.
While trying to change the external column data type in the advanced
editor, SSIS is quite happy to let me change the value for the Sales
output to DT_I4, apply, and ok. Then, when I open it immedaitely
aftgerwards, it has reverted to the DT_WSTR's! AArrgh. If is can't
handle it, at least tell me when I try and change it. don't let me
change it, and then revert back without telling me! Grumble grumble...

So - anyone know a way around this?

View Replies !
Excel Destination Number Conversion Error
In my SSIS project I am populating an Excel spreadsheet with several worksheets. When I define a worksheet in Excel Destination Editor, I use Create Table SQL statement to create a worksheet. Most of the fields are defined as numbers, however when job runs my numeric fields appear as text in Excel with yellow warning sign - 'The number in this cell is formatted as text or preceeded by an apostrophe'.  I need my numbers to appear as numbers. Is there a workaround for this?

View Replies !
Export To Excel Number Formatting Problem
Hi,

when i try to export reports to excel number fileds has exported as text !!

I use SQL server with database in US codepage, Reporting Services in english version but excel with Italian codepage settings.

So i must convert the defaul decimal separator from "." to "," within the report generation. This cause that i can't use te cdbl() conversion directly in the report field.

Anyone have sugestion ??

 

P.S. I can't change the database and excel codepage settings

View Replies !
Number Formats - Why Does Excel Show 12.% Instad Of 12.0%?
I have a percentage cell within a matrix. I want this cell to be formatted to 1 decimal place, so I use the format of ##0.#%  (After trying P1 etc). The cell appears formatted ok within the report viewer:

100%

12.9%

However after exporting to Excel the following occurs:

100.% - There is no 0 after the decimal point (but there is a decimal point . )

12.9% - Works ok when the the trailing digit is not a 0

Any ideas?

View Replies !
ADO Limitation To Number Of Excel 2007 Columns??
Hello all,


The following VBA code should theoretically return all the column
names from an Excel 2007 sheet. What I find is that it only returns
the first 255 even though there are many more in the spreadsheet (a
new feature of excel 2007).


Can anyone tell me how to resolve this?


Thanks,


Phil


Private Sub getXL2007ColumnNames()


    Dim count As Integer
    Dim fName As String
    Dim sheetname As String


    Dim cnSim As New ADODB.Connection
    Dim rsSchema As New ADODB.Recordset


    fName = "C:demo datamyfile.xlsx"
    sheetname = "mysheet$"


    Set cnSim = New ADODB.Connection


    'cnSim.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=" & fName & ";Extended Properties=""Excel 12.0;HDR=YES"";"
    cnSim.ConnectionString = "Driver={Microsoft Excel Driver (*.xls,
*.xlsx, *.xlsm, *.xlsb)};DBQ=" & fName
    cnSim.Open


    Dim aRestrictions As Variant
    aRestrictions = Array(Empty, Empty, sheetname, Empty)
    Set rsSchema = cnSim.OpenSchema(adSchemaColumns, aRestrictions)


    rsSchema.MoveFirst
    Do Until rsSchema.EOF = True
        count = count + 1
        Debug.Print (rsSchema!Column_Name)
        rsSchema.MoveNext
    Loop


    MsgBox "Fields = " & count


    rsSchema.Close
    Set rsSchema = Nothing
    cnSim.Close
    Set cnSim = Nothing


End Sub

View Replies !
Export To Excel - Number Formatted Cells Export To Excel As 'General' ?
Anyone know why cells within a matrix that are formatted as numeric export to Excel with a cell format proprty of "General"? Cells within a table however export with an appropriate format.

Thanks

View Replies !
The Number Of Requests For &&"XXXServerXXXUser&&" Has Exceeded The Maximum Number Allowed For A Single User
 

I have created a local user on Report Server Computer and the user has the administrative rights.
When i try to connect Report Server (http://xxx.xxx.xxx.xxx/reportserver) with this user's credantials. (ReportServer directory security is set -only- to Basic Authentication. ).
I get the following error.
 

Reporting Services Error
--------------------------------------------------------------------------------
 
The number of requests for "XXXServerXXXUser" has exceeded the maximum number allowed for a single user.
--------------------------------------------------------------------------------
SQL Server Reporting Services

 
Then i try to login using a different user with administrative rights on the machine, i can logon successfully.
The system is up for a month but this problem occured today?!? What could be the problem?!?

View Replies !
Maximum Number Of Tables - Is 4^15 Big A Number?
Hello people,I might sound a little bit crazy, but is there any possibility that youcan incorporate 4^15 (1,073,741,824) tables into a SQL Database?I mean, is it possible at all? There might be a question of whereanyone would want so many tables, but i'm a bioinformatics guy and I'mtrying to deal with genomic sequences and was coming up with a newalgorithm, where the only limit is the number of tables I can put intoa Database.So, can you please advise if its possible to put in so many tables intoa SQL database? Or is the Bekerley DB better?

View Replies !
How To Query A Number (street Number)...
I have a table that has a street number field.
if the user types in a street number of '2' i would like to return all street numbers the begin with 2 (2,20,21, 200, 201,205,2009,...)
how can this be done.

View Replies !
Page Number &&amp; Records Number
1. how to show page number & total page number in report body?

2. how to show total records number?

View Replies !
Convert From Number To Text- Exporting To Excel From SQL Reporting Services 2000
I was trying to export a report which contains a number format. When I do that, all the numbers in excel will have a green small tag beside it saying "Convert from Number to Text".

Is there anyway that I can change the format to a number when I export it to excel?

View Replies !
Field LIKE Number,number,number
I am testing something in Visual Basic
that talks to a database and I want to
filter results by -> field1 like "###".
However, that 'like' and '#' is VB syntax.
How do you say that in SQL?

View Replies !
Importing Excel Sheet Which Have Dynamic Column Name And Dynamic Number Of Columns
Hi Craig/Kamal,
 
I got your email address from your web cast. I really enjoyed the web cast and found it to be
very informative.
 
Our company is planning to use SSIS (VS 2005 / SQL Server 2005). I have a quick question
regarding the product. I have looked for the information on the web, but was not able to find
relevant information.
 
We are getting Source data from two of our client in the form of Excel Sheet. These Excel sheets
Are generated using reporting services. On examining the excel sheet, I found out that the name
Of the columns contain data itself, so the names are not static such as Jan 2007 Sales, Feb 2007 Sales etc etc.
And even the number of columns are not static. It depends upon the range of date selected by the user.
 
I wanted to know, if there is a way to import Excel sheet using Integration Services by defining the position
Of column, instead of column name and I am not sure if there is a way for me to import excel with dynamic
Number of columns.
 
Your help in this respect is highly appreciated!
 
Thanks,
 
 
Hi Anthony, I am glad the Web cast was helpful.
 
Kamal and I have both moved on to other teams in MSFT and I am a little rusty in that area, though in general dynamic numbers of columns in any format is always tricky.  I am just assuming its not feasible for you to try and get the source for SSIS a little closer to home, e.g. rather than using Excel output from Reporting Services, use the same/some form of the query/data source that RS is using.
 
I suggest you post a question on the SSIS forum on MSDN and you should get some good answers.
http://forums.microsoft.com/msdn/showforum.aspx?forumid=80&siteid=1
http://forums.microsoft.com/msdn/showforum.aspx?forumid=80&siteid=1
 
Thanks
 

 
Craig Guyer
SQL Server Reporting Services
 

View Replies !
DTS Export To Excel (How To Format Results In Excel)
Hi All

I've been googling this for a while now and can't seem to find any elegant answers.

I'm looking for an automated way to present a FORMATED Excel Spreadsheet to the Customer from a stored procedure output.

Can anyone advise me the best method of doing this - should I / can I assign an Excel Template to the DTS Task output ?

His mind is set on Excel and the formatting is basic and easy to write in a Macro which I've done, but this requires human interaction to finish the task (Automated Run Once on opening etc).

In an ideal world an individual would send an email to the Server with two formated parameters (@FromDate & @ToDate) and would be emailed back a ready formatted S/Sheet. But I believe he would be willing to just select the relevant SpreadSheet for the Daily / Weekly / Monthly periods dumped.

Thanks

GW

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved