Irish SEO,  Marketing & Webmaster Discussion

 

SQL Server question

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. ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-12-2007, 09:37 PM
Coder
 
Join Date: Sep 2007
Posts: 33
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fonzi will become famous soon enough
Default SQL Server question

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 17-12-2007, 09:46 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,018
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 17-12-2007, 10:02 PM
Coder
 
Join Date: Sep 2007
Posts: 33
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fonzi will become famous soon enough
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 17-12-2007, 11:28 PM
Frodo's Avatar
Ciaran Rooney - Weeno Ltd
 
Join Date: Jan 2007
Location: London
Posts: 339
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Frodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud of
Send a message via MSN to Frodo Send a message via Skype™ to Frodo
Default

Maybe a stupid question, but why not do it in php/asp rather that stored procedure.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 18-12-2007, 11:20 AM
Coder
 
Join Date: Sep 2007
Posts: 33
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fonzi will become famous soon enough
Default

Quote:
Originally Posted by Frodo View Post
Maybe a stupid question, but why not do it in php/asp rather that stored procedure.
Not stupid at all, I want to use a stored procedure as all the other db stuff is done using sprocs so I want to have consistency. Also, I want to learn about it as the purpose of the site is to help me get employment as a web developer.
I want to do something a bit different and difficult so I can show I know stuff and can use my initiative.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 18-12-2007, 11:26 AM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 393
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default

Have you gotten onto your hosting provider about it yet?? They should be able to tell you staright out!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 18-12-2007, 11:57 AM
Coder
 
Join Date: Sep 2007
Posts: 33
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fonzi will become famous soon enough
Default

Quote:
Originally Posted by ziycon View Post
Have you gotten onto your hosting provider about it yet?? They should be able to tell you staright out!
Yeah, I'm gonna have to ask them as I've googled out all possibilities.
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 18-12-2007, 02:25 PM
Coder
 
Join Date: Sep 2007
Posts: 33
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fonzi will become famous soon enough
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
question, server, sql

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

BB 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

Similar Threads

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


All times are GMT +1. The time now is 08:46 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0