Oh sorry!
I have the SQL running (MySQL 5.0), when i try and import the database (.sql) to the server (the query) it errors me up, basicly with all of the db's for Gunz.
-- To be clear; gunz databases (all of them) --
---------- Post added at 08:51 PM ---------- Previous post was at 08:21 PM ----------
I think it has to do with the SQL version, what SQL server should i download? (year/version?)
Code:
RETURNS BIGINT
AS
BEGIN
DECLARE @A BIGINT, @B BIGINT, @C BIGINT, @D BIGINT
DECLARE @iBegin INT, @iEnd INT
SELECT @iBegin=1
SELECT @iEnd=CHARINDEX(''.'', @IP)
SELECT @A=CAST(SUBSTRING(@IP, @iBegin, @iEnd-@iBegin) AS BIGINT)
SELECT @iBegin=@iEnd+1
SELECT @iEnd=CHARINDEX(''.'', @IP, @iBegin)
SELECT @B=CAST(SUBSTRING(@IP, @iBegin, @iEnd-@iBegin) AS BIGINT)
SELECT @iBegin=@iEnd+1
SELECT @iEnd=CHARINDEX(''.'', @IP, @iBegin)
SELECT @C=CAST(SUBSTRING(@IP, @iBegin, @iEnd-@iBegin) AS BIGINT)
SELECT @iBegin=@iEnd+1
SELECT @iEnd=CHARINDEX(''.'', @IP, @iBegin)
SELECT @D=CAST(SUBSTRING(@IP, @iBegin, 15) AS BIGINT)
DECLARE @IPNumber BIGINT
SELECT @IPNumber=@A*16777216+@B*65536+@C*256+@D
RETURN @IPNumber
END
'
This for example is completely marked red in SQLyog/HeidiSQL