Forum Replies Created

Viewing 15 posts - 976 through 990 (of 2,073 total)

  • RE: Are the posted answers getting worse?

    Really stupid things in my junior dba-years:

    Dropping the wrong table in a 40gb database. Sure I'm on the testserver.

    Update without where clause (where's my history table)

  • RE: Enjoy Christmas Eve

    Merry Christmas!

  • RE: Access client truncating data

    You could recreate the view on the serverbackend and relink the view afterwards in Access.

    This should be done whenever underlying datastructure changes, since views in sqlserver keep the definition of...

  • RE: Access Front end and SQL Backend table relationships

    You can union both results together

    select EmpID

    ,LName

    ,FName

    ,Role

    ,FileID

    ,FileNo

    ,SectID

    ,AttyID

    ,FileName

    ,DateOpened

    ,Dept

    ,Status

    ,Desc

    from employees

    inner join files

    on empid=sectid

    union all

    select EmpID

    ,LName

    ,FName

    ,Role

    ,FileID

    ,FileNo

    ,SectID

    ,AttyID

    ,FileName

    ,DateOpened

    ,Dept

    ,Status

    ,Desc

    from employees

    inner join files

    on empid=attyid

    order by empid

  • RE: Access client truncating data

    Is the table definition in Access updated?

  • RE: Linked SQL table giving incorrect data

    Thanks for providing the sample data.

    I didn't find anything odd in query analyzer (still the same 13 records)

    Yet some notes:

    *The view uses TOP 100 PERCENT

    This can be removed as sorting...

  • RE: Linked SQL table giving incorrect data

    Could you post some sample data and the query to recreate the problem?

  • RE: Linked SQL table giving incorrect data

    Odd that adding an index would cause duplicate records to appear.

    Sure that the query is built correctly?

  • RE: Excel file - MS ACCESS

    Hello,

    I haven't coded in .Net since long.

    Just some checks to narrow the problem area

    Excel file imported:

    Does the MessageBox.Show("The import is complete!", "Import File", MessageBoxButtons.OK shows up? (Excel file...

  • RE: Restrict Values to Values occurring in other table

    Back again.

    What works:

    Allows: swapping in a single update

    Disallows: swapping in 2 separate updates

    Sample data devices:

    pk 10 , sim 10

    pk 20 , sim 20

    Allowed:

    update devices

    set simid=sim

    from devices

    inner join

    (

    --setting multiple values...

  • RE: Restrict Values to Values occurring in other table

    Cheers!

    About the non-clustered index on device.simid.

    By default, when you create a foreign key, sql server doesn't automatically add an index on both columns involved in the master-parent relationship (at least...

  • RE: Production issue

    Autogrowth is recommended be a fixed size instead of a percentage.

    A monitoring script for database-size should be in the scripts-sections.

  • RE: Backups and Transactions Log relationships

    Hello,

    If you wish to restore a database to a point in time you will need

    A full backup to restore from

    + A differential backup to restore from (optional, contains all...

  • RE: Restrict Values to Values occurring in other table

    Hello,

    Thanks for the sample data. It was great for testing.

    Columnnames can vary.

    I would implement it via a foreign key (validation) +trigger (preventing duplicates)

    --check if sim is valid using...

  • RE: Cross Server Queries

    Are the new records inserted in "Tom" or is there replication involved (possible delay)?

Viewing 15 posts - 976 through 990 (of 2,073 total)