Forum Replies Created

Viewing 15 posts - 6,781 through 6,795 (of 7,466 total)

  • RE: Simple But Serious - Please Help

    sorry for the delay.... been out for the long weekend

    Like Bob Monahon replied : this query...

  • RE: Is there a way to make DELETEs faster?

    just to add ..

    you can use Alter view . BOL : Alters a previously created view (created by executing CREATE VIEW), including indexed views, without affecting dependent stored procedures or...

  • RE: Self Join (how to retrieve multiple records)

    - tripple join

    or

    where with exists-clause for each condition

    e.g.

    select *

    from myself T1

    where exists (select * from myself where id = T1.Userid and...

  • RE: Setting where to leave the gaps in Indexes (fill factors)

    AFAIK this is not possible with sqlserver, unless you use partitioned views. i.e. create a table per partition, manage each table's indexes according to the specific tables needs and create...

  • RE: Job Scripting Error

    this what I use with VB6 sqldmo :

    I hope this can help sort things out

    Private Sub ScriptJobs()

        On Error GoTo ErrorHandler

       

        strStatementId...

  • RE: ISZero

    just my 2 ct

    - Why use a count(*) if your functionality is 'if exists '

    - case yourcol when 0 then ...

                         else yourcol

                         end

     

  • RE: Job Scripting Error

    are you member of the sysadm-sqlserver-role on the instance where it fails ?

  • RE: Simple But Serious - Please Help

    DECLARE @MaximumDate  char(8) ?? Why not use smalldatetime ??

    Is MaximumDate in the table/view also defined char ?? if yes,you'll have to take care of it's format...

  • RE: Last Updated datetime for 100+ tables

    We use this T_TableLoadData in a way that we record if data is being loaded (loading_bit = true) and all applications querying the data will use a view which has an...

  • RE: Is there a way to make DELETEs faster?

    truncate clears the whole table and frees the pages in use by the table.

    Delete is a logged operation and can have conditions. pages in use by the table are freed...

  • RE: Last Updated datetime for 100+ tables

    It will be more interesting when :

    1) make your timestamp_last_update a datetime column !

    2) always update the last_update_error (make it INT)

    set @SQL_Error = @@error

    if @SQL_Error = 0

    begin

    update T_TableLoadData

        set...

  • RE: Is there a way to make DELETEs faster?

    if you are not using a where clause , you could use "truncate". see BOL

    Try to perform many small chunks of transactional deletes to avoid blocking.

    SET ROWCOUNT 1000

    declare @Nrows int

    set...

  • RE: Last Updated datetime for 100+ tables

    - doesn't Lotus Enterprise Integrator  have any error-reporting feature ??

    - you could create a parameter-data containing Table_name and timestamp_last_update and then add as last statement of each table-handling block :

     update...

  • RE: Cannot connect to Instance_3 but can connect to instance_2

    thanks for your time.

    Instance_2 is using port 2446

    Instance_3 is using port 2072

    they reside at the same server.

    Regarding the udp 445 : I have always been able to connect to instance_2,...

  • RE: sql script to show all references to a field

    you might want to use :

    exec sp_depends  @objname =  'object'

    documented in BOL

Viewing 15 posts - 6,781 through 6,795 (of 7,466 total)