Unix Technical Forum

Print report from SQL 2000

This is a discussion on Print report from SQL 2000 within the SQL Server forums, part of the Microsoft SQL Server category; --> hi Could someone please help me in following: I need to update Policy status base upon commencement date and ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:50 PM
Khalid Hussain
 
Posts: n/a
Default Print report from SQL 2000

hi
Could someone please help me in following:
I need to update Policy status base upon commencement date and then
print with new Policy status.
I written a stored procedure to update the policy.
Now I need to work out how I can print a report. We already doing the
report manually in our VB6 program but this is automatic process. So no
users involve here. It would change the status by running the stored
procedure and then print the report.
Would it be possible execute the VB6 program via stored procedure?
Would it be possible SQL 2000 produce a report?
We used active-x dll in our VB6 program, is it any way can call dll file
via stored procedure?
thank you.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:51 PM
John Bell
 
Posts: n/a
Default Re: Print report from SQL 2000

Hi

In general it is not recommended to start a graphical program from a batch
process or stored procedure, quite often it can require one or more of:

interaction with the desktop,
a user logged in
a printer to be configured
user acknowledgement.

Presently formatted output of information from SQL Server is quite basic and
may not be of a suitable standard for a report. You could use things like
xp_sendmail to distribute the results of a query. Another method would be to
use sp_makewebtask to publish the results to an intranet.

It may be possible to use the dll either by using the sp_OA* stored
procedures or an active X task in a DTS job.

John

"Khalid Hussain" <khalid.hussain@pinnacle.co.uk> wrote in message
news:3f5f4d5e$0$62081$75868355@news.frii.net...
> hi
> Could someone please help me in following:
> I need to update Policy status base upon commencement date and then
> print with new Policy status.
> I written a stored procedure to update the policy.
> Now I need to work out how I can print a report. We already doing the
> report manually in our VB6 program but this is automatic process. So no
> users involve here. It would change the status by running the stored
> procedure and then print the report.
> Would it be possible execute the VB6 program via stored procedure?
> Would it be possible SQL 2000 produce a report?
> We used active-x dll in our VB6 program, is it any way can call dll file
> via stored procedure?
> thank you.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:33 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com