Click here to Skip to main content
15,891,136 members
Home / Discussions / Database
   

Database

 
AnswerRe: What DB Engine to use in VB.NET Project Pin
Manas Bhardwaj22-Sep-09 6:02
professionalManas Bhardwaj22-Sep-09 6:02 
QuestionDatabase Mirroring Pin
Shalini_U22-Sep-09 3:24
Shalini_U22-Sep-09 3:24 
QuestionSSRS and Local Report Pin
sashidhar21-Sep-09 22:39
sashidhar21-Sep-09 22:39 
Questionextract an rtf field of firebird database Pin
gilvani21-Sep-09 9:17
gilvani21-Sep-09 9:17 
AnswerRe: extract an rtf field of firebird database Pin
Luc Pattyn21-Sep-09 9:55
sitebuilderLuc Pattyn21-Sep-09 9:55 
QuestionExport from SSMS 2008 to MsAccess 2007 Pin
suni_dotnet21-Sep-09 7:16
suni_dotnet21-Sep-09 7:16 
AnswerRe: Export from SSMS 2008 to MsAccess 2007 Pin
Eddy Vluggen21-Sep-09 21:13
professionalEddy Vluggen21-Sep-09 21:13 
QuestionGenerate a MAc adress with a stored procedure Pin
bluepoison21-Sep-09 2:39
bluepoison21-Sep-09 2:39 
Hi all,

I would like to generate MAC addresses between a certain range in a stored procedure. The MAC addresses needed to be stored in a table.

Any ideas? Suggestions?Thumbs Up | :thumbsup:

I need something like below


DECLARE @Max_MAC BINARY(8)
DECLARE @StartRange BINARY(8)
DECLARE @EndRange BINARY(8)
DECLARE @MAC_Address BINARY(8)

SET @StartRange = 0x00000004A500114B
SET @EndRange = 0x00000004A50F11FF

SELECT @Max_MAC = MAX(MAC_Address)
FROM MAC_Address

IF (@Max_Mac >= @StartRange and @Max_Mac < @EndRange)
begin

@Max_Mac = generate a higher macaddress
INSERT INTO MAC_Address(MAC_Address,Timestamp) VALUES (@MAX_MAC, getdate())
END


I do not know how I can count a number more to the MAcAdress I would like to become to a table with macadresses like

0x00000004A500114B
0x00000004A500114C
0x00000004A500114D
...


Thanks in advance

Tom Denys
AnswerRe: Generate a MAc adress with a stored procedure Pin
Abhishek Sur21-Sep-09 11:54
professionalAbhishek Sur21-Sep-09 11:54 
GeneralRe: Generate a MAc adress with a stored procedure Pin
bluepoison21-Sep-09 21:30
bluepoison21-Sep-09 21:30 
AnswerRe: Generate a MAc adress with a stored procedure Pin
Luc Pattyn21-Sep-09 12:06
sitebuilderLuc Pattyn21-Sep-09 12:06 
Questionunable to connect java with sql database to validate user login.......... Pin
elazor20-Sep-09 23:30
elazor20-Sep-09 23:30 
AnswerRe: unable to connect java with sql database to validate user login.......... Pin
Abhishek Sur21-Sep-09 11:56
professionalAbhishek Sur21-Sep-09 11:56 
QuestionOrder in database Pin
srikantha_nagaraj20-Sep-09 1:11
srikantha_nagaraj20-Sep-09 1:11 
AnswerRe: Order in database Pin
Eddy Vluggen20-Sep-09 1:37
professionalEddy Vluggen20-Sep-09 1:37 
GeneralRe: Order in database Pin
srikantha_nagaraj20-Sep-09 2:02
srikantha_nagaraj20-Sep-09 2:02 
GeneralRe: Order in database Pin
J4amieC21-Sep-09 1:44
J4amieC21-Sep-09 1:44 
GeneralCan someone justify their vote of 2? Pin
J4amieC21-Sep-09 4:13
J4amieC21-Sep-09 4:13 
GeneralRe: Can someone justify their vote of 2? Pin
Eddy Vluggen21-Sep-09 5:30
professionalEddy Vluggen21-Sep-09 5:30 
GeneralRe: Order in database Pin
i.j.russell21-Sep-09 5:28
i.j.russell21-Sep-09 5:28 
GeneralRe: Order in database Pin
Eddy Vluggen21-Sep-09 5:33
professionalEddy Vluggen21-Sep-09 5:33 
AnswerRe: Order in database Pin
stendulkar5420-Sep-09 12:22
stendulkar5420-Sep-09 12:22 
AnswerRe: Order in database Pin
Ashfield21-Sep-09 8:14
Ashfield21-Sep-09 8:14 
QuestionLog file of Database increases in every replication Pin
Abdul Rahman Hamidy18-Sep-09 23:57
Abdul Rahman Hamidy18-Sep-09 23:57 
AnswerRe: Log file of Database increases in every replication Pin
Eddy Vluggen19-Sep-09 1:31
professionalEddy Vluggen19-Sep-09 1:31 

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.