Showing posts with label pane. Show all posts
Showing posts with label pane. Show all posts

Friday, February 24, 2012

Hiding NULL

In SQL 2000 Query Analyzer, you can set up the text output pane to
leave null values blank.

That could give you this (assuming it's set to comma-delimited) --

CREATE TABLE #Test (A int, B int)
INSERT #Test SELECT 1,2
INSERT #Test SELECT NULL,4
INSERT #Test SELECT 5,NULL
INSERT #Test SELECT NULL,NULL
SELECT * FROM #Test

A,B
1,2
,4
5,
,

I can't figure out how to set up 2005 Management Studio the same way.
I can only manage to get outputs like this, with "NULL" instead of
empty fields --

A,B
1,2
NULL,4
5,NULL
NULL,NULL

How can I get rid of the NULLs?

Thanks,
Jim(jim_geissman@.countrywide.com) writes:
> I can't figure out how to set up 2005 Management Studio the same way.
> I can only manage to get outputs like this, with "NULL" instead of
> empty fields --
> A,B
> 1,2
> NULL,4
> 5,NULL
> NULL,NULL
> How can I get rid of the NULLs?

All I can suggest is that you go to
http://lab.msdn.microsoft.com/ProductFeedback/ and submit a suggestion
that Microsoft restores this possibility in the next version of SQL
Server.

There are many features in QA that did not make it to Mgmt Studio. To be
fair, QA has some odd quirks, even if several of them are practical. For
instance, this one is good if you want to copy and paste into Excel. Then
again, in Mgmt Studio, it's easier to copy and paste from grid, as you
now can opt to include the headers. (Tools->Options->Query Results->Results
to Grid.)

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||Thanks, Erland. I will visit MS and make that request.

Jim

Hiding Navigation Pane?

Hello,
Is there a querystring parameter I can use to hide the Navigation Pane on
the MSRS report manager. I want to embed the "My Reports" folder into a
frame, but don't want the end user to be able to navigate out of that page
by clicking on the "Home" link or search.
Anyhow know how I'd accomplish this?
Thanks,
Benjamin PierceYes there is...see "Using URL Access Parameters" in RS BOL.
"Benjamin Pierce" <bpierce@.opentext.com> wrote in message
news:%23jl6JUCZEHA.228@.TK2MSFTNGP10.phx.gbl...
> Hello,
> Is there a querystring parameter I can use to hide the Navigation Pane on
> the MSRS report manager. I want to embed the "My Reports" folder into a
> frame, but don't want the end user to be able to navigate out of that page
> by clicking on the "Home" link or search.
> Anyhow know how I'd accomplish this?
>
> Thanks,
> Benjamin Pierce
>
>|||Thanks for the help, unfortunately the closest I can see to what I'm looking
for is the "Toolbar" parameter which only hides the report viewer toolbar,
not the rest of the portal navigation...
Is there a parameter I'm missing?
Thanks again,
Benjamin Pierce
"Mick Horne" <mick.horne@.conchango.com> wrote in message
news:O5IdDxCZEHA.2816@.TK2MSFTNGP11.phx.gbl...
> Yes there is...see "Using URL Access Parameters" in RS BOL.
> "Benjamin Pierce" <bpierce@.opentext.com> wrote in message
> news:%23jl6JUCZEHA.228@.TK2MSFTNGP10.phx.gbl...
> > Hello,
> >
> > Is there a querystring parameter I can use to hide the Navigation Pane
on
> > the MSRS report manager. I want to embed the "My Reports" folder into a
> > frame, but don't want the end user to be able to navigate out of that
page
> > by clicking on the "Home" link or search.
> >
> > Anyhow know how I'd accomplish this?
> >
> >
> > Thanks,
> >
> > Benjamin Pierce
> >
> >
> >
>|||are you navigating to the folder using
http://<servername>/Reports/<whatever> ? Does using
http://<servername>/Reportserver/<whatever> work any better?
Mick
"Benjamin Pierce" <bpierce@.opentext.com> wrote in message
news:%23vrgqiDZEHA.2972@.TK2MSFTNGP12.phx.gbl...
> Thanks for the help, unfortunately the closest I can see to what I'm
looking
> for is the "Toolbar" parameter which only hides the report viewer toolbar,
> not the rest of the portal navigation...
> Is there a parameter I'm missing?
>
> Thanks again,
> Benjamin Pierce
> "Mick Horne" <mick.horne@.conchango.com> wrote in message
> news:O5IdDxCZEHA.2816@.TK2MSFTNGP11.phx.gbl...
> > Yes there is...see "Using URL Access Parameters" in RS BOL.
> >
> > "Benjamin Pierce" <bpierce@.opentext.com> wrote in message
> > news:%23jl6JUCZEHA.228@.TK2MSFTNGP10.phx.gbl...
> > > Hello,
> > >
> > > Is there a querystring parameter I can use to hide the Navigation Pane
> on
> > > the MSRS report manager. I want to embed the "My Reports" folder into
a
> > > frame, but don't want the end user to be able to navigate out of that
> page
> > > by clicking on the "Home" link or search.
> > >
> > > Anyhow know how I'd accomplish this?
> > >
> > >
> > > Thanks,
> > >
> > > Benjamin Pierce
> > >
> > >
> > >
> >
> >
>