What I want to do is bring data into an excel 2007 worksheet that is stored
in a sql database table.

The idea is to parameterize the "where" clause in the sql select statement
limiting the result set.

There are lots of examples in the literature with regard to bringing in data
stored in cubes --- but not so much from data in sql table.

The basic issue is I want bring in descriptive information about say a
contract (things like description, signing date, etc). Cubes which most
(all) of the literature deals with are dealing with aggregations of amounts
or "measures" and not so much about descriptions.

As always all suggestions are welcome.

Mark

Re: Excel 2007 Automation Question by Alvin

Alvin
Sat May 10 20:17:42 CDT 2008

It depends on where the excel worksheet resides. If it is on a sharepoint
server, you can do so easily. It sounds like it's not. If you have a cube,
you can tweak the MDX expression, it supports a where clause. Otherwise,
just use a filter in excel - it's functionally equivalent to a where clause.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------


"Mark" <Mark@discussions.microsoft.com> wrote in message
news:A157B8D5-AE7B-44CC-907B-0FE95A18D233@microsoft.com...
> What I want to do is bring data into an excel 2007 worksheet that is
> stored
> in a sql database table.
>
> The idea is to parameterize the "where" clause in the sql select statement
> limiting the result set.
>
> There are lots of examples in the literature with regard to bringing in
> data
> stored in cubes --- but not so much from data in sql table.
>
> The basic issue is I want bring in descriptive information about say a
> contract (things like description, signing date, etc). Cubes which most
> (all) of the literature deals with are dealing with aggregations of
> amounts
> or "measures" and not so much about descriptions.
>
> As always all suggestions are welcome.
>
> Mark