Forum Replies Created

Viewing 15 posts - 361 through 375 (of 595 total)

  • RE: Using "Like" or Wildcard

    Could you do a quick Response.Write on your querystring and post the results? Are you absolutely positive that the string being passed to the Recordset.Open method is the same...

  • RE: Using "Like" or Wildcard

    The SQL is correct. Perhaps you could post an error message or the VB/ASP code you are using?

  • RE: IF clause in cursor

    quote:


    can I user If condition in cursor


    Yes, you can use it same as if you...

  • RE: Using "Like" or Wildcard

    Try:

    
    
    SELECT LEDef_PK
    FROM LEDef
    WHERE LEDef_ActiveInd = 1
    AND LEDef_Cd LIKE '10-%'
  • RE: alternative to nolock to avoid blocking trans

    How are you obtaining the resultsets? If from ADO, be sure to set the IsolationLevel of the ADODB.Connection object to ReadUncommitted. If from SQL, then you can issue...

  • RE: Tables with tree structure

    If you can rely on a child only having 1 parent, then use a linked list approach, built on a single table:

    
    
    CREATE TABLE Nodes
    (
    NodeID...
  • RE: indexing a 100 million row table

    1) Fillfactor: This depends on how often you rebuild the indexes. If you can rebuild the indexes directly after the DELETE/INSERT, and there are no updates throughout...

  • RE: Importing PHP into MSSQL 7.0

    quote:


    ...I've a bunch of php scripts which comprise a DB. I'd like to import the php scripts into mssql 7.0 to...

  • RE: leading zeroes

    quote:


    I would like to have 009 in a numeric field but it save it as 7.


  • RE: invalid column name

    quote:


    ok, how do i avoid the ERROR:

    "divide by zero error encountered"


    Use a CASE expression in...

  • RE: DELETE DUPLICATE ROWS

    satish,

    Take a closer look at my earlier query. The DELETE FROM Orders FROM Orders was actually not a typo, although I admit that the SQL syntax in this situation...

  • RE: invalid column name

    You don't want the SUM in the percent part, plus you can't use aliases in the SUM expression...must use the full expression. If you don't want to do this...

  • RE: DELETE DUPLICATE ROWS

    satish,

    the AS is technically optional, so you can remove it if you want. Other than that, my colleague and I can't see anything wrong with it. However, to...

  • RE: A Varchar(1000) field vs 1000 Bit fields

    Or, neither of those solutions and normalize the data:

    
    
    CREATE TABLE Interest
    (
    Code CHAR(1) NOT NULL
    , Description VARCHAR(100) NOT NULL
    )
    
    
    CREATE TABLE [User]
    (
    ...
  • RE: Database Global Variable

    Why not store it in a table?

Viewing 15 posts - 361 through 375 (of 595 total)