Click here to Skip to main content
15,897,371 members
Home / Discussions / Database
   

Database

 
GeneralRe: Query Pin
Giri K31-Oct-07 14:51
Giri K31-Oct-07 14:51 
QuestionSQL Server Express Autoinc Pin
AAGTHosting30-Oct-07 12:18
AAGTHosting30-Oct-07 12:18 
AnswerRe: SQL Server Express Autoinc Pin
pmarfleet30-Oct-07 13:01
pmarfleet30-Oct-07 13:01 
QuestionSqlClient will not connect to 2005 SqlServer Pin
ianhoc30-Oct-07 10:46
ianhoc30-Oct-07 10:46 
AnswerRe: SqlClient will not connect to 2005 SqlServer Pin
Paul Conrad31-Oct-07 14:13
professionalPaul Conrad31-Oct-07 14:13 
GeneralPlease Vote For Persian Collation in SQL Server 2008 Pin
DotNetWWW30-Oct-07 8:05
DotNetWWW30-Oct-07 8:05 
GeneralRe: Please Vote For Persian Collation in SQL Server 2008 Pin
Paul Conrad31-Oct-07 14:14
professionalPaul Conrad31-Oct-07 14:14 
QuestionBasic question on SQL [modified] Pin
niaher30-Oct-07 4:35
niaher30-Oct-07 4:35 
Hello. I have a very basic question (at least for most of you pros out there Smile | :) ). Are stored procedures executed in isolation - meaning that, while one SP is being executed no other SP or query can execute on the same record.

More specifically I would like to know if there is a chance that during the execution of the below SP the value of @@ROWCOUNT can be changed on line 16 by another SP or query (in which case the below SP is under the risk of returning a wrong value).

 1: CREATE PROCEDURE ProductsUpdate
 2: (
 3:         @ProductID int,
 4:         @Name varchar(40),
 5:         @Concurrency timestamp
 6: )
 7: AS
 8:     UPDATE
10:         Products
11:     SET
12:         ProductName = @Name
13:     WHERE
14:         ProductID = @productID AND
15:         Concurrency = @Concurrency
16:     -- Is it possible to have another SP or query change @@ROWCOUNT at this point?
17:     return @@ROWCOUNT


Also I was wondering about the same question but with generic queries, like below:

1: UPDATE
2:     Products
3: SET
4:     ProductName = @Name
5: WHERE
6:     ProductID = @productID AND
7:     Concurrency = @Concurrency;
8: -- Can any other query or SP get in here and alter @@ROWCOUNT?
8: SELECT @@ROWCOUNT


Thank you for your help Wink | ;) .



Niaher


-- modified at 10:52 Tuesday 30th October, 2007
AnswerRe: Basic question on SQL Pin
andyharman30-Oct-07 7:04
professionalandyharman30-Oct-07 7:04 
GeneralRe: Basic question on SQL Pin
niaher30-Oct-07 7:49
niaher30-Oct-07 7:49 
GeneralRe: Basic question on SQL Pin
andyharman30-Oct-07 9:50
professionalandyharman30-Oct-07 9:50 
GeneralRe: Basic question on SQL Pin
niaher30-Oct-07 19:41
niaher30-Oct-07 19:41 
GeneralRe: Basic question on SQL Pin
andyharman31-Oct-07 3:20
professionalandyharman31-Oct-07 3:20 
QuestionDTS Error "Execution cancel by user" Pin
Vimalsoft(Pty) Ltd30-Oct-07 3:22
professionalVimalsoft(Pty) Ltd30-Oct-07 3:22 
AnswerRe: DTS Error "Execution cancel by user" Pin
Ghazi H. Wadi30-Oct-07 22:41
Ghazi H. Wadi30-Oct-07 22:41 
GeneralRe: DTS Error "Execution cancel by user" Pin
Vimalsoft(Pty) Ltd31-Oct-07 19:50
professionalVimalsoft(Pty) Ltd31-Oct-07 19:50 
GeneralRe: DTS Error "Execution cancel by user" Pin
Ghazi H. Wadi2-Nov-07 21:50
Ghazi H. Wadi2-Nov-07 21:50 
QuestionDateTime _Oct2007 Pin
r a j u u30-Oct-07 1:25
r a j u u30-Oct-07 1:25 
AnswerRe: DateTime _Oct2007 Pin
soni uma30-Oct-07 1:38
soni uma30-Oct-07 1:38 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 1:52
r a j u u30-Oct-07 1:52 
AnswerRe: DateTime _Oct2007 [modified] Pin
Senu Gandhi30-Oct-07 2:07
Senu Gandhi30-Oct-07 2:07 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 2:14
r a j u u30-Oct-07 2:14 
GeneralRe: DateTime _Oct2007 Pin
Senu Gandhi30-Oct-07 2:16
Senu Gandhi30-Oct-07 2:16 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 2:19
r a j u u30-Oct-07 2:19 
GeneralRe: DateTime _Oct2007 Pin
Senu Gandhi31-Oct-07 1:48
Senu Gandhi31-Oct-07 1:48 

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.