SQL Server 2008 R2 in Hyper-V does not the see the host HDD partition mapped as Vistual Disk - sql

I need help with this problems discussed as follows:
I have created Gen-1 Hyper-VM on Windows 10 Pro 64 and it is networked and shows all host PC and can connect to internet.
I installed SQL Server R2 on it with the idea of connecting to
databases residing on one of host partitioned (SSD)
I then configured that host PC partition drive with SQL databases on
it as Virtual Drive successfully and I tested it both way
communication successfully. (Figure-1)
Now, when I try to attach the database from VM to that drive, SQL
server does not show that drive in the list of drives (Figure-2)
I am scratching my head as to what am I missing here. I would appreciate any suggestion here.

Related

Hyper-V Disk Creation on a Different Host

I'm beginning to think this is not possible but I have to ask. I have a Windows Server 2012R2 Datacenter server acting as a PDC and I have the Hyper-V role installed. This server has 15T of disk space but not a lot of CPU or RAM. I want to use it as a disk drive storage server for my VM Guest drives.
I also have a Server 2019 Core server that has more CPU power and 32G of RAM, but very little storage space. I want to use this server as my VM host machine, but I want to build all the storage on the 2012R2 server, but everything I have tried has failed. As expected, I can create VM guests if both the machine and disk is on this server, but if I try to create the disk on the other server it fails with an error similar to "Failed to create the virtual hard disk".
Is it just not possible to create the guest machine and disk on separate servers? Is this because of the 2012R2 and 2019 server differences? Is it possible and I just don't have the disk share setup properly?
Hyper-V is all new to me, it is a learning lab and I have a lot to learn. I've spent hours reading and going through articles but I just haven't found what I'm looking for yet. I think it's time I reach out to the experts and see it it is even possible first.
Thanks,
Tom
I can successfully create a guest if both the guest machine and disk are on the Host. When I try to create the disk on a a different host, I get the "Failed to create the virtual hard disk" error. I'm trying to maximize the use of the resources I have by splitting CPU/RAM on one host and Disk on another, but I am beginning to think it is not possible.

Connecting web app to SQL Server on Azure VM

I have a SQL Server on Azure VM and I am trying to connect to it from my web app. Can someone point me in the right direction?
I have searched and I have not found one where it connecting to SQL on VM (iAAS). I have only seen tutorials connect to the SQL Server (PAAS). Any help appreciated.
SQL Server on an Azure VM is exactly the same as connecting to SQL Server on a physical server or a VMWare VM.
You will need to ensure that the VM has either a static IP Address or a DNS name. This is what you would use to connect to it from your client. You will also have to ensure that you deal with firewalls.
Is your client also an Azure VM or is it on-premises?
Here's two Azure documents may help you:
Connect to a SQL Server Virtual Machine on Azure.
This topic describes how to connect to your SQL Server instance running on an Azure virtual machine.
Connect your application to Azure SQL Database managed instance.
Today you have multiple choices when deciding how and where you host your application.Whatever choice you made, you can connect it to a Managed Instance.
Hope this helps.

SQL Server Developer Clustering Limitations?

Hi we're building out some test clusters in Azure, using Developer edition of SQL Server 2016. However with no firewalls between the two nodes, both nodes in same subnet, all tcp/ip settings enabled and sa permissions on both servers we're unable to connect using SSMS (management studio), what I'm trying to understand is are there any limitations with creating AlwaysOn Availabiity groups using SQL Developer 2016? Getting the following error
Mcrosoft SQL Server, Error 5 "Access is Denied"
However I can log onto the instances on both machines locally using ssms, but not across the network.
Think it might be a limitation on the sql server edition?
Thanks and sorry if this seems a bit random :)
In order to connect to SQL server on VM from a local machine. you have to not only open 1433 port for the VM on the portal, but also do you need to set up the firewall inside of the VM machine. Make sure you have the inbound 1433 port opened as below:

SQL query is running 10 times faster on local desktop SQL Server Express than on SQL Server in Azure

We are currently running two instances of SQL Server. For development purposes, we run a local DB on a desktop PC in our office.
The PC has following stats:
8 GB Ram
AMD Athlon 5350 APU with Radeon(tm) R3 2.05 GZ
64 Bit Windows 8.1
Microsoft SQL Server 2014 - 12.0.2000.8 (X64) Express Edition (64-bit)
HDD Seagate ST1000DM003 1 TB
The server is located in Azure as VM Standard-Tier A3 running the pre-provided Windows Server 2012 R2 Datacenter image
Now we are facing a problem that the exact same query is running locally on the desktop 10 times faster than the on the server.
I connect to the pc with a local installed Management Studio via TCP/IP over our local network. When I connect to the server I use Remote Desktop connection and start a local instance of management studio on the server.
I have changed already the connection mode from default to TCP/IP on the server which brings me to the factor 10 times slower with default connection it will be 20 times slower. Even changing to named pipes the performance is worse.
Also rewriting the query and using different approaches, always the express version is much faster than the server. We did not do any configuration or tuning on the installation of the express version so on the server side.
Any comments a very appreciated!
Best
Simon
You should add the following at the top of the query to see where the differences are:
SET STATISTICS TIME ON
SET STATISTICS IO ON
Is your Local machine have SSD ? If it's the case, it's normal.
Try to rebuild indexes used.
Update the Database/Table statistics. The Execution Plan can be the same, but with bad stats, I've often saw very low performance. Especially if you make a lot of insert/delete.
You can see if something is wrong with SET STATISTICS IO ON. Look at the logical reads on tables, the orders of workfill tables, etc. Check if it's different from the local server.

How I can connect local sql database from Oracle VM OBIEE

I am using Oracle VM for OBIEE and I want to connect my local SQL server DB
How I can do it? Are they any ODBC for vm machine?
When it comes to connect to and from VMs, the tricky part is figuring out how the IP addresses and overall networking are setup. There's nothing "special" concerning odbc connecting to a physical or virtual machine.