Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 stored procedure accessing file system?

Author  Topic 

kma07
Starting Member

3 Posts

Posted - 2010-07-14 : 00:36:19
Hi everyone
I'm fairly new to this.

I want to write a store procedure so I can email users.

There will be a file in this format: MYFILE.john.doe@email.com.XML
that is uploaded by the user to a directory.

Now I need to have a procedure to read the john.doe@email.com part and email the file to that email address using sendmail.

I hope that makes sense.

If anyone can help it would be greatly appreciated.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 01:00:03
You should use SSIS for this and not a stored procedure. Why do you want to do this in a stored procedure?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

kma07
Starting Member

3 Posts

Posted - 2010-07-14 : 01:55:40
Oh it was suggested that I create a stored procedure to do all this.

SSIS? To be honest, I wouldn't even know where to start
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-14 : 02:22:17
I don't have a specific example to show you for SSIS, but it can do what you want. A stored procedure would make it much harder.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -