Forum Replies Created

Viewing 15 posts - 4,486 through 4,500 (of 5,103 total)

  • RE: Do I need to create a temp table?

    NO you don't but it may be easier to maintain

    In any case if you don't want to create the table just use:

    declare

      @start...

  • RE: Query problem

    David's Solution is OK as long as you have CONSECUTIVES Ids . If you don't then you can:

    DECLARE @strLPriceName varchar(100)

    SELECT  @strLPriceName = ''

    UPDATE PriceName

    SET @strLPriceName = PriceName = CASE...

  • RE: Data till transaction is commited

    That data IS written to disk. It goes to the Transaction Log. When you commit it is moved to the database file (at checkpoint time) when you roll it back...

  • RE: SQL Limitation

    Tables per select: 256

    For a comprenhensive list look for :Maximum Capacity Specifications in BOL

    HTH

     

  • RE: Question of the Day for 08 Mar 2004

    Hansje 

    Can 1 expect a similar situation with Access, Word? ASCII's? Oracle(shivver)?

    That situation is particular for the jet Engine(Microsoft.Jet 4.0.OLEDB ). If you...

  • RE: Deadlock Problem Analysis

    Stefan.

    I had some problems like those a long time ago. It's a shame I can't remember what was the solution.

    What I meant by using another field is:

    Suppose you can...

  • RE: Help need in SELECT statement

    select A.*

    from TableA A LEFT JOIN TableB B

    ON A.ID = B.ID

    Where B.ID IS NULL And (A.CDate BETWEEN date1 and date2)

  • RE: Deadlock Problem Analysis

    Jack,

    You  got the Idea

  • RE: How to view Job History a User Login

    Ok, I am assuming you want to let a login who is not part of sysadmin view the job history.

    First you must configure the proxy account for the SQL Sever...

  • RE: Performance Hit When Using Variable Instead of Literals.

    when you use variables the plan can vary a lot depending on the number of records returned. If for example the query is very selective (very few rows)  you may end...

  • RE: Deadlock Problem Analysis

    DELETE from [SYSTEM].[INSTANCE_REF] WHERE INSTANCE_ID = @nINSTANCE_ID OR PARENT_INSTANCE_ID = @nINSTANCE_ID

    I am assuming this is a Self referenced table, Right?

    if the answer to the above question is yes READ...

  • RE: Recording multiple days of the month

    OR If you can live with undocummented functions

    DECLARE @str char(32) , @int int, @backToChar char(32)

    SET @str ='10100101101001011010010110100101'

    select  @int = fn_replbitstringtoint(@str)

    select @backToChar = fn_replinttobitstring(@int)

    SELECT @backToChar ,@str ,@int

  • RE: Recording multiple days of the month

    DECLARE @str char(31) , @int int, @backToChar char(31)

    SET @str ='1010010110100101101001011010010' -- Only 31 Bits

    -- To Int

    SELECT @int = ISNULL(@int,0) + CASE WHEN Substring(@str,number,1)...

  • RE: datetime query

    I don't have sql 7 here but I thought that information_schema.* where views that extracted system tables information.

    Are you saying that if  I upgrade a db from 7 to...

  • RE: List all Indexes on all tables in given database.

    This may give you a little more than what you asked for but it is simple and easy to use: 

    DBCC SHOWCONTIG WITH TABLERESULTS , ALL_INDEXES

Viewing 15 posts - 4,486 through 4,500 (of 5,103 total)