When I said that I was close then I meant that I have been filling a DataSet
with my sql sproc dataadapter. I'm trying to find the difference between
using a dataset and a datatable. Does a DataTable allow me to dump the
data more easily to a sqlce database or something?
I basically want to take the output of my stored procedure and put it into
my sqlce database table. Then the handheld will be disconnected from the
network connection and used mobile, connectionless. I know I can use
datasets like this - but if anything goes wrong with the program, or if the
user exits the program, the data is lost. Keeping it in a sqlce database
prevents this - so long as ram, or the sdcard, remain safe.
Is getting the data from a sqlserver stored procedure to a sqlce ppc
database best handled still, using a data adapter and a datatable/dataset?
If so, why would I use a datatable over a dataset? Pardon my ignorance.
-Mike
"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I guess I'm close then... I've not done this using .net though. I used
>vb6 and a adodb.command object to set the params of, and call the, stored
>procedure. The recordset returned from the stored procedure was saved to
>an object variable.
>
> Am I basically just replacing the object variable with a DataTable?
>
> Let me know if I'm completely missing the boat here.
>
> Thanks for the help,
>
> Mike
>
>
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Loading should be the same as on the desktop. Create an SqlDataAdapter
>> based on a SqlCommand. SqlCommand should have commandd type "stored
>> procedure" and text set to the SP name. Add appropriate parameters, set
>> their values and use DataAdapter to fill a DataTable.
>>
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Mike" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> I'm coming up empty, in vb.net cf - how do I call a stored procedure
>>> located on a remote sqlserver/msde database - which returns a recordset?
>>> I'd like to then take that recordset and load the contents into my local
>>> sqlce database. How is this done?
>>>
>>> Can you point me in the right direction?
>>>
>>> Thanks! -Mike
>>>
>>
>>
>
>