Forum Replies Created

Viewing 15 posts - 48,661 through 48,675 (of 49,552 total)

  • RE: Facing a Problem please help

    Your wild cards are a little too wild. Keywords LIKE '%c%' will match any of the following. 'Access','Visual Basic','C#', 'Javascript','Cobol',etc

    That may be the cause of your 'ghosts'

    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: Searching Query problem..

    The same way you'd use it outside a stored proc, or anywhere else for that matter

    SET <variable> =  dbo.<functionname>(<parameter list> )

    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: Facing a Problem please help

    And please don't post multiple threads regarding the same problem

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=338&messageid=367811

    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: query giving problem

    Are the tables in Access or in SQL? * is the access wildcard. % is the sql equivalent.

    p.s. using wildcards like you are will almost guarentee terrible performance with large...

    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: Dead Lock

    That query should be fine, and there should be no need for locking hints.

    Please can you post the enire trigger code and the schema of TableA?

    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: Very tough Challenge.....

    There is one? That's news. Could you drop me a private message wit it 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: Very tough Challenge.....

    Or when the query includes a half-written stored proc. See the OP's latest posting.

    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: Searching Query problem..

    Between works quite well.

    Think about what it means for an ip address to be in a range.

    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: Searching Query problem..

    60000 rows is small. Shouldn't have trouble changing the schema for that.

    Otherwise, substrings and comparisons.

    The commented out stored proc has the right idea with the substrings. You'll just have to...

    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: Dead Lock

    Nolock has no effect in an update statement. It only affects read locks.

    Could you post the trigger's code and, if possible the deadlock graph (obtained either using profiler, or from...

    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: Searching Query problem..

    More homework?

    (http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=366682)

    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: Incremental INSERT statement

    Or, since we're using SQL 2005, we can use a CTE

    ;

    WITH LotsOfDates(TheDate) AS (

    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: PIVOT of varchar alters the value

    Can you post the query please? Table structure and sample data also, if possible.

     

    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: Very tough Challenge.....

    Don't post your homework here like that again. Homework is supposed to be for you to do to learn something, not for other people to do for you.

    You learn nothing...

    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: Very tough Challenge.....

    Maybe. Won't be the first time.

    I used to do student marking when I was at university. The markers had a habit of doing an internet search for code if...

    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 - 48,661 through 48,675 (of 49,552 total)