Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conversion error in SQL query

Status
Not open for further replies.

Robbomobb

Technical User
May 27, 2003
21
SE
Hi all

I'm trying to get the "lastlogon" value from the "user" objectclass within our active directory using this query:

SELECT lastLogon
FROM OpenQuery(ADSI,
'SELECT lastLogon
FROM ''LDAP://DC=mydomain,DC=com''
where objectClass = ''user''')

but i get the following error message:
Server: Msg 7346, Level 16, State 2, Line 1
Could not get the data of the row from the OLE DB provider 'ADSDSOObject'. Could not convert the data value due to reasons other than sign mismatch or overflow.

the MSDN site describes the attribute to hold a "large integer".

Thankful for all replies
Robbomobb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top