This is a discussion on SQL Server question within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; This is a database question, nothing to do with coding really so I hope it's OK to ask it here. ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| This is a database question, nothing to do with coding really so I hope it's OK to ask it here. I am using Microsoft SQL Server 2005 as my database for my website (hosted by hosting365). I want users to be able to send emails from a contact form on one page and there is a stored procedure called msdb.dbo.sp_send_dbmail @recipients in SQL Server that allows a user to do so just by calling it. (It's under System Databases-msdb-Programmability-Stored Procedures-System Stored Procedures in my SQL Server Management Studio Express). It's not there in the hosting365 server when I log in to it in Management Studio Express and when I tried to use it it said 'Server user 'myusername' is not a valid user in database 'msdb'. Does this mean it is there but I can't use it? Can I ask hosting365 to give me permission to use it? Or is it not actually there at all? Last edited by fonzi; 17-12-2007 at 09:41 PM. |
| |||||
| Is it on a shared hosting plan ? or do you control the SQL server ? I'm going to assume its on shared hosting and as such you really should ask hosting365 I'll assume you're not allowed access to it. Not to mention depending on how it works it could generate a lot of emails and while not positive I assume they've got a policy about sending a certain amount of emails within X amount of time
__________________ Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it ) Recent Work: Safari Club African Safari Holidays - South Africa Safaris Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools |
| ||||
| Yeah, it's shared hosting, I'll ask them can I use it, I presume I can't so I'll have to write my own sproc I spose. Every one I've seen uses some kind of sproc that is internal to SQL Server which requires admin privileges to use them. . Last edited by fonzi; 17-12-2007 at 10:26 PM. |
| |||||
| Maybe a stupid question, but why not do it in php/asp rather that stored procedure.
__________________ |
| ||||
| Quote:
I want to do something a bit different and difficult so I can show I know stuff and can use my initiative. |
| |||||
| Have you gotten onto your hosting provider about it yet?? They should be able to tell you staright out! |
| ||||
| Quote:
I saw a sproc that can do it but it uses a sproc called sp_OACreate. I got back this error: "EXECUTE permission denied on object 'sp_OACreate', database 'master', owner 'dbo'." as I don't have permission to use it. |
| ||||
| I asked them and they said to re-name the procedure from "msdb.dbo.sp_send_dbmail" to "'mydatabasename'.dbo.sp_send_dbmail". I did that but of course the compiler said it couldn't find that procedure. So I created it from the "msdb.dbo.sp_send_dbmail" I have on my own local machine but it gave me a load of errors. I'll have to do it in C#, I need it up and running soon. |
| Tags |
| question, server, sql |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script Installation, Server Administration | bizhat | Marketplace Offers | 2 | 10-03-2008 11:29 AM |
| General Blog questions & BLOG URL SEO question. Help Please? :-) | Gman290 | Search Engine Optimisation | 4 | 07-12-2007 10:24 AM |
| More powerful server... how much faster will my SQL queries be? | dude | Server / Technical Administration Tips and Queries | 14 | 13-08-2007 09:45 AM |
| Delete Or Redirect Files From Server? | Peter McC | Webmaster Discussion | 4 | 14-02-2007 12:32 PM |
| Importing XML files into MS SQL | davidbehan | Coding Help | 0 | 06-02-2007 05:00 PM |