azure-sql-database

Azure function connectionstring for Azure SQL trough VNet

房东的猫 提交于 2019-12-06 16:29:05
I would like to know how to access my Azure SQL database in a secure way from my Azure Function App, meaning not via public Internet. I have an Function App (Function App Plan - standard tier), using VNET/Gateway integration. I have specified a service EndPoint for Microsoft.SQL ... I enabled the Virtual network access on Azure SQL database .... When the Azure function tries to connect to the sql db, it uses the 'normal' connectionstring, which includes the sql database server name as dns label, then I get the error that my ip address is not allowed access. The ip address is the outbound IP

Sql 2008 Developer to Sql Azure Migration

自作多情 提交于 2019-12-06 16:02:08
问题 Hi My company is deciding for switching its existing application to azure platform (only Sql Part). So we need to upload our db from local to cloud. For migration i came across various tools like 1. cerebrata 's tools 2. SqlAzure Migration wizard 3. Microsoft Sql Data Sync 4. Conventional Script way via management studio. But all the above tools showed that they have limited capacity. A user cannot work flawlessly on either of the tool. In cerebrata's tool - the main drawback was its field

Entire local database sync with sql azure

久未见 提交于 2019-12-06 13:29:34
I am developing a windows application which is using local database. I want to add a function to sync all local data to the sql azure. Currently I used following code. It enabled me to sync one particular table successfully., here is "Author_Master" string sqlazureConnectionString = "XXXX"; string sqllocalConnectionString = "Server=localhost;Database=Enh_Branchwise_Master_Bookshop;Trusted_Connection=True"; using (SqlConnection serverCon = new SqlConnection(sqlazureConnectionString)) using (SqlConnection clientCon = new SqlConnection(sqllocalConnectionString)) { var provider1 = new

Exceed 3 hours timeout Automation Runbook Azure

浪子不回头ぞ 提交于 2019-12-06 13:28:19
Hello guys, I have a runbook to launch but it takes more than 3 hours to run (process of partitions) and so, it stops before being complete. I wanted to know if there is a way to exceed the 3 hours limitation. I've heared about hybrid runbooks but I'm not sure how it could solve my problem. Do you know if there is other solutions ? Thanks a lot. If you want to stick to Azure Automation, you can use Checkpoints : Azure Automation has a feature called “fairshare”, where any runbook that runs for 3 hours is unloaded to allow other runbooks to run. Eventually, the unloaded runbook will be reloaded

Azure SQL Database sometimes unreachable from Azure Websites

谁说胖子不能爱 提交于 2019-12-06 13:05:09
I have a asp.net application deployed to Azure websites connecting to Azure SQL Database. This has been working fine for the last year, but last weekend I have started getting errors connecting to the database giving the following stacktrace. [Win32Exception (0x80004005): Access is denied] [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes

Azure sql query is slow when an indexed column used in where clause has a particular value

北城余情 提交于 2019-12-06 12:58:20
Instance: Azure SQL S2 instance We have a candidates table which has ~1.7Million records. candidates table is indexed on non-primary key AccountID. AccountID:646 has 80K rows and AccountID:10 has 365K rows. When we fire select top(10) from table where non_pk_indexed_col=int Select top(10) from candidates where accountid=10 the query completes with 00:00:00 time taken Select top(10) from candidates where accountid=646 , the query completes with 01:45:00 time taken Why would the same query take such a long time when the value is different Most likely you are getting very different query plans

Forcing Access to forget a username and password for a linked table

喜夏-厌秋 提交于 2019-12-06 11:59:14
问题 I have an MS Access database that is connected to SQL server via linked servers. The linked tables are added using a modified AttachDSNLessTable procedure: stConnect = "ODBC;DRIVER=" & stDriverName & ";SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword Set td = CurrentDb.CreateTableDef(stLocalTableName) td.SourceTableName = stRemoteTableName td.Connect = stConnect CurrentDb.TableDefs.Append td I have a facility within the application to change the

How to remotely update azure SQL firewall with local IP via powershell or C#

早过忘川 提交于 2019-12-06 11:29:02
问题 How can I remotely update my azure SQL firewall with my local PCs IP address for administration either via powershell or C#. I have had a look over the documentation but I can only find out how to do it from the actual server itself, not remotely. I can get visual studio to pop up and ask me if I want to add my IP address to the firewall randomly, but most the time it simply fails and does not ask me so I am looking for a solution other than manually logging into the azure portal whenever my

Inserting 1000 rows into Azure Database takes 13 seconds?

青春壹個敷衍的年華 提交于 2019-12-06 11:07:20
Can anyone please tell me why it might be taking 12+ seconds to insert 1000 rows into a SQL database hosted on Azure? I'm just getting started with Azure, and this is (obviously) absurd... Create Table xyz (ID int primary key identity(1,1), FirstName varchar(20)) GO create procedure InsertSomeRows as set nocount on Declare @StartTime datetime = getdate() Declare @x int = 0; While @X < 1000 Begin insert into xyz (FirstName) select 'john' Set @X = @X+1; End Select count(*) as Rows, DateDiff(SECOND, @StartTime, GetDate()) as SecondsPassed from xyz GO Exec InsertSomeRows Exec InsertSomeRows Exec

Developing for SQL Azure offline

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 11:01:17
This is probably a stupid question, but I'd like to start moving a couple of web apps over to azure. I'm not doing anything particularly difficult in them and have solved all of my development concerns (deployment is another can of worms) so far except for one thing. How do I work on these projects without connecting to azure? That is, I frequently work in places with wifi that is flat out horrid or non-existent. How do I set things up so I can still work against a database if I cannot connect to SQL Azure in the cloud? Currently I'm not using azure table storage or anything, just plain old