Viewing 15 posts - 1 through 15 (of 15 total)
i have used this code for converting ipv4 address
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[fnBinaryIPv4](@ip AS VARCHAR(15)) RETURNS BINARY(4)
AS
BEGIN
DECLARE @bin AS BINARY(4)
SELECT...
August 21, 2011 at 10:46 pm
@r.P.Rozema:
It works for Ipv4 addresses..i just tried converting those 4 parts into integers and then binary.It is fine for v4...how about v6?
August 21, 2011 at 1:40 pm
sorry for the trouble....
I have only 1 table
CREATE TABLE [dbo].[MySampleTable](
[LocId] [int] NULL,
[Low] [varchar](20) NULL,
[Hig] [varchar](20) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
INSERT [dbo].[MySampleTable] ([LocId], [Low], [Hig]) VALUES (1, N'205.34.25.20', N'205.34.25.255')
INSERT [dbo].[MySampleTable] ([LocId],...
August 21, 2011 at 12:01 am
Forget about table and Consider some fixed values for IpMin and IPMax just like above mentioned example..if it works i can work for a table. Thanks for responding.
August 20, 2011 at 11:45 pm
thanks for responding...i tried that but it gives wrong result...
Lets say an ex: IPMin= 206.63.71.23
...
August 20, 2011 at 11:37 pm
Thank you all for the replies.
July 25, 2011 at 9:41 pm
thanks for the reply..
i want to convert the whole ssis package into sql. i do not want to use ssis packge again. i want to convert into sql and schedule...
July 25, 2011 at 9:51 am
Thanks for responding....Can you tell me how to generate script? Thanks
June 3, 2011 at 9:55 pm
So which one works better when i have huge data? CTE or Subquery??
April 29, 2011 at 1:47 pm
Thanks for the reply....Got it
April 27, 2011 at 10:14 pm
Viewing 15 posts - 1 through 15 (of 15 total)