Hello
i need to save a virtual table (dataset table) into a SQL table
somo one know how to do it ??
(this is part of my code)
Dim sqladapt As SqlDataAdapter
Dim dsOC As New DataSet
Dim dt As New DataTable
Dim sqlcon As New SqlConnection(G eneral.Connecti onString)
Dim sqlcom As New SqlCommand("sel ect a.wring, a.ClaveWring, a.descripcion,
a.pedido, b.UnidadMedida1 , b.unidadEmpaque 1, b.PrecioPorEmpa que3 from
OrdenCompra_det ail a join CatalogoWrings b on b.id_wring = a.clavewring where
ID_ordencompra = @oc", sqlcon)
Dim dgTabStyle As New DataGridTableSt yle
Dim dcpaquete As New System.Data.Dat aColumn("Paquet es")
dcpaquete.DataT ype = System.Type.Get Type("System.In t32")
Dim dcunidad As New System.Data.Dat aColumn("Unidad es")
dcunidad.DataTy pe = System.Type.Get Type("System.In t32")
sqlcon.Open()
sqlcom.Paramete rs.Add("@oc", SqlDbType.Int). Value = 5
sqladapt = New SqlDataAdapter( "", sqlcon)
sqladapt.Select Command = sqlcom
dsOC.Clear()
sqladapt.Fill(d sOC, "Compras")
dsOC.Tables("Co mpras").Columns .Add(dcpaquete)
dsOC.Tables("Co mpras").Columns .Add(dcunidad)
dt = dsOC.Tables("Co mpras")
DgResumen.DataS ource = dsOC.Tables("Co mpras")
=============== ============
i need to save the "compras" table to "Order_Deta il" (an sql table in my
database) 0 1023 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Prabu |
last post by:
Hi,
I'm new to python, so excuse me if i'm asking something dumb.
Does python provide a mechanism to implement virtual functions?
Can you please give a code snippet also...:)
Thanx in advance
-Prabu.
|
by: vijay |
last post by:
I have a doubt with size of classed with virtual functions
I have declared A,A1,A2 ,B , C, D some classes with no varaibles but a
vitual function each,
The size of A is as expected 4 bytes with one vtbl ptr
BUt when I derive the class B from class A (both have 1 virtual function
each ) the size remains still as 4 bytes .
class A = 4 bytes
class B :public A = 4 bytes
class...
|
by: Venkat |
last post by:
Hi,
I have an file1.exe file stored at some physical location say
C:\Test\file1.exe.
I created a virtual folder say MyFolder pointing to my physical
folder(C:\Test\).
I wrote this piece of code to access file1.exe using virtual folder.
<@ Language=JavaScript %>
|
by: Adrian Herscu |
last post by:
Hi all,
In which circumstances it is appropriate to declare methods as non-virtual?
Thanx,
Adrian.
|
by: tnks |
last post by:
Hello
i need to save a virtual table (dataset table) into a SQL table
somo one know how to do it ??
(this is part of my code)
Dim sqladapt As SqlDataAdapter
Dim dsOC As New DataSet
Dim dt As New DataTable
| |
by: sojin |
last post by:
Hi all,
I'm a new to c++... and I've some doubts on "virtual" topics.
1) Can abstract base class have V-table?
Here's the way,,
Class CTemp{
|
by: fdu.xiaojf |
last post by:
Hi,
I have a program which will continue to run for several days. When it is
running, I can't do anything except waiting because it takes over most
of the CUP time.
Is it possible that the program can save all running data to a file when
I want it to stop, and can reload the data and continue to run from
where it stops when the computer is free ?
|
by: rn5a |
last post by:
When users submit a Form with a SQL query, the resultset is retrieved
from a MS-Access database table which is then exported to an MS-Excel
worksheet. After the records get exported to MS-Excel, I want to give
users the option to download the Excel file to their local machine. In
other words, when users click a download link, I want the Save As..
dialog box to pop-up so that users can save the Excel file to their
local machine (note that I...
|
by: Jess |
last post by:
Hello,
If I have a class that has virtual but non-pure declarations, like
class A{
virtual void f();
};
Then is A still an abstract class? Do I have to have "virtual void
f() = 0;" instead? I think declaring a function as "=0" is the same
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |