Forum Replies Created

Viewing 15 posts - 316 through 330 (of 388 total)

  • RE: why deadlock?

    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

  • RE: Query Help

    sure dragos_sv, I shouldn't be so hasty with my ideas 😀

    self join is much better.

  • RE: Query Help

    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...

  • RE: Executing a query from client app. How to ensure completion if app closed?

    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...

  • RE: ANSI_NULLs when creating objects

    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...

  • RE: Service Broker Broken!

    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

  • RE: How to update table Dynamically in the procedure...?

    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...

  • RE: How to interchange rows and columns in SQL?

    look at the PIVOT command in BOL

  • RE: SQL 2005 Server Security

    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...

  • RE: to lock the particular stored procedure

    as in deny everyone from executing it? this is from BOL, DENY statement.

    USE AdventureWorks;

    DENY EXECUTE ON OBJECT::HumanResources.uspUpdateEmployeeHireInfo

    TO Recruiting11;

    GO

  • RE: dateadd function

    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...

  • RE: SQL Store procedure

    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...

  • RE: openrowset function

    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.

  • RE: openrowset function

    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

    ...

  • RE: Denying MSAccess connections to SQLServer

    Perhaps you could consider logon triggers?

Viewing 15 posts - 316 through 330 (of 388 total)