SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Running Sql Applications
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Deaf Smith
Starting Member

USA
3 Posts

Posted - 06/08/2012 :  10:47:36  Show Profile  Reply with Quote
Hello,

This is my first post. I program for a large hospital. Been a programmer for 30+ years! But I'm a Cobol/MVS/CICS/etc.. programmer who works on some servers as well (Report2Web and now Linux!)

Well we have some super applications coming up and need SQL skills.

I have Microsoft SQL Server Management Express Studio on my pc and I've made tables for ICD9 and ICD10 comparison.

Now the question... besides scripts to load and run on the server via the Server Management Studio is there any way to compile these and run as modules? How would I set up ways for users to run their own reports I've developed?

I've done this with Freebasic and bat files but never on a SQL database and I know of no way to get a bat file to execute SQL scripts!

Thanks for any help!

Deaf

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 06/08/2012 :  11:08:28  Show Profile  Reply with Quote
Couple of things you may want to look up that would be useful:

1. SQLCMD - this lets you run SQL commands from a Windows command line. If you were to go this route, you should create stored procedures that have the queries you want to run and then invoke the stored procedure via using SQLCMD. http://msdn.microsoft.com/en-us/library/ms165702(v=SQL.90).aspx Stored procedures are "compiled" and the execution plans are reused: http://msdn.microsoft.com/en-us/library/ms345415.aspx

2. SQL Server Reporting Services - You mentioned running reports. SSRS may be appropriate if you are trying to generate complex reports: http://technet.microsoft.com/en-us/library/ms365166(SQL.105).aspx
Go to Top of Page

Deaf Smith
Starting Member

USA
3 Posts

Posted - 06/08/2012 :  11:33:56  Show Profile  Reply with Quote
Ok.

What about SQLite? WOuld that work for alot of training and testing as well as small applications?

Thanks!

Deaf
Go to Top of Page

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 06/09/2012 :  07:51:05  Show Profile  Reply with Quote
quote:
Originally posted by Deaf Smith

Ok.

What about SQLite? WOuld that work for alot of training and testing as well as small applications?

Thanks!

Deaf

I am not familiar with SQLite - and I suspect many people on this forum are not. This forum is exclusively Microsoft SQL Server.

If you are still in the process of selecting a RDBMS, you could post to dbforums.com or a similar site where you are likely to get better responses.
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1769 Posts

Posted - 06/09/2012 :  11:13:59  Show Profile  Visit jackv's Homepage  Reply with Quote
What sort of reports are they? One method I've used quite a lot recently - but this is for daily reports to DBAs - is running Powershell scripts , which manage the connection to the database, execute the code , and then output the report to a html and email them.
To create this method - does require some Powershell knowledge.


Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000