Link to home
Start Free TrialLog in
Avatar of hindersaliva
hindersalivaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SQL Server and getting client IP Address

I have an online demo of an Excel application that connects to a SQL Server via ADO and coding in VBA.

Is there a way to 'see' the client IP Address (so that I can capture it)?

Thanks
SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vitor Montalvão
Is there a way to 'see' the client IP Address (so that I can capture it)?
Do you mean from SQL Server side capture the IP address from the Excel connection?
Avatar of hindersaliva

ASKER

Vitor, yes.

Thanks Jason. Ideally I would like to achieve this. Whenever I have an INSERT into a table I'd like to put the client IP Address of the incoming connection into a column called IPAddress. Is it possible for SQL Server to insert that as a Default Value for that column in the table design? (like GETDATE)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial