Forum Replies Created

Viewing 15 posts - 4,666 through 4,680 (of 5,103 total)

  • RE: DTS - fault tolerance

    make sure to use the "on error" on your activex scripts too


    * Noel

  • RE: difference between primary key and IDENTITY

    Some systems I have "inherited" had multiple Colums primary keys (4-5) and I was task to speed some of the code! One of the shortest solutions to get it going...


    * Noel

  • RE: Array Question

    declare @t table (

     tid int,

     tname varchar(5)

    )

    INSERT INTO @T (tid, tname) VALUES (1,'HI')

    INSERT INTO @T (tid, tname) VALUES (2,'Ho')

    INSERT INTO @T (tid, tname) VALUES (3,'HI')

    INSERT INTO @T (tid, tname) VALUES (4,'Ha')

    INSERT...


    * Noel

  • RE: difference between primary key and IDENTITY

    Ok a primary key(pk) should be INVARIABLE with time. Sometimes it happens that what you thought it could be a good pk candidate is not anymore and you may ended...


    * Noel

  • RE: SQLServer and Oracle

    Have a look at Linked Servers in BOL


    * Noel

  • RE: DBAs still know whats best for their DB, right?

    thanks god those deals exist otherwise I would have been kicked out of my job


    * Noel

  • RE: LastUpdatedDate and LastUpdatedUser

    I said Nested Triggers  I should have said Recursive Triggers which by default is disabled

    but even  if...


    * Noel

  • RE: Varying Column Name

    Or:

    Declare @period int

    SELECT @period = 3

    Select (Case

     When @period = 1 then Acnt01

     When @period = 2 then Acnt02

     When @period = 3 then Acnt03

     When @period = 4 then Acnt04

     When @period =...


    * Noel

  • RE: Maximum length of a Varchar Variable

    On your post the last line is :

    ...price' execute (@query1+@query2+@query3+Query4)

    shouldn't Query4 be @query4?


    * Noel

  • RE: loop through

    I am not sure of your table structure or relationships there but this is a shot:

    SELECT DISTINCT

                dbo.MySupportFiles.FileID,


    * Noel

  • RE: INSERT INTO used with CASE SQL statement

    try:

    INSERT INTO Months(user_id,  last_name,first_name, Jan, Feb, Mar,...)

    SELECT user_id, last_name, first_name

    , SUM(CASE WHEN MONTH(workdate) = 1 THEN bhrs ELSE 0 END ) as Jan

    , SUM(CASE WHEN MONTH(workdate) = 2 THEN bhrs...


    * Noel

  • RE: DBAs still know whats best for their DB, right?

    It is a tough decision to make when there have to be Multiple Groups with that account. For some reason it does not happen very often when you want the...


    * Noel

  • RE: Query Help: Replace between two tables for each row

    I am assuming from your post TableB RecID is primary Key on that table

    UPDATE TableA Set ValueToBeReplaced = B.SomeValue

    From TableB B

    Where TableA.RecId = B.RecID

    If you are possitive that there are the...


    * Noel

  • RE: Searching Stored Procedures

    The information you are looking for is in the syscomments table.

    There are several scripts on this site that can get you started

    For example try this one and modifiy it just for...


    * Noel

  • RE: How to query for current Recovery Model ?

    on sysdatabases the RECOVERY MODEL is a combination of the status Field

    values 4 and 8 !!!  


    * Noel

Viewing 15 posts - 4,666 through 4,680 (of 5,103 total)