How to get sql server machine serial

  • 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

  • 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/

  • 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

    http://www.quantumwise.com/documents/manuals/Sentinel_RMS/man_files/echoid_and_Wechoid_-_Get_a_Computer_s_Locking_Code.htm

    Thanks again for the pains taken.

    Thanks

    Raju

  • Well it sounds greek to me Raju. Someone who has better exposure will help you soon. Stick around.

    - arjun

    https://sqlroadie.com/

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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/

  • 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