Solved

looking for book    using C for SQL maintenance

Posted on 1998-07-21
2
242 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 100 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

688 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