Reputation: 32926
Microsoft provides the same ADO.NET connector to Sql Server and Sql Database. How can I tell if the DB I'm connecting to is Sql Database?
And yes I can probably guess from the connection string. But I'd prefer to know for sure.
thanks - dave
Upvotes: 0
Views: 96
Reputation: 218
Select @@version will return Microsoft SQL Azure (RTM) - 12.0.2000.8 ... for Azure Sql DB.
Thanks, Mihaela
Upvotes: 1