Viewing 15 posts - 2,536 through 2,550 (of 2,647 total)
Hmm... What I would do is create another column and make it an identity insert starting at 10000 or something... You could even make this your primary key and get...
September 21, 2011 at 3:26 pm
I think we really need more information here... What exactly are you trying to do; i.e. if a new row is inserted, what changes with an old row? Also, if...
September 21, 2011 at 12:58 pm
I'm not sure that deadlocks are really your concern here. Of course, this all depends on the data. Are each of these users going to be altering the same...
September 21, 2011 at 12:54 pm
I'm not sure that partitioning is the best way to do this since you still have to go through all of the data no matter which partition it is.
Jared
September 21, 2011 at 12:44 pm
Can you have 1 column be an identity column, another be a flag or something, and a final one be a calculated column based on the identity and the value...
September 21, 2011 at 12:39 pm
I find it interesting that you know what the MERGE statement is, yet you do not know how to update using an inner join. Is this a homework question?
Jared
September 21, 2011 at 12:34 pm
This would be done using an inner join.
Thanks,
Jared
September 21, 2011 at 12:21 pm
Gabriel P (9/21/2011)
SSMS Menu -> Tools -> Options
In the left window click on the SQL Server Object Explorer branch > Scripting
In the list...
September 21, 2011 at 10:38 am
Well... A nested transaction is where the transaction inside another needs to occur first. It must be that the one inside cannot be accessing a linked server. Hmm... Sorry, I...
September 20, 2011 at 3:35 pm
NJ-DBA (9/20/2011)
jared-709193 (9/20/2011)
September 20, 2011 at 11:40 am
I still believe that we are missing a bigger issue here. We are developers/admins who work within an interface that executes script very easily. We can all come...
September 20, 2011 at 11:22 am
1. Are both servers running the exact same version of SQL Server? i.e. 10.50.2500
2. We had issues running stored procedures that had heterogeneous queries and found that you must create...
September 20, 2011 at 10:59 am
The other thing that will not require you to change any settings or add nonsense code is to simply disconnect the session after the query is generated. Or, if you...
September 20, 2011 at 10:44 am
danschl (9/16/2011)
And if there is a reasonable chance the database is going to grow as they tend to do. Better to do...
September 16, 2011 at 1:45 pm
Try this:
ALTER PROCEDURE [dbo].[abc_specialty1_sp_]
@sysID bigint,
@qnxtStatus char(15),
@ReturnCode AS INT OUTPUT,
@ErrMsg nvarchar(4000)OUTPUT
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRAN T1
BEGIN TRY
UPDATE abc_specialty_tbl
SET code =
CASE
WHEN NPVS.code IS NOT NULL THEN NPVS.specialt
ELSE NPS.specialty
END,
type =
CASE
WHEN NPVS.type IS NOT NULL...
September 15, 2011 at 3:10 pm
Viewing 15 posts - 2,536 through 2,550 (of 2,647 total)