Home
%3CLINGO-SUB%20id%3D%22lingo-sub-334006%22%20slang%3D%22en-US%22%3EWindows%20Internal%20Database%20(WID)%20is%20Not%20Destined%20as%20a%20Regular%20SQL%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334006%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EFirst%20published%20on%20MSDN%20on%20May%2004%2C%202017%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3EIf%20you%20ever%20considered%20using%20the%20Windows%20Internal%20Database%20(WID)%20as%20a%20regular%20SQL%20Server%20service%2C%20consider%20the%20following%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%22Windows%20Internal%20Database%20is%20a%20relational%20data%20store%20used%20by%20the%20following%20applications%20and%20services.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EActive%20Directory%20Rights%20Management%20Services%20(AD%26nbsp%3BRMS)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EWindows%20Server%20Update%20Services%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EWindows%20System%20Resource%20Manager%20%22%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20is%20not%20supported%20or%20intended%20to%20be%20used%20for%20any%20other%20purposes.%20%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20are%20adventurous%20enough%20to%20create%20a%20user%20database%20in%20WID%2C%20you%20may%20find%20yourself%20with%20an%20unusable%20database.%20Here%20is%20what%20happens%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%3ECreate%20a%20database%20and%20a%20table%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20300px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72566iA70E5F92719CAF25%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20At%20one%20point%20you%20need%20to%20restart%20the%20WID%20service%20or%20the%20entire%20system%20(machine)%20%3CBR%20%2F%3E%3CBR%20%2F%3E3.%20You%20connect%20back%20to%20WID%20and%20you%20notice%20that%20your%20user%20database%20is%20in%20%22Recovery%20Pending%22%20%3CBR%20%2F%3E%3CBR%20%2F%3E4.%20You%20issue%20the%20%22use%20test%22%20command%20and%20you%20get%20this%20error%20message%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3EMsg%20945%2C%20Level%2014%2C%20State%202%2C%20Line%201%20%22Database%20'test'%20cannot%20be%20opened%20due%20to%20inaccessible%20files%20or%20insufficient%20memory%20or%20disk%20space.%22%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20300px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72567i871DEABF8E346BF5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E5.%20If%20you%20look%20at%20the%20Errorlog%20for%20the%20WID%20instance%2C%20you%20will%20find%20the%20following%3A%20%3CBR%20%2F%3E2017-05-03%2019%3A48%3A26.17%20spid20s%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Detected%20an%20unauthorized%20object%20in%20the%20schema%20%3CBR%20%2F%3E2017-05-03%2019%3A48%3A26.17%20spid20s%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Database%20verification%20script%20failed%20for%20database%20'test'.%20%3CBR%20%2F%3E2017-05-03%2019%3A48%3A26.17%20spid20s%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Error%3A%203605%2C%20Severity%3A%2016%2C%20State%3A%201.%20%3CBR%20%2F%3E2017-05-03%2019%3A48%3A26.17%20spid20s%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Schema%20verification%20failed%20for%20database%20'test'.%20%3CBR%20%2F%3ELife%20lesson%3A%20WID%20is%20not%20intended%20for%20use%20as%20a%20general%20SQL%20Server%20instance%20and%20creating%20user%20databases%20on%20that%20instance%20is%20not%20supported.%20Only%20the%20services%20designed%20to%20use%20it%20are%26nbsp%3Bits%20rightful%20masters.%20%3CBR%20%2F%3E%3CBR%20%2F%3ENamaste%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3EJoseph%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-334006%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20MSDN%20on%20May%2004%2C%202017%20If%20you%20ever%20considered%20using%20the%20Windows%20Internal%20Database%20(WID)%20as%20a%20regular%20SQL%20Server%20service%2C%20consider%20the%20following%3A%22Windows%20Internal%20Database%20is%20a%20relational%20data%20store%20used%20by%20the%20following%20applications%20and%20services.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-334006%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EErrors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-522940%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Internal%20Database%20(WID)%20is%20Not%20Destined%20as%20a%20Regular%20SQL%20Server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-522940%22%20slang%3D%22en-US%22%3E%3CP%3E%26gt%3B%20It%20is%20not%20supported%20or%20intended%20to%20be%20used%20for%20any%20other%20purposes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReally%3F%20Someone%20might%20want%20to%20tell%20the%20teams%20for%20skype%20for%20business%20and%20ADFS.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

First published on MSDN on May 04, 2017
If you ever considered using the Windows Internal Database (WID) as a regular SQL Server service, consider the following:

"Windows Internal Database is a relational data store used by the following applications and services.

    • Active Directory Rights Management Services (AD RMS)

 

    • Windows Server Update Services

 

    • Windows System Resource Manager "



It is not supported or intended to be used for any other purposes.

If you are adventurous enough to create a user database in WID, you may find yourself with an unusable database. Here is what happens:

    1. Create a database and a table





2. At one point you need to restart the WID service or the entire system (machine)

3. You connect back to WID and you notice that your user database is in "Recovery Pending"

4. You issue the "use test" command and you get this error message:

Msg 945, Level 14, State 2, Line 1 "Database 'test' cannot be opened due to inaccessible files or insufficient memory or disk space."



5. If you look at the Errorlog for the WID instance, you will find the following:
2017-05-03 19:48:26.17 spid20s     Detected an unauthorized object in the schema
2017-05-03 19:48:26.17 spid20s     Database verification script failed for database 'test'.
2017-05-03 19:48:26.17 spid20s     Error: 3605, Severity: 16, State: 1.
2017-05-03 19:48:26.17 spid20s     Schema verification failed for database 'test'.
Life lesson: WID is not intended for use as a general SQL Server instance and creating user databases on that instance is not supported. Only the services designed to use it are its rightful masters.

Namaste,

Joseph

1 Comment
New Contributor

> It is not supported or intended to be used for any other purposes.

 

 

Really? Someone might want to tell the teams for skype for business and ADFS.