Click here to Skip to main content
15,921,697 members
Home / Discussions / Database
   

Database

 
GeneralRe: MS SQL Server date format Pin
michanne4-Jul-04 17:48
michanne4-Jul-04 17:48 
GeneralRe: MS SQL Server date format Pin
spn6-Jul-04 19:51
spn6-Jul-04 19:51 
GeneralACCESS DB to SQL Pin
youssef30-Jun-04 12:02
youssef30-Jun-04 12:02 
GeneralRe: ACCESS DB to SQL Pin
Colin Angus Mackay30-Jun-04 14:04
Colin Angus Mackay30-Jun-04 14:04 
GeneralRe: ACCESS DB to SQL Pin
youssef30-Jun-04 21:51
youssef30-Jun-04 21:51 
GeneralRe: ACCESS DB to SQL Pin
RichardGrimmer30-Jun-04 22:40
RichardGrimmer30-Jun-04 22:40 
GeneralRe: ACCESS DB to SQL Pin
youssef1-Jul-04 1:31
youssef1-Jul-04 1:31 
GeneralTRIGGER with a VIEW from a Linked Servers Pin
youssef3-Jul-04 13:19
youssef3-Jul-04 13:19 
Hi,

I have an ACCESS DB (.mdb) generate by an Automation.
Now, I would like to:

1/ Copy all datas from the ACCESS DB in my SQL Database.
I using DTS. All are working.

But, after copying, I would like at each time a new record is inserted in the ACCESS DB, I copy this Record in my SQL DATABASE (synchronize the SQL DATABASE).
For this, I create LINKED SERVERS for the ACCESS DB (Named LOG).
In my SQL DATABASE, I create a VIEW that read one TABLE from LOG (linked ACCESS DB).
Now, I would like to create a TRIGGER from this VIEW for retrieve each INSERT and copy this insert in my SQL DATABASE.

Please find the CODE below :



CREATE TRIGGER trgLog on [dbo].[VIEW_LOG]
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 ='05/07/2004 00:00:00'
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

END

So in this code I Insert a test message after hat a select "insert".
But when I refresh my SQL DATABASE, I see nothing whereas I the ACCESS DATABASE the AUTOMATION insert record.

Can You Help me about that ?

Best Regards

youssef
GeneralODBC apparently has a statement length limit... Pin
CherezZaboro30-Jun-04 9:53
CherezZaboro30-Jun-04 9:53 
GeneralRe: ODBC apparently has a statement length limit... Pin
Steven Campbell30-Jun-04 13:38
Steven Campbell30-Jun-04 13:38 
GeneralPorting data from SQL Server to Oracle over ODBC Pin
pankajdaga30-Jun-04 6:55
pankajdaga30-Jun-04 6:55 
GeneralRe: Porting data from SQL Server to Oracle over ODBC Pin
RichardGrimmer30-Jun-04 22:43
RichardGrimmer30-Jun-04 22:43 
GeneralRe: Porting data from SQL Server to Oracle over ODBC Pin
pankajdaga2-Jul-04 3:40
pankajdaga2-Jul-04 3:40 
GeneralRe: Porting data from SQL Server to Oracle over ODBC Pin
RichardGrimmer2-Jul-04 4:00
RichardGrimmer2-Jul-04 4:00 
GeneralRe: Porting data from SQL Server to Oracle over ODBC Pin
pankajdaga2-Jul-04 5:53
pankajdaga2-Jul-04 5:53 
Generalinsert binded values Pin
usamadba30-Jun-04 2:28
usamadba30-Jun-04 2:28 
QuestionHow to get number of affected rows Pin
Member 119898929-Jun-04 3:07
Member 119898929-Jun-04 3:07 
AnswerRe: How to get number of affected rows Pin
Roland Bär29-Jun-04 3:20
Roland Bär29-Jun-04 3:20 
AnswerRe: How to get number of affected rows Pin
Steven Campbell29-Jun-04 7:15
Steven Campbell29-Jun-04 7:15 
AnswerRe: How to get number of affected rows Pin
sivilian2-Jul-04 7:23
sivilian2-Jul-04 7:23 
Questioncan any body help me? Pin
Anonymous28-Jun-04 22:18
Anonymous28-Jun-04 22:18 
Questionsolution? Pin
wgdesigner28-Jun-04 22:04
wgdesigner28-Jun-04 22:04 
AnswerRe: solution? Pin
Hesham Amin28-Jun-04 22:17
Hesham Amin28-Jun-04 22:17 
GeneralNeed advice with ExecuteScalar() Pin
akak199728-Jun-04 21:41
akak199728-Jun-04 21:41 
GeneralRe: Need advice with ExecuteScalar() Pin
Grimolfr29-Jun-04 3:20
Grimolfr29-Jun-04 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.