Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Accessing SQL Server BCP through VB

Accessing SQL Server BCP through VB

Accessing SQL Server BCP through VB


I'm looking for help on a program to use sql servers bcp function in a visual environment. I have got as far as accessing the bcp parameters through SQL-DMO/SQL-OLE, but thats as far as I can get.

I'm using VB6 but, for the moment, am flexible as to the SQL Server version, from 6 to 7 will do.

Any help would be appreciated


RE: Accessing SQL Server BCP through VB

From what I remember, you can make API calls to SQL Server's DB-LIBRARY from VB. BCP can be invoked via DB-LIBRARY.

Also, I think there is a "VBSQL" control that is a visual interface to DB-LIBRARY. Look-up DB-LIBRARY & VBSQL in Books On-Line.

Does anybody know where the VBSQL OCX comes from? Does it ship with SQL Server? I found a VBSQL.VBX on my machine that must have been installed with VB5.

RE: Accessing SQL Server BCP through VB

I found the following on the microsoft web site:

How do I get VBSQL.OCX?

VBSQL.OCX allows you to write to Microsoft SQL Server's DBLibrary commands from Microsoft Visual Basic and other applications that can take advantage of 32bit OLE controls. It is available via the following:

The Microsoft SQL Programmers Toolkit (PTK), included with Microsoft SQL Workstation 6.5. The Programmers Toolkit includes VBSQL.OCX as well as hard-copy documentation.

The Microsoft Developers Network (MSDN) Professional Subscription or higher includes the BackOffice 2.0 SDK which contains the VBSQL.OCX.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close