Click here to Skip to main content
16,004,836 members
Home / Discussions / Database
   

Database

 
GeneralRe: Limits in list length for IN clause Pin
Jörgen Andersson10-Dec-08 10:08
professionalJörgen Andersson10-Dec-08 10:08 
QuestionUpdate trigger for multiple rows Pin
amit sahu209-Dec-08 18:18
amit sahu209-Dec-08 18:18 
AnswerRe: Update trigger for multiple rows Pin
Howard Richards9-Dec-08 22:54
Howard Richards9-Dec-08 22:54 
GeneralRe: Update trigger for multiple rows Pin
amit sahu209-Dec-08 23:17
amit sahu209-Dec-08 23:17 
QuestionSQL Server 2005:Problem with full-text indexing Pin
rahulae9-Dec-08 13:37
rahulae9-Dec-08 13:37 
AnswerRe: SQL Server 2005:Problem with full-text indexing Pin
Howard Richards9-Dec-08 23:03
Howard Richards9-Dec-08 23:03 
Questionprocedure in SQL Pin
papy-boom9-Dec-08 9:40
papy-boom9-Dec-08 9:40 
AnswerRe: procedure in SQL Pin
Wendelius9-Dec-08 10:03
mentorWendelius9-Dec-08 10:03 
papy-boom wrote:
i don't have the column name of SELECT @@IDENTITY how can i manage it to get the value with a column name


You don't know from which column @@IDENTITY returns the value. It just returns the last inserted identity value in your sesion. It can be any table and any identity column.

You can narrow the possibilities using SCOPE_IDENTITY, but you'd still face the same problem.

Normally you know where @@IDENTITY comes from in your procedure since it's the previous insert to identity columned table. What's the cause in your case that prevents you identifying the statement (and after that the table and the column)?

The need to optimize rises from a bad design.My articles[^]

GeneralRe: procedure in SQL Pin
papy-boom9-Dec-08 10:08
papy-boom9-Dec-08 10:08 
GeneralRe: procedure in SQL Pin
Wendelius9-Dec-08 10:15
mentorWendelius9-Dec-08 10:15 
GeneralRe: procedure in SQL Pin
papy-boom9-Dec-08 10:25
papy-boom9-Dec-08 10:25 
GeneralRe: procedure in SQL Pin
Wendelius9-Dec-08 10:37
mentorWendelius9-Dec-08 10:37 
GeneralRe: procedure in SQL Pin
papy-boom9-Dec-08 12:18
papy-boom9-Dec-08 12:18 
GeneralRe: procedure in SQL Pin
Wendelius9-Dec-08 18:31
mentorWendelius9-Dec-08 18:31 
GeneralRe: procedure in SQL Pin
papy-boom9-Dec-08 22:03
papy-boom9-Dec-08 22:03 
AnswerRe: procedure in SQL Pin
Mycroft Holmes9-Dec-08 16:04
professionalMycroft Holmes9-Dec-08 16:04 
GeneralRe: procedure in SQL Pin
papy-boom9-Dec-08 21:59
papy-boom9-Dec-08 21:59 
GeneralRe: procedure in SQL Pin
Ashfield10-Dec-08 1:17
Ashfield10-Dec-08 1:17 
GeneralRe: procedure in SQL Pin
papy-boom10-Dec-08 2:05
papy-boom10-Dec-08 2:05 
QuestionPass Insert SQL Statement to MS-SQL DB via BAT script Pin
mil_an8-Dec-08 23:19
mil_an8-Dec-08 23:19 
AnswerRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
Colin Angus Mackay8-Dec-08 23:50
Colin Angus Mackay8-Dec-08 23:50 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
mil_an9-Dec-08 0:55
mil_an9-Dec-08 0:55 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
Ashfield9-Dec-08 1:21
Ashfield9-Dec-08 1:21 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script [modified] Pin
mil_an9-Dec-08 22:19
mil_an9-Dec-08 22:19 
QuestionProblem With Update Query Pin
chandrubngit8-Dec-08 19:14
chandrubngit8-Dec-08 19:14 

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.