azure-sql-database

Bringing incremental data in from REST APIs into SQL azure

懵懂的女人 提交于 2019-12-07 15:41:29
问题 My needs are following: - Need to fetch data from a 3rd party API into SQL azure. The API's will be queried everyday for incremental data and may require pagination as by default any API response will give only Top N records. The API also needs an auth token to work, which is the first call before we start downloading data from endpoints. Due to last two reasons, I've opted for Function App which will be triggered daily rather than data factory which can query web APIs. Is there a better way

“USE statement is not supported to switch between databases” when running query

浪尽此生 提交于 2019-12-07 15:22:41
问题 I get the following error when trying to select a database with php's standard mssql_select_db function: USE statement is not supported to switch between databases. Use a new connection to connect to a different Database. (severity 16) . So i'm stumped as in where to go from here. Connection Code: $link = mssql_connect('dsn', 'user@server', 'password'); if (!$link) { die('Unable to connect!'); } if (!mssql_select_db('db', $link)) { die('Unable to select database!'); } $result = mssql_query(

SQL Azure not recognizing my clustered Index

房东的猫 提交于 2019-12-07 09:20:09
问题 I get the following error when I try to insert a row into a SQL Azure table. Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again. My problem is I do have a clustered index on that table. I used SQL Azure MW to generate the Azure SQL Script. Here's what I'm using: IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tblPasswordReset]') AND type in (N'U')) DROP TABLE [dbo].[tblPasswordReset] GO SET

Cannot connect to SQL Azure using SQL Server Management Studio

放肆的年华 提交于 2019-12-07 07:31:43
问题 I have create a SQL Azure database on the Azure portal, now I want to connect to it using SQL Server Management Studio. I've set my properties like this: Server Type:Database Engine: Server Name:[mycred].database.windows.net Authentification: SQL Server Authentification username: myusername password: mypassword But when I try to connecting with these properties I get an error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was

How to debug 'Login failed for user' on an Azure SQL database?

匆匆过客 提交于 2019-12-07 07:25:06
问题 Here's the error message that is stumping me: My Web App seems to have the correct connection string. This is exactly what Azure provides me when I click Show Connection String: Server=tcp:myservertest.database.windows.net,1433;Initial Catalog=MyDatabaseTest;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30; Here's the connection string that I put in the Visual Studio

Create SQL Server via Azure Resource Manager (ARM) template

核能气质少年 提交于 2019-12-07 06:50:40
问题 I am trying to create a new Azure instance of SQL Server in which I would like to then create a few new databases. I know from the Azure Portal that some sort of admin users could be: an SA user (I think this means "Server Admin" and it looks like some sort of old way of managing a SQL Server instance, but at the same time very "basic" and proved to work) an Active Directory user (not sure about Azure terminology here, but it looks like this could be some "broad user" for the whole Azure

tSQL to set up user with View Definition permission on SQL Azure

十年热恋 提交于 2019-12-07 05:54:08
问题 I'm trying to export a SQL Azure database to a .bacpac file using the Azure portal. The administrator username on my database contains a * . When I use it in the username field I get this error. The login name must meet the following requirements: It must be a SQL Identifier. It cannot be a system name, for example: - admin, administrator, sa, root, dbmanager, loginmanager, etc. - Built-in database user or role like dbo, guest, public, etc. It cannot contain: - White space like spaces, tabs,

Entity Framework Database Initialization: Timeout when initializing new Azure SqlDatabase

与世无争的帅哥 提交于 2019-12-07 05:37:09
问题 I have an ASP.NET MVC application. When a new customer is created via CustomerController I run a new background task (using HostingEnvironment.QueueBackgroundWorkItem ) to create a new Azure SqlDatabase for that customer. I use Entity Framework Code First to create/initialize the new database. Here's the code: // My ConnectionString var con = "..."; // Initialization strategy: create db and execute all Migrations // MyConfiguration is just a DbMigrationsConfiguration with

Azure SQL server max pool size was reached error

狂风中的少年 提交于 2019-12-07 05:19:50
问题 We have azure sql server, while connecting more than 40 concurrent users we getting below error. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. While doing the load test we getting the error.we directly executing a stored procedure using a tool([http://www.datamanipulation.net/sqlquerystress/][1]). For a single user stored procedure will return the

SQL Azure and READ_COMMITTED_SNAPSHOT

那年仲夏 提交于 2019-12-07 04:14:48
问题 I would like to set READ_COMMITTED_SNAPSHOT to ON on my SQL Azure database, but the following code, which works with other versions of SQL Server, is not supported in Azure: ALTER DATABASE [database_name] SET READ_COMMITTED_SNAPSHOT ON GO First question: Is it still a good idea to set READ_COMMITTED_SNAPSHOT to ON in SQL Azure (or whatever achieves the same result)? My intention is not to lock records when they are just being read, in order to improve performance. Second question: If it is a