Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mikehilly

  1. mikehilly

    To cut a very long story short I wa

    To cut a very long story short I want to use varibles in an Alter command in an SP i.e ALTER TABLE @tableName ALTER COLUMN @fieldName datetime but it gives me a syntax error. Is there any way around it or should I start hand cranking database mods now. Regards Mike
  2. mikehilly

    update SQL with data from another

    Write an Insert query using a select query that uses a left join. The Join would find all records in the new table and only those that match in the old table you can then use a where clause on the primary key of the old table which looks for Null values. They will be Null in Old where they do...
  3. mikehilly

    SQL Trigger oddness

    Why do my triggers fire on an update that effects one row eg [UPDATE Customer SET CustomerName = 'Some Geezer' where CustomerID = 3] but not on an update that effects multiple rows eg [UPDATE Customer SET CustomerName = "No Name" where CustomerName is null] ?? If I run the same...

Part and Inventory Search

Back
Top