Microsoft
Software
Hardware
Network
Question : Can I complete a database row on insertion?
I currently have a table with 8 columns and I want to add another 2. The complication is that I would like to get the data for the other 2 columns from the database (using somekind of trigger, i guess) as the row is inserted.
My application sends:
INSERT(c1,c2,c3,c4,c5,c6,c
7,c8)
With the idea being that the resulting insert is:
INSERT(c1,c2,c3,c4,c5,c6,c
7,c8, F(c1), F(c2))
Where the functions (F) invloved retreiving values from the database based on the input value.
Any ideas?
Answer : Can I complete a database row on insertion?
Then try using
INSERT INTO urtable (c1,c2,c3,c4,c5,c6,c7,c8, c9, c10)
SELECT c1,c2,c3,c4,c5,c6,c7,c8, F(c1), F(c2)
Hope this helps
Random Solutions
Autodiscover in Exchagne 2007 Not Working from Outside Non-domain computers
Excel - Error loading DLL
Disable Shift ByPass Key = Error Message
TRANSPARENT BACKGROUND color at RMagick does not work properly
Microsoft, Exchange, 2000, Active Directory / DNS, Process MAD.EXE (PID=1324). All Domain Controller Servers in use are not responding:
Disallowing Server.ScriptTimeout
XP screen is upside down
How to disable screensaver when using video players
Best method to import XML to a SQL DB - XML contains schema and data mixed
Can I Speed up NTBackup?