Forum Replies Created

Viewing 15 posts - 42,901 through 42,915 (of 49,552 total)

  • RE: Log-in's summary

    Can you post one of the CREATE LOGIN statements that the script generated?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Can we change 1st table read in an exection plan

    shekihan (11/26/2008)


    By putting small table first you do assure that if the Query Optimizer (not a Query Analyzer of course) for some reason fails and decides to go your way...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page level locking is disabled????

    madhu.arda (11/26/2008)


    Thanks Gail,

    is that must and should to enable page level locking for all the indexes?

    No. It will enable page locks for the index specified in the alter index statement

    what...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page level locking is disabled????

    ALTER INDEX < Index name > ON < Table Name >

    SET (

    ALLOW_PAGE_LOCKS = ON

    )

    GO

    Also you may want to revise that script. Both showconting...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: returned Error while passing TableName as a parameter in a Stored Proc

    Please don't cross post. It just wastes people's time and fragments replies.

    Besides, I've already answered your post over here: http://www.sqlservercentral.com/Forums/Topic609456-147-1.aspx

    No more replies to this thread please.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: capture SQL statements before execution

    v.reddy (11/26/2008)


    Are you sure Trace will show satements before execution?

    You're welcome to check books online. All of the events are there along with their descriptions.

    i belive trace will show...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Can't Delete Index b/c of Constraint

    No. Just try not to have multiple constraints/unique indexes on the column(s) referenced by the key.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error while passing Table Name as a Parameter in Stored Procs

    You need to concatenate the variables into the string (beware SQL injection). They way your dynamic SQL is currently written, SQL's looking for two table variables, called @TableInput and @TableOutput...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Varible IS NULL OR Variable = Column - hang

    I'm not a fan of dynamic SQL either, but it's the only practical way to get this working with more than around 3 parameters. With 3 or less, you can...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Can't Delete Index b/c of Constraint

    All of the foreign keys that the query return reference the Names table. Try dropping them.

    It's odd, they should be referencing the pk, not the unique index.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: No local server names available when connecting to database engine

    dg (11/26/2008)


    Now we are getting somewhere,

    I'm sorry if the support here isn't up to your expectations.

    verify that SQL Server is configured in Mixed Authentication Mode

    As I said in...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to create a table and load the resultset of another sql query

    You already have the query. All you need to do is create the table to match and then convert the select to an insert. All that required is adding the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Varible IS NULL OR Variable = Column - hang

    Adam Bean (11/26/2008)


    I am going to restore to a 2005 instance and try again to prove out that this is a 2000 problem.

    Nope. It performs like a dog on SQL...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Tuning the query

    shiva challa (11/24/2008)


    With the (nolock) table hint, no shared locks are issued and exclusive locks are ignored.

    Using nolock doesn't just allow dirty data. It essentially says to SQL that...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Can't Delete Index b/c of Constraint

    Hmmm. Odd. Did you create that through the management studio GUI? If so, what options did you select?

    What do the following return?

    select name, type_desc from sys.objects

    where object_id = OBJECT_ID('NAMES') OR...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 42,901 through 42,915 (of 49,552 total)