SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Trigger on Update MSSQL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brizey
Starting Member

2 Posts

Posted - 03/30/2012 :  03:45:01  Show Profile  Reply with Quote
I need some help with creating my trigger, I want to run this query after any update in my gpsinfo table on my GPSNET database

AFTER UPDATE
AS
UPDATE [GPSNET].[dbo].[gpsinfo]
SET [GeoLocation] = geography::Point([latitude], [longitude], 4326)
GO

rajarajan
Starting Member

India
48 Posts

Posted - 03/30/2012 :  04:00:27  Show Profile  Reply with Quote
http://www.codeproject.com/Articles/25600/Triggers-Sql-Server

This will help you ..
Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8515 Posts

Posted - 03/30/2012 :  04:54:29  Show Profile  Visit webfred's Homepage  Reply with Quote
quote:
Originally posted by brizey

I need some help with creating my trigger, I want to run this query after any update in my gpsinfo table on my GPSNET database

AFTER UPDATE
AS
UPDATE [GPSNET].[dbo].[gpsinfo]
SET [GeoLocation] = geography::Point([latitude], [longitude], 4326)
GO


I don't think it is MS SQL Server?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

rajarajan
Starting Member

India
48 Posts

Posted - 03/30/2012 :  05:07:37  Show Profile  Reply with Quote
Its just a sample ..how to Create trigger
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000