Click here to Skip to main content
15,881,139 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Express Redistribution Pin
Wendelius18-Feb-11 22:15
mentorWendelius18-Feb-11 22:15 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:29
εїзεїзεїз19-Feb-11 18:29 
GeneralRe: SQL Express Redistribution Pin
Wendelius20-Feb-11 7:05
mentorWendelius20-Feb-11 7:05 
AnswerRe: SQL Express Redistribution Pin
PIEBALDconsult19-Feb-11 5:24
mvePIEBALDconsult19-Feb-11 5:24 
GeneralRe: SQL Express Redistribution Pin
Wendelius19-Feb-11 6:58
mentorWendelius19-Feb-11 6:58 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:29
εїзεїзεїз19-Feb-11 18:29 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:30
εїзεїзεїз19-Feb-11 18:30 
QuestionInsert Record into Access Pin
Brad Fackrell18-Feb-11 4:52
Brad Fackrell18-Feb-11 4:52 
I’m trying to insert a new record into an MS Access (2002-2003) database using Perl. My instructor's example has me getting the last record ID and using that to generate the next ID.

Two things:
1- When I do this the way the instructor illustrates (based on existing ID) using this code:

if($db->Sql("SELECT MAX(ID) lastID FROM Test"))<br />
{<br />
print "SQL Error: " . $db->Error() . "\n";<br />
$db->Close();<br />
exit;<br />
}


Can anybody tell me why I'm getting this error:

SQL Error: [-3100] [1] [0] "[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'MAX(ID) lastID'."

2- If my ID field is set to “AutoNumber” shouldn’t I be able to simply insert and new record (with no ID)? I’ve attempted that with no success.
AnswerRe: Insert Record into Access Pin
Luc Pattyn18-Feb-11 5:23
sitebuilderLuc Pattyn18-Feb-11 5:23 
GeneralRe: Insert Record into Access Pin
Brad Fackrell18-Feb-11 5:41
Brad Fackrell18-Feb-11 5:41 
GeneralRe: Insert Record into Access Pin
Wendelius18-Feb-11 5:42
mentorWendelius18-Feb-11 5:42 
AnswerRe: Insert Record into Access Pin
Wendelius18-Feb-11 5:26
mentorWendelius18-Feb-11 5:26 
GeneralRe: Insert Record into Access Pin
Brad Fackrell18-Feb-11 5:45
Brad Fackrell18-Feb-11 5:45 
QuestionHi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified] Pin
Thabo@Codeproject18-Feb-11 4:52
Thabo@Codeproject18-Feb-11 4:52 
AnswerRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Wendelius18-Feb-11 5:21
mentorWendelius18-Feb-11 5:21 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Thabo@Codeproject18-Feb-11 5:54
Thabo@Codeproject18-Feb-11 5:54 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Wendelius18-Feb-11 6:22
mentorWendelius18-Feb-11 6:22 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Thabo@Codeproject23-Feb-11 9:02
Thabo@Codeproject23-Feb-11 9:02 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Wendelius24-Feb-11 10:43
mentorWendelius24-Feb-11 10:43 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Thabo@Codeproject9-Mar-11 9:13
Thabo@Codeproject9-Mar-11 9:13 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Wendelius9-Mar-11 11:25
mentorWendelius9-Mar-11 11:25 
AnswerRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Luc Pattyn18-Feb-11 5:24
sitebuilderLuc Pattyn18-Feb-11 5:24 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Thabo@Codeproject18-Feb-11 5:39
Thabo@Codeproject18-Feb-11 5:39 
GeneralRe: Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure Pin
Luc Pattyn18-Feb-11 5:45
sitebuilderLuc Pattyn18-Feb-11 5:45 
QuestionHow to get a specified number of records centered on a specific record in T-SQL Pin
Member 225653318-Feb-11 4:42
Member 225653318-Feb-11 4:42 

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.