Click here to Skip to main content
15,889,650 members
Home / Discussions / Database
   

Database

 
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 
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 
Hi
For the first question: You could try adding the keyword AS for the column:
if($db->Sql("SELECT MAX(ID) AS lastID FROM Test"))


And for the second question. Yes if the field is autonumbered, you don't have to mention it in an INSERT statement just like you don't have to mention any field that has a default value. However, if you're later going to add something for this row to a child table of this table you need to know the value for the foreign key in the child table.
The need to optimize rises from a bad design.My articles[^]

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 
AnswerRe: How to get a specified number of records centered on a specific record in T-SQL Pin
Wendelius18-Feb-11 5:13
mentorWendelius18-Feb-11 5:13 
GeneralHave you seen a sql tool? [modified] Pin
Tomz_KV18-Feb-11 2:42
Tomz_KV18-Feb-11 2:42 
GeneralRe: Have you seen a sql tool? Pin
Henry Minute18-Feb-11 2:45
Henry Minute18-Feb-11 2:45 
GeneralRe: Have you seen a sql tool? Pin
Brady Kelly18-Feb-11 2:50
Brady Kelly18-Feb-11 2:50 

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.