May 11, 2007 at 6:54 am
Hi,
I want to display the name of the (named) instance on my report.
I've tried using expressions, but without succes!
Google-ing on it gives a lot of hits, but no answers....
Suggestions?
Thanks in advance!
May 11, 2007 at 11:03 am
Have you tried the globals? In the expession builder you can see what's available...
Ben Sullins
bensullins.com
Beer is my primary key...
May 14, 2007 at 6:18 am
Yes, the globals give you page numbers, userid and so on but no server\instance name!
May 14, 2007 at 9:30 am
Have you tried doing it with a dataset based on SELECT @@SERVERNAME?
I don't have named instances, so no testing done on my end, but I can't see why it wouldn't work.
May 15, 2007 at 2:34 pm
That worked for me...I don't think you can put fields in the page header or footer so this may have to go inside a textbox in the report body.
Ben Sullins
bensullins.com
Beer is my primary key...
May 15, 2007 at 8:47 pm
My understanding (I haven't had a need for it yet) is that once they are in the body, you can hide them there, and then reference the textbox in the header or footer.
May 15, 2007 at 9:15 pm
Yes that is the way to get field data into the headers and footers.
Another method that I've seen work, keeping in mind that this was a simple single table report, was to do away with the page header/footer sections entirely and place all necessary header/footer in the table itself, then add grouping levels to add detail level header rows.
--------------------
Colt 45 - the original point and click interface
May 16, 2007 at 10:54 am
That works but I wouldn't really call it a solution to getting the field data in the header and footers...
Ben Sullins
bensullins.com
Beer is my primary key...
May 16, 2007 at 5:52 pm
Yes definitely a workaround. One of these days we might be able to include field data in headers/footers. How hard can it be? It'd be just something along the lines of first/last functions wouldn't it?
--------------------
Colt 45 - the original point and click interface
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply