|
Home > Archive > MS SQL Server Reporting Services > March 2005 > Re: ServerInfoHeader & ReportServerVersionNumber
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: ServerInfoHeader & ReportServerVersionNumber
|
|
|
| Thanks Jasper. Your code does not create any errors, but it does not return
any text to the console window. I added .ToString after each property, and
the same error message returns. Have you had luck getting information back?
"Jasper Smith" wrote:
> Try something like
>
> rs.Credentials = System.Net.CredentialCache.DefaultCredentials
> rs. ServerInfoHeaderValu
e = New ServerInfoHeader
> Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerVersionN
umber)
> Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerEdition)
>
> --
> HTH
>
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
>
> "RMac" <@news.postalias> wrote in message
> news:65B4BECA-A261-49FE-A1CE- C60F6EBDBAA0@microso
ft.com...
>
>
>
| |
| Jasper Smith 2005-03-30, 7:04 pm |
| Seems you have to do something with the report service to populate it. I
picked my earlier example out of some much larger code that did do something
before trying to access the values so hadn't noticed the behaviour. Here's a
working example
'Setup
Dim rs As New ReportingService
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
rs. ServerInfoHeaderValu
e = New ServerInfoHeader
'Do something
Dim [property] As [Property]() = Nothing
[property] = rs. GetSystemProperties(
Nothing)
Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerVersionN
umber)
Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerEdition)
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"RMac" <@news.postalias> wrote in message
news:C6A6305A-F9AC-4561-A442- E892C1063BFB@microso
ft.com...[color=darkred]
> Thanks Jasper. Your code does not create any errors, but it does not
> return
> any text to the console window. I added .ToString after each property,
> and
> the same error message returns. Have you had luck getting information
> back?
>
> "Jasper Smith" wrote:
>
| |
|
| That got it. Thanks Jasper. I was thinking that by authenticating to the
server, the data should be retrievable.
"Jasper Smith" wrote:
> Seems you have to do something with the report service to populate it. I
> picked my earlier example out of some much larger code that did do something
> before trying to access the values so hadn't noticed the behaviour. Here's a
> working example
>
> 'Setup
> Dim rs As New ReportingService
> rs.Credentials = System.Net.CredentialCache.DefaultCredentials
> rs. ServerInfoHeaderValu
e = New ServerInfoHeader
>
> 'Do something
> Dim [property] As [Property]() = Nothing
> [property] = rs. GetSystemProperties(
Nothing)
>
> Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerVersionN
umber)
> Console.WriteLine(rs. ServerInfoHeaderValu
e. ReportServerEdition)
>
> --
> HTH
>
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
>
> "RMac" <@news.postalias> wrote in message
> news:C6A6305A-F9AC-4561-A442- E892C1063BFB@microso
ft.com...
>
>
>
|
|
|
|
|