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

Database

 
GeneralRe: Using Stored Procedure or View in the following scenario Pin
ashwanigl2-Nov-08 1:29
ashwanigl2-Nov-08 1:29 
GeneralRe: Using Stored Procedure or View in the following scenario Pin
Wendelius2-Nov-08 1:31
mentorWendelius2-Nov-08 1:31 
Questionsample insert statment Pin
Zlemox1-Nov-08 15:32
Zlemox1-Nov-08 15:32 
AnswerRe: sample insert statment Pin
Ashfield2-Nov-08 20:03
Ashfield2-Nov-08 20:03 
QuestionIs it possible to convert a data base in a exe file? Pin
r_mohd1-Nov-08 11:50
r_mohd1-Nov-08 11:50 
AnswerRe: Is it possible to convert a data base in a exe file? Pin
Rob Graham1-Nov-08 15:31
Rob Graham1-Nov-08 15:31 
AnswerRe: Is it possible to convert a data base in a exe file? Pin
Wendelius1-Nov-08 22:28
mentorWendelius1-Nov-08 22:28 
QuestionHow to get the last record .. Stored Procedure? Pin
kindman_nb1-Nov-08 5:54
kindman_nb1-Nov-08 5:54 
Hay ..

in SQL server 2005
I can make any select statement , but how can I get the last record :
like that

id invNo
1 a1
2 a2
3 a3

<br />
@newinv nvarchar(10) output<br />
AS<br />
SET NOCOUNT ON<br />
begin<br />
SELECT * FROM table ORDER BY invNo<br />
end<br />
<br />


I want to get the field invNo of the last record then by substring function i can add One ..

I hope my question is clear .
thanks

jooooo

AnswerRe: How to get the last record .. Stored Procedure? Pin
Blue_Boy1-Nov-08 7:01
Blue_Boy1-Nov-08 7:01 
GeneralRe: How to get the last record .. Stored Procedure? Pin
Rob Graham1-Nov-08 7:07
Rob Graham1-Nov-08 7:07 
AnswerRe: How to get the last record .. Stored Procedure? Pin
Rob Graham1-Nov-08 7:05
Rob Graham1-Nov-08 7:05 
GeneralRe: How to get the last record .. Stored Procedure? Pin
r_mohd1-Nov-08 11:46
r_mohd1-Nov-08 11:46 
QuestionPervasive 9 Pin
Zeyad Jalil1-Nov-08 4:01
professionalZeyad Jalil1-Nov-08 4:01 
AnswerRe: Pervasive 9 Pin
Ashfield2-Nov-08 21:14
Ashfield2-Nov-08 21:14 
Questionstored procedure for executing another proc generates error Pin
sunny741-Nov-08 0:47
sunny741-Nov-08 0:47 
AnswerRe: stored procedure for executing another proc generates error Pin
Ashfield2-Nov-08 20:10
Ashfield2-Nov-08 20:10 
Questionstored procedure problem in Mysql Pin
avvaru.murali31-Oct-08 1:21
avvaru.murali31-Oct-08 1:21 
AnswerRe: stored procedure problem in Mysql Pin
Wendelius2-Nov-08 0:05
mentorWendelius2-Nov-08 0:05 
QuestionFunction syntax in Mysql Pin
kyi kyi30-Oct-08 17:51
kyi kyi30-Oct-08 17:51 
AnswerRe: Function syntax in Mysql Pin
Ashfield30-Oct-08 22:23
Ashfield30-Oct-08 22:23 
AnswerRe: Function syntax in Mysql Pin
Paul Conrad31-Oct-08 7:42
professionalPaul Conrad31-Oct-08 7:42 
QuestionRestore DataBase Pin
Thaer Hamael30-Oct-08 2:23
Thaer Hamael30-Oct-08 2:23 
AnswerRe: Restore DataBase Pin
Wendelius30-Oct-08 7:49
mentorWendelius30-Oct-08 7:49 
QuestionSql server 2005 Pin
jetwll30-Oct-08 1:08
jetwll30-Oct-08 1:08 
AnswerRe: Sql server 2005 Pin
Ashfield30-Oct-08 2:15
Ashfield30-Oct-08 2:15 

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.