Avatar of Gordon Hughes
Gordon HughesFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

help with a trigger of formula

I have an application that uses MSSQl
I have created a column in the database
I want to update this column when data exists in another table
I created a trigger which seemed to work but then it caused an issue when trying to run a procedure
so I thought maybe I could modify the column to include some formula to, like "if isnull ([wo.draw]) then 'No' else 'Yes'"
but that does nothing
Any ideas?
Gordon
Microsoft SQL Server

Avatar of undefined
Last Comment
Gordon Hughes
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

I created a trigger which seemed to work but then it caused an issue when trying to run a procedure
Can you post the trigger code? And what's the issue? There's any error message that you can share with us?
Avatar of Gordon Hughes

ASKER

Think I have solved it
Avatar of Jason clark
Jason clark
Flag of United States of America image

Please share the code if you exactly need a help.
ASKER CERTIFIED SOLUTION
Avatar of Gordon Hughes
Gordon Hughes
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Either post the code or request the thread be deleted.  As it stands it is of no use to anyone.
Avatar of Gordon Hughes
Gordon Hughes
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Re-wrote the trigger
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo