Click here to Skip to main content
15,926,144 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database Mirroring (unsure of terminology)...? Pin
martin_hughes26-Nov-07 10:38
martin_hughes26-Nov-07 10:38 
QuestionWhat's wrong with this SQL query? Pin
Jordanwb26-Nov-07 9:24
Jordanwb26-Nov-07 9:24 
AnswerRe: What's wrong with this SQL query? Pin
Pete O'Hanlon26-Nov-07 9:29
mvePete O'Hanlon26-Nov-07 9:29 
GeneralRe: What's wrong with this SQL query? Pin
Jordanwb26-Nov-07 9:31
Jordanwb26-Nov-07 9:31 
JokeRe: What's wrong with this SQL query? Pin
Pete O'Hanlon26-Nov-07 10:56
mvePete O'Hanlon26-Nov-07 10:56 
QuestionConversion help Pin
solutionsville26-Nov-07 9:12
solutionsville26-Nov-07 9:12 
AnswerRe: Conversion help Pin
Pete O'Hanlon26-Nov-07 9:20
mvePete O'Hanlon26-Nov-07 9:20 
AnswerRe: Conversion help Pin
solutionsville26-Nov-07 9:25
solutionsville26-Nov-07 9:25 
The reason is for faster search indexing. I found this after I posted;

Create FUNCTION [dbo].[Dot2LongIP]( @IP VarChar(15) )
RETURNS BigInt
AS
BEGIN
DECLARE @ipA BigInt,
@ipB Int,
@ipC Int,
@ipD Int,
@ipI BigInt
SELECT @ipA = LEFT(@ip, PATINDEX('%.%', @ip) - 1 )
SELECT @ip = RIGHT(@ip, LEN(@ip) - LEN(@ipA) - 1 )

SELECT @ipB = LEFT(@ip, PATINDEX('%.%', @ip) - 1 )
SELECT @ip = RIGHT(@ip, LEN(@ip) - LEN(@ipB) - 1 )

SELECT @ipC = LEFT(@ip, PATINDEX('%.%', @ip) - 1 )
SELECT @ip = RIGHT(@ip, LEN(@ip) - LEN(@ipC) - 1 )

SELECT @ipD = @ip
RETURN ( @ipA * 256*256*256 ) + ( @ipB * 256*256 ) + ( @ipC * 256 ) + @ipD
END
RETURN @ipI
END

This does speed it up and seems to meet my needs.

Thanks,
Questionhow to make table whit only one id Pin
E_Gold26-Nov-07 7:30
E_Gold26-Nov-07 7:30 
Answermore information Pin
E_Gold26-Nov-07 7:32
E_Gold26-Nov-07 7:32 
AnswerRe: how to make table whit only one id Pin
astanton197826-Nov-07 7:36
astanton197826-Nov-07 7:36 
AnswerRe: how to make table whit only one id Pin
pmarfleet26-Nov-07 8:09
pmarfleet26-Nov-07 8:09 
GeneralRe: how to make table whit only one id Pin
sandhya1419-Dec-07 22:29
sandhya1419-Dec-07 22:29 
QuestionSQL Query from multiple linked tables Pin
jontyler26-Nov-07 7:25
jontyler26-Nov-07 7:25 
AnswerRe: SQL Query from multiple linked tables Pin
Cristian Amarie26-Nov-07 7:58
Cristian Amarie26-Nov-07 7:58 
GeneralRe: SQL Query from multiple linked tables Pin
jontyler26-Nov-07 9:03
jontyler26-Nov-07 9:03 
AnswerRe: SQL Query from multiple linked tables Pin
andyharman26-Nov-07 9:01
professionalandyharman26-Nov-07 9:01 
GeneralRe: SQL Query from multiple linked tables Pin
jontyler26-Nov-07 9:05
jontyler26-Nov-07 9:05 
QuestionSQL Server Diagrams Pin
Brendan Vogt26-Nov-07 7:12
Brendan Vogt26-Nov-07 7:12 
AnswerRe: SQL Server Diagrams Pin
Paul Conrad26-Nov-07 16:27
professionalPaul Conrad26-Nov-07 16:27 
QuestionSQL Server 2005 Performance Tips Pin
Brendan Vogt26-Nov-07 4:22
Brendan Vogt26-Nov-07 4:22 
AnswerRe: SQL Server 2005 Performance Tips Pin
andyharman26-Nov-07 5:42
professionalandyharman26-Nov-07 5:42 
QuestionHow can i know which stored procedure is executed when and by which program? [modified] Pin
zeemalik26-Nov-07 2:36
zeemalik26-Nov-07 2:36 
AnswerRe: How can i know which stored procedure is executed when and by which program? Pin
Pete O'Hanlon26-Nov-07 9:24
mvePete O'Hanlon26-Nov-07 9:24 
QuestionInstalling MS SQL Server 2000 on Windows Vista Pin
I.explore.code25-Nov-07 22:27
I.explore.code25-Nov-07 22:27 

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.