Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Need to pass a SqlConnection to a Web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Rodriguez - 15 Jul 2005 17:03 GMT
Is this possible?  I tried but it complains about the SqlConnection not
being fully serializable.  Are there any workarounds for this?

TIA,

Mike Rodriguez
Scott Allen - 15 Jul 2005 18:05 GMT
There is no way to move a SqlConnection to another machine, or another
process.

I suppose the work around depends on what you need to do. If the web
service needs to make a connection to a database it knows nothing
about, you could encrypt and send the connection string to the web
service (assuming the connection string would be valid for the
service's security context).

--
Scott
http://www.OdeToCode.com/blogs/scott/

>Is this possible?  I tried but it complains about the SqlConnection not
>being fully serializable.  Are there any workarounds for this?
>
>TIA,
>
>Mike Rodriguez
Terry Olsen - 16 Jul 2005 03:12 GMT
I pass Query strings to a function and get a DataTable returned...That seems
to be the easiest way to go about it.

Dim MyDT as DataTable = SqlQuery(QueryString)

> There is no way to move a SqlConnection to another machine, or another
> process.
[quoted text clipped - 15 lines]
>>
>>Mike Rodriguez

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.