Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / July 2008

Tip: Looking for answers? Try searching our database.

SSRS - Get IP - returning wrong IP address

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vpdj@yahoo.com - 18 Jul 2008 06:50 GMT
I am trying to resolve a simple problem, yet am again totally stuck -
please
help!!

I have 2 datasets - one dataset should get the IP Address of the
person running the
report:

               SELECT  client_net_address as p_IP_Address
               FROM  master.sys.dm_exec_connections
               WHERE session_id = @@SPID;

I pass the p_IP_Address from this dataset as a default value for the
report parameter into
my second dataset - which merely runs a simple SP to get several rows
which are displayed on the report - this is working fine now.

The GET_IP_Address dataset does return one row with one field - but it
is returning the IP Address of the SSRS SQL Server machine - where the
RDL is run from - not the end-user IP Address.

I have tried several different tacks to get the correct IP address
into the second dataset, but to no avail.

When the report is run in Visual Studio 2005, it shows the correct IP
Address, but when I deploy it to the produciton server, and then run
it - it does not return the IP address of the person running the
report - the report is executed via URL.

Please help

    -- vpdj @ yahoo.com

TIA
vpdj@yahoo.com - 22 Jul 2008 22:27 GMT
Can anybody help me???

On Jul 18, 1:50 am, v...@yahoo.com wrote:
> I am trying to resolve a simple problem, yet am again totally stuck -
> please
[quoted text clipped - 30 lines]
>
> TIA
Bruce L-C  [MVP] - 23 Jul 2008 15:36 GMT
This makes sense to me. The connection to the database is from RS server,
NOT from the user. It seems to me that whatever you are trying to do cannot
be done via querying the database. The client requesting the report is not
where the database connection is originating, that is from the Server.

If you want the user you can use the global variable User!UserID.

Signature

Bruce Loehle-Conger
MVP SQL Server Reporting Services

Can anybody help me???

On Jul 18, 1:50 am, v...@yahoo.com wrote:
> I am trying to resolve a simple problem, yet am again totally stuck -
> please
[quoted text clipped - 30 lines]
>
> TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.