Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Multiple Records From VB To SQL

Status
Not open for further replies.

chrisli888

Programmer
Dec 14, 2000
2
US
I have a VB application to connect to SQL Server 2000. I want to pass data of multiple records from
VB to SQL. The VB app has a grid that user enter infomation to. The VB appl does not have a constant
connection to the database. Therefore, the grid is not bound to a table. Furthermore, the grid contain
information that need to update several tables. I want to the form pass the grid information to the
SQL with just one trip to the database. How can I do it?

It is easy to pass data from one vb app to another app by using array, recordset, or concatenate the
data into a string. I want to concatenate into a string and pass it to SQL. But I have some limitation
on that. First, if I use varchar type, I only have a max of 8000 bytes. Second, if I use text type,
I cannot manuplicate this text variable. In other words, I cannot decode the string into the original
format.

Please help!
 
If you want to extract data from one VB app to another, I suggest that you create an COM interface (and type library) that can be connected to from an external application such as getGridData. This is extensivly done in applications such as Excel Access etc and is quite easily implimented. Billy H

bhogar@acxiom.co.uk
 
Oh! Actually I am using ADO 2.5 to connect the VB app to the database. So, this connection problem is not an issue. The issue is how can I move multiple records from VB to SQL with just one trip to the database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top