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!

HOW TO ACCESS WEB SERVICE...

Status
Not open for further replies.

SMS636

IS-IT--Management
Apr 20, 2005
20
CA
I want to access a web service using TSQL code. Any solutions or examples?

 
Web applications can access T-SQL code if written correctly, but T-SQL code doesn't usually (as far as I know) access Web Services.

What services are you trying to access? What do you want to do with them?



Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
 
You can't access a web service directly via T/SQL. T/SQL is the SQL Server programming language. To access an externial web service you would need to use a CLR procedure or an extended stored procedure (depending on your SQL version and what features your DBAs have enabled).

Accessing a web service via the CLR may or may not be supported. Only the following assemblies are supported.
• Microsoft.VisualBasic.dll
• Mscorlib.dll
• System.Data.dll
• System.dll
• System.Xml.dll
• Microsoft.VisualC.dll
• CustomMarshalers.dll
• System.Security.dll
• System.Web.Services.dll
• System.Data.SqlXml.dll
• System.Transactions.dll
• System.Data.OracleClient.dll
• System.Configuration.dll
(See
Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top