Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to add values sql and my sql server database windows service is possible give me any example 
Posted
Comments
thatraja 27-Jan-14 2:36am    
Not clear. Explain clearly
satheeshkumar chinnadurai 27-Jan-14 4:31am    
1. Have datatbase one for mysql
2. Have datatbase one for sql server 2008
i want to insert one record mysql . at the same time sql server 2008 want to insert how without using windows servicing

Try:
SQL
SELECT SalesMan, SUM(Sales) AS [Total Sales] 
FROM MyTable
GROUP BY SalesMan
 
Share this answer
 
Are you asking simple insert query?
try this:
SQL
INSERT INTO t_table(id, name) VALUES (2,'myName');

this query will work both in sql server and mysql.

for windows service try this link:
windows service[^]
 
Share this answer
 
Comments
satheeshkumar chinnadurai 27-Jan-14 5:05am    
in mysql database insert one values. i want to insert same value sql server that is only needed
Ahmed Jubayer 27-Jan-14 5:24am    
you can use temporary database like access.get and store the data from mysql to access. and in a time interval insert the data to sql server from access. windows server will be the best way to do this.
satheeshkumar chinnadurai 27-Jan-14 5:39am    
if possible to do windows service give me example.....
Ahmed Jubayer 27-Jan-14 6:14am    
I already did....!!!
http://www.codeproject.com/Tips/704008/Send-Auto-Notification-Using-Windows-S
try to implement your own logic.... GOOD LUCK!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900