May 11, 2010 at 7:59 am
Dear Sir,
I need a script to find Sql Server Physical Machine Serial. I will be thank ful to the suggession. This is Sql Server 2005.
Thanks and Regards
Raju
May 12, 2010 at 3:52 am
Do you mean version? Please be more specific in your questions. Otherwise you will find that your questions remain unanswered for a long time.
If you mean version, use the following query.
select serverproperty('productversion')
-arjun
https://sqlroadie.com/
May 12, 2010 at 4:17 am
Sir,
Sorry for the confusion if my posting was not clear.
Every computer ( here I am looking at Sql Server) will have a locking code unique. I would like to know is there a way to find the locking code of sql server ( physical server) locking code information through a script.
You may visit the site
Thanks again for the pains taken.
Thanks
Raju
May 12, 2010 at 5:02 am
Well it sounds greek to me Raju. Someone who has better exposure will help you soon. Stick around.
- arjun
https://sqlroadie.com/
May 12, 2010 at 6:08 am
never heard of this locking code before today. it looks like a calculated value created by the program ecoid.exe.
the program echoid.exe is not a Windows included executable, so of course it does not exist on all machines; you could only use it if it is installed, and also that the program exists int he PATH variables on the server...also note that the page you directed us to requires a .dat file to be in place as well.
Tip: The file echoid.dat must be in the same directory as the echoid program file. This file defines what criteria will make up the fingerprint and is shipped along with echoid.exe.
with that in mind, here is how you would use xp_cmdshell to call the program and get it's results in a table...you'd then need to parse the results.
create table #Results (
TheOutput varchar(1000))
insert into #Results (TheOutput)
exec master..xp_cmdshell 'echoid -d'
select * from #Results
and my results:
'echoid' is not recognized as an internal or external command,
operable program or batch file.
NULL
Lowell
May 12, 2010 at 6:14 am
with that in mind, here is how you would use xp_cmdshell to call the program and get it's results in a table...you'd then need to parse the results.
create table #Results (
TheOutput varchar(1000))
insert into #Results (TheOutput)
exec master..xp_cmdshell 'echoid -d'
select * from #Results
Wow!! I wonder how many years away I am from that. It sure is one small step at a time. Thanks a lot.
- arjun
https://sqlroadie.com/
May 12, 2010 at 6:21 am
Dear Sirs,
Thanks a lot to all. I shall try it and update you.
Regards
Raju
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply