ricoiii Posted March 22, 2006 Share Posted March 22, 2006 Hi,i need MSSQL-connectivity for my PE-Boot-CD.All dll-files where registered fine during the Startup of PE. Then i try to connect to a MS-SQL Server via vb script:##################################################Dim Con : Set Con = CreateObject("Adodb.Connection")Dim Rst : Set Rst = CreateObject("Adodb.Recordset")Rst.CursorLocation = 3Con.Open "PROVIDER=SQLOLEDB;SERVER=xxxxxx;DATABASE=osd;UID=xxxxxxx;PWD=xxxxxx;Integrated Security=SSPI;" Rst.Open "SELECT * FROM installations where mac='00-30-05-5D-37-C0'", Con, 3, 4Do While Not Rst.EOF wscript.echo Rst("xres")Rst.MoveNextLoopSet Rst.ActiveConnection = NothingCon.CloseRst.Close###################################################This errormessage appears:Unable to load SQL Server OLEDB provider resource DLL. The application cannot continue.In Windows XP the script works fine.Does anyone know, how to fix the problem?Thanks Link to comment Share on other sites More sharing options...
Albuquerque Posted March 22, 2006 Share Posted March 22, 2006 From google search:Generally the issue could be caused by the following: 1. The file and file path are not where expected (it seems) 2. The resource DLL (SQLOLEDB.RLL) is not loaded, 3. The versions of SQLOLEDB.DLL and resource DLL don't match. Please check the <Program Files>\Common Files\System\Ole DB for these two filesYou also need MDAC installed on your PE image to make it work... Link to comment Share on other sites More sharing options...
ricoiii Posted March 23, 2006 Author Share Posted March 23, 2006 Thanks for the help, the rll-file was missing.Now i have a new error.Windows Scripting HostClass not registered. Source:ProviderAnyone know whats wrong? Link to comment Share on other sites More sharing options...
ricoiii Posted March 23, 2006 Author Share Posted March 23, 2006 I found that the registration of imgutil.dll is failed,I removed the commandline-switch "/S" and get the message:DLLRegisterServer in X:\i386\System32\imgutil.dll failedErrorcode: 0x80004005I´ve tried it with a newer version of this file, but the same error.Any ideas?Thx Link to comment Share on other sites More sharing options...
mats Posted March 23, 2006 Share Posted March 23, 2006 You cant use Integrated security from winpe. Integrated security means that it should log on with the current user and domain from PEtry with this insteadPROVIDER=SQLOLEDB;DATA SOURCE=XXXXXX;DATABASE=osd;UID=xxxxxxx;PWD=xxxxxx /Mats Link to comment Share on other sites More sharing options...
ricoiii Posted March 23, 2006 Author Share Posted March 23, 2006 My mistake.The new connectionstring is:Con.Open "PROVIDER=SQLOLEDB;SERVER=SADBS016086;DATABASE=osd;UID=xxxxxxx;PWD=xxxxxxx;"But the error:Windows Scripting HostClass not registered. Source:Providerstill appears. Link to comment Share on other sites More sharing options...
Jazkal Posted March 24, 2006 Share Posted March 24, 2006 I know this might be a stupid question, but when you built the PE image, did you do it with the /ADO switch? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now