Connecting to SQL Azure using SQL CLR

  • I use ADO.NET to connect to SQL Azure. The code worked verywell as a console application.

    But the code when run as a CLR Proc, threw the following error

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The requested name is valid, but no data of the requested type was found.)

    Any pointers?

    Thanks

  • I think this error is coming because of firewall setting. Please check your firewall setting in azure database.

    Happy Codding...

    My blog: http://www.expertdevelopersblog.co.cc/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply