Viewing 15 posts - 316 through 330 (of 389 total)
Do you have index on orderid? If not, tablescan can try to access the same row in both transactions I think, leading to deadlock.
Piotr
...and your only reply is slàinte mhath
January 30, 2008 at 8:20 am
sure dragos_sv, I shouldn't be so hasty with my ideas 😀
self join is much better.
...and your only reply is slàinte mhath
January 30, 2008 at 6:46 am
select distinct A1 from test a
where
exists (select A2 from test b where a.A1 = b.A1 and A2 = 1)
and
exists (select A2 from test b where a.A1 = b.A1 and...
...and your only reply is slàinte mhath
January 30, 2008 at 6:41 am
Wouldn't it be better to run it asynchronously?. You don't have to schedule execution, but if you create a job that executes this sproc and call msdb..sp_start_job from you client...
...and your only reply is slàinte mhath
January 30, 2008 at 6:11 am
I can't help you with your question, but ANSI_NULLS OFF affect only comparison operators. I wouldn't bother with legacy objects (that is, if you have choice). I had the opposite...
...and your only reply is slàinte mhath
January 28, 2008 at 7:42 am
I have an impression that there is something about certificates around Service Broker. It is possible that you have to export master certificate and import it on second machine.
Piotr
...and your only reply is slàinte mhath
January 25, 2008 at 8:29 am
You have to use dynamic sql. Look for sp_executesql in BOL.
How many tables are involved in this process? Wouldn't it be better to create separate procedure for each table? I...
...and your only reply is slàinte mhath
January 25, 2008 at 3:52 am
look at the PIVOT command in BOL
...and your only reply is slàinte mhath
January 24, 2008 at 7:36 am
It is because when you recreate user account in AD, it has different SID. And it is SID that is used during authentication process. You have to drop and recreate...
...and your only reply is slàinte mhath
January 24, 2008 at 7:10 am
as in deny everyone from executing it? this is from BOL, DENY statement.
USE AdventureWorks;
DENY EXECUTE ON OBJECT::HumanResources.uspUpdateEmployeeHireInfo
TO Recruiting11;
GO
...and your only reply is slàinte mhath
January 24, 2008 at 6:01 am
Yes I can do it as well, but I suppose the problem is in first assignment. The variable is declared as datetime but then a string is assigned to it...
...and your only reply is slàinte mhath
January 22, 2008 at 3:49 am
You, as programmer decide what is to be saved. If you have a grid with subjects for a class, they won't be saved unless you implement the functionality. In you...
...and your only reply is slàinte mhath
January 22, 2008 at 3:42 am
Sorry, I don't want to be offensive, but you don't have by any chance BOL installed on your machine?
Syntax is same. I just checked.
...and your only reply is slàinte mhath
January 17, 2008 at 4:53 am
here you go, from Books On Line:
SELECT a.*
FROM OPENROWSET('SQLNCLI', 'Server=Seattle1;Trusted_Connection=yes;',
'SELECT GroupName, Name, DepartmentID
FROM AdventureWorks.HumanResources.Department
...
...and your only reply is slàinte mhath
January 17, 2008 at 4:34 am
Perhaps you could consider logon triggers?
...and your only reply is slàinte mhath
January 15, 2008 at 6:58 am
Viewing 15 posts - 316 through 330 (of 389 total)