how to connect to SQL Express User Instances

I have a couple of .NET 2.0 winfor applications that I use Click once to deploy them, these application use Sql Express to store data locally. I needed to import data using managment studio, but User Instance databases do not appear in Management Studio. After some research I was finally able to do this.

  • Run your application that uses the SQL Express or use Server Explorer in Visual Studio to connect to it. this is imporatant because, A User Instances is spawned by the parent instance of SQL Express when an application makes a special connection to the server.  by using User Instance=TRUE  in the connection string.
  • In Management studio connect to the parent instance usually (local)\SQLEXPRESS.
  • Open a query Window and execute
  • SELECT

    owning_principal_name, instance_pipe_name, heart_beat FROM sys.dm_os_child_instances
  • User Instances are only accessible through the Shared Memory connection protocol, and are only exposed through a Named Pipe.
  • ShervXPS\Shervin Shak   

    \\.\pipe\C3DCB378-EDBB-43\tsql\query 

    alive

  • Copy the Pipe
  • in Managment Studio click on Connect and for server name paste the instance pipe name.
  • make sure to use windows Authentication.

Here is a great blog post that goes into more detail http://blogs.msdn.com/sqlexpress/archive/2006/11/22/connecting-to-sql-express-user-instances-in-management-studio.aspx

this white paper was also very helpful learning about SQLExpress user instances http://msdn2.microsoft.com/en-us/library/bb264564.aspx

 

Comments

# re: how to connect to SQL Express User Instances
Gravatar We will offer you escort shanghai
and Nike shoes
Left by Nike shoes on 1/5/2009 8:42 PM
# re: how to connect to SQL Express User Instances
Gravatar セフレ募集している女の子や人妻、熟女と不倫や浮気を楽しみたいならセフレ出会いセックスフレンドいつでもエッチさせてくれるセックスフレンドがいれば性欲旺盛な人でも満足できる。ヤリ友探しなら掲示板で見つけよう
Left by セフレ出会いセックスフレンド on 2/8/2009 4:31 AM
# sdfsdf
Gravatar The blog is really informative and i like to share this info with my friends thanks for post.
Left by Dating Service on 8/8/2009 2:03 AM
# re: how to connect to SQL Express User Instances
Gravatar Have a nice weekend:-)
Left by セフレ on 10/3/2009 3:49 AM
# re: how to connect to SQL Express User Instances
Gravatar In some cases, it has to take care of jobs for 16 year olds and the sharing of responsibility to have more children. In other cases, it has to earn extra money to meet the needs of both ends to face up to the family members responsible for more.
Left by DD on 11/23/2009 8:49 PM
# re: how to connect to SQL Express User Instances
Gravatar thank you for the information.
Left by Doragames on 12/12/2009 12:56 AM
# re: how to connect to SQL Express User Instances
Gravatar great post, thanks for sharing
Left by car games on 12/16/2009 12:51 AM
# re: how to connect to SQL Express User Instances
Gravatar Nothing is impossible for a willing heart.北大青鸟中国IT职业培训领导品牌
Left by 发财创业商机网 on 12/16/2009 8:37 PM
# re: how to connect to SQL Express User Instances
Gravatar This is great, I have had SQL download to my system and this article is perfect timing. I could do better using this information here.
Christian Grants
Left by Christian Grants on 1/5/2010 9:49 AM
# re: how to connect to SQL Express User Instances
Gravatar I would surely love this step by step information regarding how to connect to SQL Express User Instances.
Left by Commercial Storage Christchurch on 1/5/2010 11:14 AM
# re: how to connect to SQL Express User Instances
Gravatar (After some research I was finally able to do this.)Great article.
Left by SEO Services UK on 1/9/2010 1:53 AM
# re: how to connect to SQL Express User Instances
Gravatar I am studying SQL and I think this could help me in anyway.
Left by storage christchurch on 1/12/2010 3:36 AM
# re: how to connect to SQL Express User Instances
Gravatar Thanks for your useful info, I think it's a good topic
Left by Russell blog on 1/12/2010 8:49 PM
# re: how to connect to SQL Express User Instances
Gravatar SQL is powerful. It enhance network performance.Spa Salon Software
Left by Salon Software on 1/13/2010 6:48 PM
# re: how to connect to SQL Express User Instances
Gravatar I should do your application here.thanks.Skullcandy
Left by Earphones on 1/14/2010 4:05 PM
# re: how to connect to SQL Express User Instances
Gravatar Its always good to learn tips like you share for blog posting. As I just started posting comments for blog and facing problem of lots of rejections. I think your suggestion would be helpful for me. I will let you know if its work for me too.
Left by Online Classified Ads on 1/18/2010 12:48 PM
# re: how to connect to SQL Express User Instances
Gravatar Nice posts.In fact,my brother says your information is great.stamps online
Left by stamps online on 2/2/2010 5:30 AM
# re: how to connect to SQL Express User Instances
Gravatar Great application stools chairs
Left by stools chairs on 2/2/2010 7:24 PM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

 

Preview Your Comment.