sql server management studio add-in

  • Dear All,

    i am creating an add in for sql server management studio,this is my first attempt.For the past some days i have googled and collect some information,with this information i have created a very basic add in which will add one new widow and insert some scripts to it.

    following is the code

    public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom)

    {

    _addInInstance = (AddIn)addInInst;

    ServiceCache.ScriptFactory.CreateNewBlankScript(Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType.Sql);

    EnvDTE.TextDocument doc = (EnvDTE.TextDocument)ServiceCache.ExtensibilityModel.Application.Activedocument.Object(null);

    doc.EndPoint.CreateEditPoint().Insert("select * from tablename");

    }

    now i want to access the result window and display some result from a dataset

    can anyone guide me plz..

Viewing post 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply