mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 15:01:45 +03:00
Added tag tag1 for changeset 4c285537b335
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
-- =============================================
|
||||
CREATE PROCEDURE UpdateFriendLocationById
|
||||
@FriendID nvarchar
|
||||
AS
|
||||
BEGIN
|
||||
-- SET NOCOUNT ON added to prevent extra result sets from
|
||||
-- interfering with SELECT statements.
|
||||
SET NOCOUNT ON;
|
||||
|
||||
-- Insert statements for procedure here
|
||||
UPDATE [Friends]
|
||||
SET [Location] = GEOGRAPHY::Parse([LocationStr])
|
||||
WHERE Id = @FriendID
|
||||
END
|
||||
GO
|
||||
@@ -0,0 +1,24 @@
|
||||
-- =============================================
|
||||
-- Script Template
|
||||
-- =============================================
|
||||
USE [MyFriends]
|
||||
GO
|
||||
/****** Object: Table [dbo].[Friends] Script Date: 03/14/2011 18:32:33 ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
CREATE TABLE [dbo].[Friends](
|
||||
[Id] [nvarchar](100) NOT NULL,
|
||||
[FriendName] [nvarchar](50) NOT NULL,
|
||||
[FriendImageUrl] [nvarchar](150) NULL,
|
||||
[LocationStr] [nvarchar](100) NULL,
|
||||
[Location] [geography] NULL,
|
||||
[LastUpdated] [datetime] NOT NULL,
|
||||
CONSTRAINT [PK_Friends] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[Id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
INSERT [dbo].[Friends] ([Id], [FriendName], [FriendImageUrl], [LocationStr], [Location], [LastUpdated]) VALUES (N'1', N'Clody', N'http://aaa.com/aaa.png', N'POINT(10 34)', NULL, CAST(0x00009EA600000000 AS DateTime))
|
||||
Reference in New Issue
Block a user