?
Solved

looking for book    using C for SQL maintenance

Posted on 1998-07-21
2
Medium Priority
?
243 Views
Last Modified: 2010-03-19
I have to create some scheduled tasks for database maintenance.
I'm looking for a book with lots of example C code for interacting with SQL Server.
I have the Microsoft ODBC Programmer's Reference already, I would like something with lots of complete examples.   I don't mind spending the boss' money
0
Comment
Question by:jnearing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
jbiswas earned 300 total points
ID: 1091803
Doing database maintenance work with C is kinda cumbersome. I have worked in this field long enough and have not come across anything which discusses similar things. I have a suggestion though..why don't you try using Perl instead. It is a very easy language to learn and it is very easy to do DBA kinda work with Perl. In case you are not doing anything fancy I might even be able to give you some scripts.
Jit
0
 
LVL 1

Author Comment

by:jnearing
ID: 1091804
What I need to do isn't very complicated SQL wise, but a little to big to fit in an ISQL statement in the scheduled task mgr.

Typical of what I want to do is join a couple tables, select certain records that need be moved to another table.

I wouldn't mind doing it in Perl if that's the path of least resistance but I need to get it working sometime yesterday.

If you can, send me something along the lines above, it has to be able to run as a CmdExec in the task scheduler.

You'll notice that I spelled Perl correctly, that's about the extent of my knowledge.   I think I have a book at home though.

thanks

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

762 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