<p>Does anyone have a definitive answer to whether <a href="http://msdn.microsoft.com/en-us/library/ms162557.aspx" rel="nofollow noreferrer">Sql Server Management Objects</a> is compatible with Sql Server 7.0?
The docs state:</p>

<blockquote>
  <p>Because SMO is compatible with SQL Server version 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008, you easily manage a multi-version environment.</p>
</blockquote>

<p>But trying to connect to a Sql 7 instance gets me:</p>

<blockquote>
  <p>"This SQL Server version (7.0) is not supported."</p>
</blockquote>

<p>Has anyone been successful in getting these 2 to play nice?</p>

[{'answer_id': 33742, 'author': 'RedWolves', 'author_id': 648, 'author_profile': 'https://Stackoverflow.com/users/648', 'pm_score': 3, 'selected': True, 'text': '<p><em>you can use SMO to connect to SQL Server versions 7, 2000, and 2005, but SMO does not support databases set to compatibility levels 60, 65, and 70.</em></p>\n\n<p>for SQL Server 7.0 the compatibility level is 70</p>\n\n<p>Obviously this is conflicting information...I assume if your compatibility level of your DB is 70 you can not connect.</p>\n\n<p>To check run: EXEC sp_dbcmptlevel \'<em>databasename</em>\'</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/library/aa259649.aspx" rel="nofollow noreferrer">Looking through this link</a>, it seems you might be able to change the compatibility level by running this:</p>\n\n<p>EXEC sp_dbcmptlevel \'<em>databasename</em>\', 80</p>\n\n<p>Obviously make a back up before changing anything.</p>\n'}, {'answer_id': 35118, 'author': 'Mark Brackett', 'author_id': 2199, 'author_profile': 'https://Stackoverflow.com/users/2199', 'pm_score': 1, 'selected': False, 'text': '<p>Looks like the docs are wrong (and have continued to be wrong for the last 3+ years!). I found this snippet with <a href="http://www.red-gate.com/products/reflector/" rel="nofollow noreferrer">Reflector</a> in <a href="http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.common.connectionmanager.connect.aspx" rel="nofollow noreferrer">Microsoft.SqlServer.Management.Common.ConnectionManager</a>, Microsoft.SqlServer.ConnectionInfo</p>\n\n<pre><code>protected void CheckServerVersion(ServerVersion version) {\n    if ((version.Major &lt;= 7 || (version.Major &gt; 9)) {\n       throw new ConnectionFailureException(\n          StringConnectionInfo.ConnectToInvalidVersion(version.ToString())\n       );\n    }\n}\n</code></pre>\n\n<p>So, it looks like only SQL 2000 and SQL 2005 are supported. Presumably, SQL 2008 (version 10) has updated SMO assemblies.</p>\n\n<p>Bummer - guess it\'s back to <a href="http://msdn.microsoft.com/en-us/library/ms131540.aspx" rel="nofollow noreferrer">SQL-DMO</a> for this project.</p>\n'}, {'answer_id': 415518, 'author': 'gbn', 'author_id': 27535, 'author_profile': 'https://Stackoverflow.com/users/27535', 'pm_score': 0, 'selected': False, 'text': '<p>Sorry for the late answer... there is <a href="http://msdn.microsoft.com/en-us/library/ms162130(SQL.90).aspx" rel="nofollow noreferrer">partial support</a> for SQL 2000 and SQL 7</p>\n'}, {'answer_id': 878008, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Just to follow up on your commment SQL 2008 does have its own SMO package which supports SQL 2000, 2005 and 2008 which is actually definitively documented on their download page! And you\'re right you can\'t connect SQL 2005 SMO to SQL 2008.</p>\n\n<p>There are some nice updates updates in Version 10 of the SMO in that if you access properties that do not existing on the version of SQL that you are connect to you get a sensible "This property is not available on this Version of SQL" exception or words to that effect.</p>\n\n<p>Microsoft SQL Server 2008 Management Objects \nThe SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008.</p>\n'}]
['https://Stackoverflow.com/questions/33457', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2199/']