使用C ++自动生成SQL导出文件和图像复制 [英] Automating SQL Export File Generation And Image Copy Using C++

查看:55
本文介绍了使用C ++自动生成SQL导出文件和图像复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是创建一种自动执行以下过程的方法:

1.每12小时一次,分析SQL数据库并识别新的和/或修改的条目并识别新的和/或修改后的人员图像

2.为用于将数据导入另一个系统的新/修改信息创建导出文件

3.放置此导出文件和任何新的/修改过的人员图像到一个文件夹中

每个导出文件和文件夹都应该有一个唯一的名称/标识符,可能是时间和日期。



我的问题是:有没有人有任何提示或帮助提供直接通过SQL Server 2008,或使用C ++与SQL Server一起自动化过程。



我一直无法找到使用SQL复制Image文件的方法,自从我使用SQL或C ++以来已经有几年了,所以我有点生疏。 />


任何帮助,提示或建议非常感谢。

I have been given the task of creating a way of automating the following process:
1. every twelve hours, analyze the SQL database and identify new and/or modified entries and identify new and/or modified personnel images
2. create an export file for the new/modified information to be used to import the data into another system
3. place this export file and any new/modified personnel images into a folder
Each export file and folder should have a unique name/identifier, likely to be time and date.

My question is: Does anyone have any tips or help to offer on doing this directly through SQL Server 2008, or a way to utilize C++ to work with SQL Server to automate the process.

I have been unable to find a way to copy the Image files at all using SQL, and it has been a couple years since I have used either SQL or C++, so I'm a little rusty.

Any help, tips, or suggestions are greatly appreciated.

推荐答案

首先,您需要制定计划并拆分任务,而不是找到解决方案。



最大的问题是图片。你必须得到这些图片如何进入数据库的信息。如果你知道这一点,那么你需要反过来编码。



其他东西听起来像是学生的作业; - )
at first you need to make a plan and split your tasks and than you find the solution.

The biggest problem are the pictures. You got to get the information HOW these pics come in the database. And if you know that, than code the reverse and you have it.

the other stuff sounds like a homework for a student ;-)


这篇关于使用C ++自动生成SQL导出文件和图像复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆