David Thielen
David Thielen

Reputation: 32926

How can I tell if I'm connecting to Azure Sql Database

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

Answers (1)

MihaelaBlendea
MihaelaBlendea

Reputation: 218

Select @@version will return Microsoft SQL Azure (RTM) - 12.0.2000.8 ... for Azure Sql DB.

Thanks, Mihaela

Upvotes: 1

Related Questions