Forum Replies Created

Viewing 15 posts - 1 through 15 (of 83 total)

  • RE: Recursive Select On the table

    If you use a cursor then you can get locking issues because the table is held open while the cursor runs.

    My looping code only locks the record that is selected...

  • RE: Suggestions?

    Your log file won't shrink if it has uncommitted transactions in it.

    Any mass inserts, deletes, updates will cause the log file to grow significantly.

  • RE: Recursive Select On the table

    Try the following

    CREATE FUNCTION dbo.fnGetNode (

    @lNodeId Int --##PARAM @lObjId The parent node for which children will be retrieved.

    ) RETURNS @tblNode TABLE (

    ObjId Int PRIMARY KEY ,

    ParentId Int

    )

    AS

    BEGIN

    DECLARE @lNextNode Int

    SET...

  • RE: Getting column headers

    If you put SET FMTONLY ON in the head of a query then no results will be returned, only the column headers.

  • RE: Getting column headers

    If you put SET FMTONLY ON in the head of a query then no results will be returned, only the column headers.

  • RE: SQL Server Performance Problems

    I take it that the machine works fine when NOT using the application?

  • RE: The Best Kept Secret About SQL Query Analyzer

    Thank God it was repeated!

  • RE: The Great Uproar

    In the book on presentations "I can see you naked" it poses the question "should you ever smoke during an presentation"?

    The answer was an emphatic NO. The argument was...

  • RE: Create procedure to delete records and reset identity column.

    DBCC CHECKIDENT ('your table',RESEED ,your new identity value)

  • RE: Must Declare Variable error....

    Your variable is out of scope hence the problem

    Why not simply put

    SELECT @Count = COUNT(*)

    FROM app_client

    WHERE first_name = @name

    AND last_name = @Last

  • RE: Bulk XML Upload problem

    WOW!!!!!!!

    I would never have believed this could be done so quickly!

    Can I ask how you generated the Schema? Is it via a tool or is it manually via an...

  • RE: Bulk XML Upload problem

    Thanks, I should be extremely grateful for any help you can offer.

    Well the schema I came up with looks like this

    <?xml version="1.0" ?>

    <Schema xmlns="urn:schemas-microsoft-com:xml-data"

    xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"

    xmlns:sql="urn:schemas-microsoft-com:xml-sql" >

    <ElementType name="BetID" dt:type="string" />

    <ElementType name="CustomerID" dt:type="string"...

  • RE: Wind Sea Power

    The problem with the UK tidal power is building something strong enough to last. There was an experimental tidal turbine on one of the isles off Scotland. It...

  • RE: Wind Sea Power

    I know that you can get LED bike lights. Scarily bright and run for ages on a small battery. compare that to Lead acid halogens which only last...

  • RE: Duplicating a database

    My personal preference would be to have the nights backup files stored in a particular location.

    When the user selects the database they want to copy they get a restore of...

Viewing 15 posts - 1 through 15 (of 83 total)