hi there..
to clarify why your first code didn't work, it was because you were not passing a connection to the command, you were passing a conection string!
look at this:
Code:
Dim strConnection As String
strConnection = System.Web.Configuration.WebConfigurationManager.ConnectionStrings("FSPConnectionString").ConnectionString
strConnection = "Data source=(192.168.1.101);database=tharFSP;User ID=sa;Password=tharSQL"
Dim MyConnection As SqlConnection
MyConnection = New SqlConnection(strConnection)
Dim cmdTest As New SqlDataAdapter("dbo.thar_HIP_importcusts", strConnection)
in your second try, you pass the rigth connection object to the command ;)
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========