Note that there are some explanatory texts on larger screens.

plurals
  1. POSQL Server SMO complains of missing DLL
    primarykey
    data
    text
    <p>Ok, I've scoured the web, BOL, various forums and I'm no closer to an answer...hopefully you fine folks can lend a hand...</p> <p>We've got a dozen or so SQL Servers (some 2k, some 2005) on a network. I'm using SMO objects in a .NET application to get some standard information. My problem appears to boil down to a missing DLL - Microsoft.SqlServer.BatchParser.dll. However, this DLL did not come with the other SQL DLLs (Microsoft.SqlServer.ConnectionInfo.dll, Microsoft.SqlServer.Smo.dll, Microsoft.SqlServer.SmoEnum.dll, Microsoft.SqlServer.SqlEnum.dll, etc...). I also downloaded the SS2005 feature pack from Microsoft's site that includes the SMO objects, but still no luck.</p> <p>The following code works, unless I uncomment the line that is currently commented, in which case I get the error below:</p> <pre><code>protected void btnArchive_Click(object sender, EventArgs e) { ServerConnection conn = new ServerConnection("my_server"); conn.LoginSecure = false; conn.Login = "my_login"; conn.Password = "my_password"; Server s = new Server(conn); Database d = s.Databases["my_database"]; //Table tbl = d.Tables["my_table"]; Response.Write(s.Name + " " + s.Information.RootDirectory + " " + d.CreateDate.ToShortDateString()); conn.Disconnect(); } </code></pre> <p>Error: Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.</p> <p>Note, I've also tried this from SSIS using VB.NET, same behavior.</p> <p>Any thoughts would be appreciated.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload