473,325 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to update in Database....

Inbaraj
76
Hi...

In the Datagrid I am having 20 rows.... I want to update all the value in database.. Is there any way to update bulk insert ....

with reg
inbaraj
Jun 26 '07 #1
7 1459
Paulson
63
Hi...

In the Datagrid I am having 20 rows.... I want to update all the value in database.. Is there any way to update bulk insert ....

with reg
inbaraj

Hi I'm Paulson

yah you can do a bulk insert, but the code and db Query will be
very heavy. You will have to send all the data you need as comma seperated string and probably I think you will also have to use an CURSOR(sql function).
You can surely accomplish your task using this. But it will be tough if you have not done it before.

Anyway if this odes any help pls inform me.

bye PCP.
Jun 26 '07 #2
Inbaraj
76
Hi I'm Paulson

yah you can do a bulk insert, but the code and db Query will be
very heavy. You will have to send all the data you need as comma seperated string and probably I think you will also have to use an CURSOR(sql function).
You can surely accomplish your task using this. But it will be tough if you have not done it before.

Anyway if this odes any help pls inform me.

bye PCP.
hi...

Plz help me with sample codeing.....

reg
Inba
Jun 26 '07 #3
TRScheel
638 Expert 512MB
Couldnt you just update one row, and throw that functionality into a for loop, just iterating through each row? Keep a static transaction, so if one fails, you can undo all the work (or not, up to you).

Maybe I am not understanding why you need to have a bulk transfer.
Jun 26 '07 #4
Inbaraj
76
Couldnt you just update one row, and throw that functionality into a for loop, just iterating through each row? Keep a static transaction, so if one fails, you can undo all the work (or not, up to you).

Maybe I am not understanding why you need to have a bulk transfer.

Hi...

In Datagrid i have some 50 records i want to insert all the records to the datbase.. For that only...

Is it possible..... If yes plz help me with sample codeing...

With reg
inbaraj
Jun 26 '07 #5
TRScheel
638 Expert 512MB
Hi...

In Datagrid i have some 50 records i want to insert all the records to the datbase.. For that only...

Is it possible..... If yes plz help me with sample codeing...

With reg
inbaraj

Sure I could give you some sample code, can you please post:

Language (c#, vb.net, ?)
Datagrid HTML code
The level of access you have to your SQL server (or table). I need to know if you can create, or have created, stored procedures, tables, etc for this.
Jun 26 '07 #6
Inbaraj
76
Sure I could give you some sample code, can you please post:

Language (c#, vb.net, ?)
Datagrid HTML code
The level of access you have to your SQL server (or table). I need to know if you can create, or have created, stored procedures, tables, etc for this.
hi...

I am using C# windows application.... and the backend is Oracle... i am using sql commands not stored procedures....

reg
inba
Jun 27 '07 #7
TRScheel
638 Expert 512MB
hi...

I am using C# windows application.... and the backend is Oracle... i am using sql commands not stored procedures....

reg
inba
I havent ever used Oracle, but there is a library available to converse with an Oracle backend through C#. On that note, I found this resource:

Using Oracle In .NET

I looked it over, and it seems fine. I saw a few problems with his strings, notably that he isnt using escape sequences nor declaring a string to ignore escape sequences with the @ symbol and not using string.Format. Read through that, create your own version of it, and post it (DO NOT POST ADDRESSES, USERNAMES, OR PASSWORDS) if you would like my input on it. If I had an Oracle testing server available here, I would throw up some sample code for you, but alas, anything I do here would be just speculation.
Jun 27 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mark | last post by:
A beginner in this area, I have been able to read a record from a MySQL database and populate an HTML form (wow!). Now, my goal is to allow the user to edit the contents of the form and then...
2
by: Niyazi | last post by:
Hi, I have not understand the problem. Before all the coding with few application everything worked perfectly. Now I am developing Cheque Writing application and when the cheque is clear the...
5
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
3
by: Shapper | last post by:
Hello, I have created 3 functions to insert, update and delete an Access database record. The Insert and the Delete code are working fine. The update is not. I checked and my database has all...
0
by: Vijay Balki | last post by:
I am fetching data in DataSet - myDataSet, from a remote database using a Web Service in my VB.NET client..Once I fetch it I store the data in XML file (myXMLFile) using the WriteXML method of the...
8
by: Zorpiedoman | last post by:
I keep getting a concurrency exception the second time I make a change and attempt to update a dataadapter. It appears this is by design, so there must be something I can do to avoid it. ...
2
by: TJ | last post by:
Hi All, I am having some trouble. I have created a database via the new database option inside VWD2005. Then and table or two. I have been able to perform INSERT and SELECT operations on...
2
by: Miro | last post by:
I will ask the question first then fumble thru trying to explain myself so i dont waste too much of your time. Question / Statement - Every mdb table needs a PrimaryKey ( or maybe an index - i...
3
by: Michel Esber | last post by:
Hi all, DB2 V8 LUW FP 15 There is a table T (ID varchar (24), ABC timestamp). ID is PK. Our application needs to frequently update T with a new value for ABC. update T set ABC=? where ID...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.