| Author |
Topic  |
|
|
AskSQLTeam
Ask SQLTeam Question
USA
0 Posts |
|
|
Anonymous
Starting Member
0 Posts |
|
|
Anonymous
Starting Member
0 Posts |
|
|
Anonymous
Starting Member
0 Posts |
|
|
kflim
Starting Member
1 Posts |
Posted - 09/10/2003 : 04:03:23
|
I tried used cnAExecute "INSERT INTO UserInfo SELET * FROM UserInfo IN " & """" & sLocation & """"
in visualbasic but an error occur said incorrect syntax near the keyword 'IN'. sLocation = "c:\user.mdb"
:) |
 |
|
|
youssef
Starting Member
1 Posts |
Posted - 07/13/2004 : 11:37:27
|
Hi,
I have the same problem that you.
I using a sql database that I created the same structure of the table in my ACCESS Table. I using linked server. At this point, all are ok. In my SQL databse, I create a view of my linked table of ACCESS. At this moment , I can see all records from my ACCESS DB. But now, I would like to use a TRIGGER in my VIEW for retrieve if a new record was inserted in my ACCESS TABLE and inserte it in my SQL table. I create a Trigger in my View :
the code is :
CREATE TRIGGER TG_INSERT_LogStatus0 ON [dbo].[VIEW_MTX_BTS_LOG] ---------------------------------------------------------- INSERT in Log --FOR INSERT INSTEAD OF INSERT AS BEGIN declare @Log_Date datetime, @Log_Input smallint, @Log_Level smallint, @Log_Milliseconds smallint, @Log_Output smallint, @Log_Panel smallint, @Log_Response smallint, @Log_Status smallint set @Log_Date =GETDATE() set @Log_Input =1 set @Log_Level =1 set @Log_Milliseconds =1 set @Log_Output =1 set @Log_Panel =1 set @Log_Response =1 set @Log_Status =1 exec InsertLog @Log_Date,@Log_Input,@Log_Level,@Log_Milliseconds,@Log_Output,@Log_Panel,@Log_Response,@Log_Status
ENDBut nothing when a new record was inserted in my ACCESS TABLE.
Can you resolve my problem ?
Best regards |
 |
|
|
anar
Starting Member
1 Posts |
Posted - 12/08/2006 : 03:34:59
|
| worked nice, thanks |
 |
|
| |
Topic  |
|