Re: Resolving DNS names from extended stored procedures
From: Gert E.R. Drapers (GertD_at_SQLDev.Net)
Date: 10/07/04
- Next message: Kristian Aasbjerg: "Re: SQL Agent Mail grayed out"
- Previous message: thejamie: "RE: How to insert a parenthesis into a field"
- In reply to: Rick Genter: "Resolving DNS names from extended stored procedures"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 23:51:35 +0200
Are you doing a WSAStartup in your XP?
I have no problems doing gethostbyname to resolve the hostname back to an IP
address.
GertD@SQLDev.Net
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2004 All rights reserved.
"Rick Genter" <rgenter@silverlink.com> wrote in message
news:eJhtjM%23qEHA.2604@TK2MSFTNGP10.phx.gbl...
> I've developed an extended stored procedure in C and want to resolve a
> hostname from within the stored procedure using DNS. I use getaddrinfo()
> to try and resolve the name. It never works from within the extended
> stored procedure when running within SQL Server 2000 (SP3a applied). A
> hard-coded IP address does work. The error I get back is WSAHOST_NOT_FOUND
> (11001). If I do an NSLOOKUP of the same hostname on the same machine, it
> works fine, so the server is configured OK. SQL Server 2000 is running
> using an account that does have network access; when I specify an IP
> address to my stored procedure, which turns around and establishes a TCP
> connection to a specified port and sends XML over the connection, it
> works.
>
> Are there any known issues resolving DNS names from within extended stored
> procedures?
>
> Thanks in advance.
>
> Rick
> --
> mailto:rgenter "at" silverlink.com
>
- Next message: Kristian Aasbjerg: "Re: SQL Agent Mail grayed out"
- Previous message: thejamie: "RE: How to insert a parenthesis into a field"
- In reply to: Rick Genter: "Resolving DNS names from extended stored procedures"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|