string sqlConnectionString = cn.ConnectionString.ToString(); SqlConnection conn = new SqlConnection(sqlConnectionString); StringBuilder sb = new StringBuilder(); string script = string.Empty; Microsoft.SqlServer.Management.Smo.Server server = new Server(new ServerConnection(conn)); try { MessageBox.Show(server.Information.Version.ToString()); } catch (Exception EX) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)