So I’ve got a situation where I need to pass a bunch of data to the server to create a bunch of records. So I read this article and chose the XML method. So I’ve got the stored procedure all created in sql server 2005. But now I need to call it from asp.net code. Only all I’ve got for a database connection is an odbcconnection. I see the sqlclient seems to have a native sqldbtype.xml. What do I do if I’m using odbc? Am i SOL?
Share
I think you should use SQLConnection & related classes.
Having said that, you can use VS.net Server Explorer, make a connection to SQL Server using ODBC, expand the tree with stored procedures and see your stored procedure with XML parameter.
It should show the ODBC data type for it when you do right click, properties on the XML parameter.
This is purely based on my memory. I think, this should work.
EDIT: See if this link helps.
See for DataTypeCompatibility word on this link.