Click here to Skip to main content
15,885,767 members
Home / Discussions / Database
   

Database

 
GeneralMessage Closed Pin
7-Apr-13 6:41
mveMaciej Los7-Apr-13 6:41 
GeneralRe: how to convert sql server 2008 r2 database to sql server 2005 Pin
Mycroft Holmes7-Apr-13 12:54
professionalMycroft Holmes7-Apr-13 12:54 
GeneralRe: how to convert sql server 2008 r2 database to sql server 2005 Pin
Maciej Los7-Apr-13 19:53
mveMaciej Los7-Apr-13 19:53 
AnswerRe: how to convert sql server 2008 r2 database to sql server 2005 Pin
Maciej Los7-Apr-13 19:50
mveMaciej Los7-Apr-13 19:50 
Questiondiffrence between with and temp table in sql Pin
mhd.sbt6-Apr-13 8:46
mhd.sbt6-Apr-13 8:46 
AnswerRe: diffrence between with and temp table in sql Pin
Mycroft Holmes6-Apr-13 23:12
professionalMycroft Holmes6-Apr-13 23:12 
GeneralRe: diffrence between with and temp table in sql Pin
mhd.sbt7-Apr-13 2:58
mhd.sbt7-Apr-13 2:58 
Questionwhat's the problem with this?! Pin
Jassim Rahma6-Apr-13 4:11
Jassim Rahma6-Apr-13 4:11 
I have the following stored procedure on MySQL. It's running perfectly the MySQL on my laptop but when I try to create it on my host server I am getting:

You have an error in your SQL syntax. check the manual that corresponds to yout mySQL server version for the right syntax to use near 'param_limit; END;
ELSE
BEGIN
SELECT event_log.event_log_date_time, even' at line 5


this is the stored procedure:
SQL
IF (param_limit IS NOT NULL) THEN
BEGIN
    SELECT event_log.event_log_date_time, event_log.event_log_title FROM event_log WHERE event_log.event_log_member_id = param_member_id ORDER BY event_log.event_log_date_time DESC LIMIT param_limit;
END;
ELSE
BEGIN
    SELECT event_log.event_log_date_time, event_log.event_log_title FROM event_log WHERE event_log.event_log_member_id = param_member_id ORDER BY event_log.event_log_date_time DESC;
END;
END IF;



Technology News @ www.JassimRahma.com

AnswerRe: what's the problem with this?! Pin
Mycroft Holmes6-Apr-13 23:09
professionalMycroft Holmes6-Apr-13 23:09 
AnswerRe: what's the problem with this?! Pin
Richard MacCutchan7-Apr-13 1:16
mveRichard MacCutchan7-Apr-13 1:16 
Questioncompare performance between two query Pin
mhd.sbt4-Apr-13 23:30
mhd.sbt4-Apr-13 23:30 
AnswerRe: compare performance between two query Pin
Tim Carmichael5-Apr-13 3:11
Tim Carmichael5-Apr-13 3:11 
AnswerRe: compare performance between two query Pin
PIEBALDconsult5-Apr-13 3:21
mvePIEBALDconsult5-Apr-13 3:21 
SuggestionRe: compare performance between two query Pin
Eddy Vluggen5-Apr-13 7:21
professionalEddy Vluggen5-Apr-13 7:21 
GeneralRe: compare performance between two query Pin
mhd.sbt5-Apr-13 8:44
mhd.sbt5-Apr-13 8:44 
GeneralRe: compare performance between two query Pin
Eddy Vluggen5-Apr-13 8:54
professionalEddy Vluggen5-Apr-13 8:54 
GeneralRe: compare performance between two query Pin
mhd.sbt5-Apr-13 9:01
mhd.sbt5-Apr-13 9:01 
GeneralRe: compare performance between two query Pin
Eddy Vluggen5-Apr-13 9:04
professionalEddy Vluggen5-Apr-13 9:04 
QuestionJOIN 3 Tables Pin
Richard.Berry1004-Apr-13 19:01
Richard.Berry1004-Apr-13 19:01 
AnswerRe: JOIN 3 Tables Pin
Mycroft Holmes4-Apr-13 20:04
professionalMycroft Holmes4-Apr-13 20:04 
GeneralRe: JOIN 3 Tables Pin
Richard.Berry1005-Apr-13 2:49
Richard.Berry1005-Apr-13 2:49 
GeneralRe: JOIN 3 Tables Pin
Mycroft Holmes5-Apr-13 13:12
professionalMycroft Holmes5-Apr-13 13:12 
GeneralRe: JOIN 3 Tables Pin
Richard.Berry1005-Apr-13 23:41
Richard.Berry1005-Apr-13 23:41 
GeneralRe: JOIN 3 Tables Pin
Mycroft Holmes6-Apr-13 14:14
professionalMycroft Holmes6-Apr-13 14:14 
QuestionSQL QUERY Pin
girijeshkumar3-Apr-13 20:08
girijeshkumar3-Apr-13 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.