Can SQL Server do this?

Status
Not open for further replies.
I'm trying to figure out how much of an application I'm working on can be run from inside the SQL Server database, as opposed to the running in an executable that accesses the database. I'm new to the advanced features of SQL Server, so I thought I'd ask a bit about what can be done before I went digging for how to do it.

So, I'm wondering how many of these things are possible from within a stored procedure (and maybe a head start on how to do it):

  • In a stored procedure, can I read in the name (or ID or something) of another stored procedure from a table and execute that stored procdure?
  • Can I run any other scripts besides Transact-SQL?
  • Can I call any functions from another DLL?
  • Can I shell execute a program?
  • Can I send a windows message to another program?


The biggest thing I'm trying to avoid is having a program have to poll the database to see if anything changed. That is why I'm looking at sending messages or executing something on the shell.

Another goal is to do a lot of application logic inside the database itself. I have long transmission times between DB(in UK) and applications(in US), so I want to minimize the number of DB calls I make. Could be that Transact-SQL has enough commands to handle my application logic, could be that I'll need to access a library of more complicated commands. (I think it depends on how well I can fiddle around in strings and substrings).

Am I rambling? End of the workday... must go home now. Anyway, Thanks for your help.
 
Originally posted by PreciousRoy:
I don't have my documentation on this machine, but in short, I can say yes for sure to all of them except for the sending windows messages bullet point.

Check your documentation.
I can't see why an extended stored procedure couldn't send a window message to another program.

It can find the window (even if it means iterating through all the windows on all the desktops in all the windowstations) and send messages to it.
 
Status
Not open for further replies.