Connection problems with ManagePartition executable I'm currently running SQL Server 2014 and we have some tables that have been partitioned and I'm trying to use the ManagePartition application here (http://sqlpartitionmgmt.codeplex.com/)

I've typed into the command line:

C:\&gt;ManagePartition.exe /C:CreateStagingFull /d:&lt;Databasename&gt; /s:&lt;schema&gt; 
                        /t:&lt;TableName&gt; /p:5 /A:&lt;NewTablename&gt; /f:C:/scripts.sql 
                        /O:i /U:&lt;My Login&gt; /P:/&lt;My Password&gt;


And I'm getting the following error:


  ConnectionFailureException: Failed to connect to server (local). ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


I've doubled checked all the spellings (dbname, schema, table, etc...) and the switches.

What are some things I can do to trouble shoot this (I'm kind of new to table partitioning)?  

Or are there other strategies to easily manage/move data from partitioned table to a staging table?

Edit(I missed to the /S: switch)

I'm now getting this error:


  System.NullReferenceException: Object reference not set to an instance of an object.
  at PartitionManagement.PartitionManager.createStgIndex(Index i, TableViewBase parent)
  at PartitionManagement.PartitionManager.createStgNonclusteredIndexes()
  at PartitionManagement.PartitionManager.CreateStgIndexes(Boolean createNonClusteredIndexes)
  at PartitionManagement.App.Run(AppArgs&amp; parsedArgs)
  Object reference not set to an instance of an object.


It did create the new table, with the indexes, constraints(including the partition constraint), but no data.
You are not using the 

 /Server:&lt;string&gt;                   /S Server name, default = (local)



  Failed to connect to server (local). ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


From the readme page : 

ManagePartition
    /Command:&lt;string&gt;       short form /C command, default = CreateStagingFull
    /Server:&lt;string&gt;                   /S Server name, default = (local)
    /User:&lt;string&gt;                     /U User name, default = null
    /Password:&lt;string&gt;                 /P Password, default = null
    /Integrated[+|-]                   /E Integrated Security, default +
    /Database:&lt;string&gt;                 /d Database name
    /Schema:&lt;string&gt;                   /s Schema name – use quotes as delimiter if needed
    /PartitionTable:&lt;string&gt;           /t Partition table name - use quotes as delimiter if needed
    /PartitionNumber:&lt;int&gt;             /p Partition Number
    /PartitionRangeValue:&lt;string&gt;      /v Value string to input to partition function to specify partition number
    /StagingTable:&lt;string&gt;             /A Staging Table Name, default = null
          /ScriptOption:&lt;char&gt;               /O Scripting Option -- i à Include Script, o à Script Only (no execute)
          /ScriptFile:&lt;string&gt;               /f path and name of file for generated TSQL -- if excluded, script any output to stdout
    /Keep[+|-]                         /K Keep Staging Table if ClearPartition, default +

&lt;Command&gt; = ClearPartition | CreateStagingFull | CreateStagingNoindex | CreateStagingClusteredIndex | IndexStaging