Solved

any way to export file in SQL Data base programatically using VC++

Posted on 2002-05-23
6
160 Views
Last Modified: 2013-11-20
can any one tell me is there any way to export or import a file from or to SQL SERVER data base programatically using VC++.
like in VB we use DTS to import and export in SQL Sertver
thanx
ult
0
Comment
Question by:Ultpak
  • 4
  • 2
6 Comments
 
LVL 22

Expert Comment

by:ambience
ID: 7040978
why not use the same DTS in VC ?
0
 

Author Comment

by:Ultpak
ID: 7041073
thanx for replying.
but how to use.
that is not a com component.
that is a feature of VB.
but how in VC, i have no idea.
0
 
LVL 22

Expert Comment

by:ambience
ID: 7041136
In my humble opinion DTS is a full-blown COM application, which resides typically in

<<Microsoft SQL Server>>\80\Tools\Binn\dtspkg.DLL

<<Microsoft SQL Server>> is where you installed SQLServer. You can use COM object viewer to check for interfaces and objects it supports, also you can try out a quick application in VB.

Of particular interest is the TransferObjectsTask interface exposed by DTSTransferObjectsTask, i think this is what can solve your problem.

It has methods that let you specify the source and target of transfer etc.

Hope this helps
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 22

Expert Comment

by:ambience
ID: 7041139
The TransferObjectsTask object allows you transfer one or more Microsoft® SQL Server™ objects between source and destination databases. An object can represent:

·     A table, or table data.
·     A view.
·     A referential integrity constraint.
·     A stored procedure.
·     An index.
·     A default or a rule.
·     A user-defined data type.

In addition, you can transfer all users or all logins (roles) for the source database. You can also transfer all objects dependent on the requested objects.

Note   The source and destination must both be Microsoft SQL Server version 7.0 or later databases.
0
 
LVL 22

Accepted Solution

by:
ambience earned 100 total points
ID: 7046236
did that help ?
0
 

Author Comment

by:Ultpak
ID: 7046862
still i could't check.
iwill check soon.
hope it will work..
thanx for all u did  for me.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now