xSQL Schema Compare SDK for SQL Server version 12
SqlServer Class
Members  Example 


Represents a SQL Server instance.
Object Model
SqlServer Class
Syntax
'Declaration
 
Public NotInheritable Class SqlServer 
   Inherits SqlSerializableEntity
public sealed class SqlServer : SqlSerializableEntity 
public __gc __sealed class SqlServer : public SqlSerializableEntity 
Example
The following code snippet shows how to create a SQL Server object:
using xSQL.Schema.Core;
using xSQL.Schema.SqlServer;
using xSQL.SchemaCompare.SqlServer;
            
namespace xSQL.Sdk.SchemaCompare.Samples
{
    class Test
    {
    
        public static void CreateSqlServer()
        {
            SqlServer server;
            
            try
            {
                //--initialize the SQL Server object
                //--this constructor uses Windows authentication
                server = new SqlServer(@"(local)");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
    }
}
Inheritance Hierarchy

System.Object
   xSQL.Schema.Core.Entity
      xSQL.Schema.SqlServer.SqlEntity
         xSQL.Schema.SqlServer.SqlSerializableEntity
            xSQL.Schema.SqlServer.SqlServer

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SqlServer Members
xSQL.Schema.SqlServer Namespace

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback