Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,186 total)

  • RE: ORDER BY clause in View

    Im pretty sure that it is due to the fact that the view (as a general rule) doesn't retain the data and has to go get it everytime a request...

  • RE: Non logged operations

    Why not set the Recovery model = SIMPLE, SELECT INTO a "temp" table the data you want to keep, TRUNCATE the "real" table and then INSERT the data back?  After...

  • RE: Error Message

    Try CAST(SUM(FileSize)) AS BIGINT) MB,  CAST(SUM(FileSize)/1000 AS BIGINT) GB

     

  • RE: How convert char ddmmyyyy to date dd.mm.yyyy?

    Another way:

    DECLARE @Date CHAR(8)

    SET @Date = '06102004'

    SELECT

    CONVERT(VARCHAR(10), CAST(RIGHT(@Date, 4) + '-' +

      LEFT(@Date, 2) + '-' + SUBSTRING(@Date, 3, 2) AS DATETIME), 104)

  • RE: Testing for existance of Linked Server

    What about...

    SELECT TOP 1 * FROM [LinkedServer1].DB.Owner.Table

    IF @@ERROR <> 0

      BEGIN

        -- Log error stating Server1 failed

    END

     

    Repeat as needed??

  • RE: sp_changeobjectowner: help required

    EXEC sp_changeobjectowner 'you.test', 'dbo'

    or

    EXEC sp_changeobjectowner 'test', 'dbo'

     

  • RE: Help with query ???

    SELECT * FROM tblTest WHERE ColC IS NOT NULL

  • RE: Date and Time Question

    I would check the collation of the database and the table and ensure that it is set to a collation that would give you the proper DATETIME format.

    I would also...

  • RE: Initial database Size

    Not to my knowledge.  However, the database(s) will be created initially as the same size of the model database.  This should help you "guess"

  • RE: A Question about Triggers from a Newbie

    This is possible.  However, instead of a trigger sending e-mail why not have the trigger send information to a send-email table and the last step in the package will be...

  • RE: Storing Select results to variable for e-mail in T-SQL

    Just to add to what Kenneth has said (which is VERY good)...  TRIGGERS may LOCK the table and STOP ALL ACTIVITY on the table until they are DONE.

    This means that...

  • RE: Problem with the view

    Another thing you could do is :

    WHERE ISNULL(address_name, '') LIKE 'M%'.

     

    This would also eliminate NULL values

  • RE: string functions in sql

    SELECT CHARINDEX('|', '80339inesh|80339:dinesh badgujar|80339:dinesh badgujar')

    SELECT PATINDEX('%|%', '80339inesh|80339:dinesh badgujar|80339:dinesh badgujar')

  • RE: Porting Access to SQL

    Depending on how you wrote your application will determine that unfortunately....

    I would port the data to SQL and after manually fixing the keys, indexes etc. (unfortunately these are not upsizable)...

  • RE: Pulling back roles for users.. please help!

    Ok.  Sounds like you need to do the following ADD:

    HAVING COUNT(AssociateID) = [the number of different role IDs you are looking for].

    This would ONLY pull back associates that have the...

Viewing 15 posts - 766 through 780 (of 1,186 total)