473,493 Members | 4,347 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Interbase to ms sql

1 New Member
i need help with trigger, i've look online and there's nothing out there that trying to do what i do... so if u could just tell me that it can't be done in ms sql then please do so... cause i'm just about to give up on this.

below is the interbase code
Expand|Select|Wrap|Line Numbers
  1. SET SQL DIALECT 3;
  2.  
  3. SET NAMES NONE;
  4.  
  5.  
  6. SET TERM ^ ;
  7.  
  8.  
  9. CREATE TRIGGER ASSET_BI FOR ASSET
  10. ACTIVE BEFORE INSERT POSITION 0
  11. AS
  12. BEGIN   
  13.   /* use parent's label  */
  14.   IF(New.parentID IS NOT NULL) THEN
  15.     SELECT label FROM Asset WHERE assetID = New.parentID INTO New.label;
  16.  
  17. END
  18.  
and i want this to be doing the same in ms sql
the asset table join to itself...

so exactly what i need 2do is if the parent id is being pass through the insert, then do a look up for the name in the asset table and replace it with the name i'm trying to insert...

any comment is much appriciated
i've spend a whole days and night to try and figure this out... now i'm tired and just about to give up...

thank you in advance
Jul 24 '07 #1
0 807

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1997
by: UnixUser | last post by:
I am looking as some configuration parameters fir Firebird or interbase and the php.ini file. The document has information like ibase.allow_persistent "1" and under a column labeled changeable it...
1
2177
by: UnixUser | last post by:
the sample coding for interbase indicate print $row."\n"; In this example what does the period mean?
0
1412
by: Gunnar Heiene | last post by:
Where can I get a php_interbase.dll to use with Interbase 5.6? Gunnar
3
5929
by: William Buchanan | last post by:
Hi I have the following stored proc in interbase (which might contain errors - i'm doing it off the top of my head), which I would like to convert into oracle. Can you help? What I want back is...
1
6078
by: Venky | last post by:
I'm compiling a C program that is using Interbase 6.0 APIS. Getting the following errors at the time of linking. Linking test.exe: Linker Warning: No module definition file specified: using...
0
1115
by: Mateusz [PEYN] Adamus | last post by:
Hi I'm writing a C# application which will work on Interbase DB and I came across a problem. I would like to menage users of the database from my application. I found .Net provider which had...
3
1911
by: Jay Douglas | last post by:
Greetings all. I'm in need of some serious guidance. I'm working on connecting a c# asp.net app to an InterBase v6 database that sits on a remote machine. I can't get any ODBC / Open Source .net...
0
3802
by: Juande | last post by:
Hello all, How can I export a table from Interbase to Access .mdb via ODBC in .NET?, Is there any working sample?, I've get to connect to Interbase and retrieve data from it in my VB .NET...
0
5739
by: OverTheTop | last post by:
All the usual Newbie stuff applies... I have a Windows2000 Server with ActivePerl and a module (DBD-Interbase) that worked fine. Trying to duplicate the environment on Windows2003 Server for...
2
2758
by: Mike Hjorleifsson | last post by:
Has anyone gotten python working with Interbase database platform ? I need to query some info from an interbase database on another server need a lil help getting started.
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.