Solved

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

Posted on 2002-05-23
6
161 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand macro to include alternate header placement and naming 5 66
Turn a spreadsheet into a vba executable. 2 78
Unix / Linux grid computing 5 144
move a line in eclipse 3 80
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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