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
Create Batch file to setup ODBC DSN on the fly
Backup Server fails with Net-Library routine net_listen() failed in srv__start_net Network error: status = 23 - Net-Lib protocol driver call to register a listener failed
SBS 2003 Cold Backup and Restore using NTBackup.exe
Drag and Drop Emails from Sharepoint to Outlook
"The object *************" in the message tracking logs can't be found in the directory. The object may have been deleted. The tracking history may be incorrect."
Dynamic Base HREF?
Opinions of test plan for Exchange 2003 bare-metal restore
Unable to locate loadable module in module_path
dependent module libssl3.so could not be loaded
Win 2003 or SBS R2