Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8862363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:42:38+00:00 2026-06-14T15:42:38+00:00

So Im running a Sql Server 2012 in a virtual machine on my computer

  • 0

So Im running a Sql Server 2012 in a virtual machine on my computer and I want to be able to connect on it with the SqlConnection on Visual Studio, but I have no idea what to put on the servername parameter.

I dont know if I have to put the vm ipaddress or the machine address “WIN-NIJ53etc\SQLEXPRESS”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:42:40+00:00Added an answer on June 14, 2026 at 3:42 pm

    UPDATED:

    FOR MIGRATING BETWEEN SQL CE AND SQL SERVER: Please take a look at this instruction here.

    You should follow these steps:

    1- Set the virtual machine to have a physical IP address.

    For configuring network on Microsoft Virtual PC: http://support.microsoft.com/kb/833134

    2- Be sure that you can see the VM with a static IP address. (ping is a good idea for checking that, but don’t forget to turn off the firewall on the target machine, I mean the machine you wanna ping. There is no need for the server to see the client, so check that your client (in this case your VM) can ping the server IP address like "ping 192.168.10.1 -t")

    3- Use Configuration Manager (All Programs\Microsoft SQL Server\Configuration Tools) and set SQL port and visibility over network.

    Reference: http://msdn.microsoft.com/en-us/library/ms189083(v=sql.105).aspx

    4- Restart the SQL server.

    5- Be sure that "SQL Server Browser" service is started. (incase you wanna use the instance name to access the SQL server)

    6- Config the firewall on the host machine (machine that has SQL engine) and add the port you specified in the Configuration Manager to TCP Inbound rules.

    Take a look at here: http://www.tavislovell.com/post/How-to-configure-Windows-Firewall-to-allow-access-to-SQL-Server.aspx

    BUT be advised that you should set the port specified in the Configuration Manager (default is 1433 but sometimes it’s dynamic and you should set it again)

    7- After you set the port and network visibility, you should change the "Server" value in the connection string to this format "IPAddress, PORT" like "192.168.10.50, 1433" (When you specify the port, there is no need to set the instance name like this "192.168.10.50\SQLEXPRESS")

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A server running SQL Server 2005 was converted into a virtual machine. The original
We have a single computer with Windows7 Home Premium running with SQL Server 2008
I am running SQL Server and I have a stored procedure. I want do
I'm running Sql Server Management Studio 2008 on a decent machine. Even if it
I have the full Visual Studio 2010 (not express) installed, with SQL Server that
Running SQL Server 2008 (not R2). I have a few reports that have URLs
we have a local staging server running sql server 2000 and a remote public
I have Oracle running on one machine of the LAN. I can connect to
Running SQL Server 2008, and I am definitely a new SQL user. I have
I'm running SQL Server 2000. I have a situation where users are timing out.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.