Wrox Programmer Forums
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 25th, 2010, 03:25 AM
Authorized User
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 72
Thanks: 17
Thanked 0 Times in 0 Posts
Question Too many Connections....

Hi,

I have a big form which the user fills and Data is submitted to Access Database.

I have 4 tables in my database.

On SUBMIT Button in my form, I am using 4 Methods as follows(VB Code) :-

InsertToPersonal()
InsertToProfessional()
InsertToFamily()
InsertToPosition()

First Method Inserts data into Table know as Personal. And Second Method Inserts Data into Professional table and so on.

So, In my every method, I am opening the connection & closing it.
conn.open()
conn.close()

Is this the right approach? Coz on a single Button Click I am opening & closing the connection for more than 4 times.

And Sometimes the User Enter Data in form & Data gets Inserted into first two tables & without showing any Error, Data is not Inserted into 3rd & 4th table.

How to Solve this Problem..??

Help Please.

Thank You......!!
 
Old September 19th, 2010, 07:25 AM
Registered User
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is such and how it to understand?http://kulinarbook.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with connections dotnetfreak ASP.NET 1.0 and 1.1 Basics 21 January 18th, 2007 02:07 PM
Database - connections gkn Oracle 1 December 20th, 2005 08:25 AM
Database - connections gkn Oracle 0 December 20th, 2005 07:27 AM
Connections saulodet ADO.NET 2 January 2nd, 2004 04:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.