Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear Friends,

i have a task to schedule on monthly basis using sql script. I have tried my every chance , everything gone in vein. Please share your thoughts

to execute a 500 lines[select] query at every month , 1st day ,at 01:00 AM and also should export as excel format. I really appreciate if anyone suggest some thoughts..

Thanks
Jagadeesh
Posted
Comments
Suvabrata Roy 28-May-13 7:54am    
You can easily scheduled it by creating some exe or SQL Jobs but what exactly your concern?
Jagadeeshbhat 28-May-13 8:33am    
Thanks for your thoughts. Actually i don't know how to create it as a exe file/SQL Jobs... I'm a fresher in my organisation . This is my first task.

Now ,I have only a txt file which contains above 500 lines of Sql query . Kindly suggest me some thoughts which should be efficient, reliable in production server.

You can create a Job in Sql Server Agent in Sql Server. There you can put your sql script in job step and then create a schedule based on your requirement.
 
Share this answer
 
i have two table Manifest and manifestconsignment i want to insert value both the table one time one manifest no many consignment no insert inmanifest consignment i am using transaction using gridview

example
manifest no-00001

consignmentno nos weight
123 25 56kg
234 20 85kg
. . .
. . .


how to insert any one help me
 
Share this answer
 
Comments
Jagadeeshbhat 28-May-13 8:49am    
Please use trigger concept.
Hi,

Create a windows service with scheduler and send data via mail or save data in folder.
 
Share this answer
 
v2
Comments
Jagadeeshbhat 28-May-13 8:43am    
Thanks .Please suggest some link for reference [using C#].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900