azure-sql-database

Using ADF, how to get file names loaded into a SQL Server table?

馋奶兔 提交于 2019-12-11 05:32:21
问题 I am trying to use the GetMetadata activity and a CopyData activity together. My setup looks like this. I am trying to get files names (using GetMetadata) and load these into a field in a SQL Server table (in conjunction with the CopyData). The CopyData works perfectly fine, but I don't see any way to have the GetMetadata get file names and pass those into a field in a table. In my example, I have 4 fields in the source data which match 4 fields in the destination table. The 5th field,

Azure web api call slow on phone but works well on android emulator

僤鯓⒐⒋嵵緔 提交于 2019-12-11 05:15:39
问题 I am trying to make a call to my web api using Refit in a Xamarin Forms app and it seems to work well in the emulator (2 - 5 secs) but crashes most times on a real android phone or takes quite long to return on rare occasions. I am using a basic 5 DTU SQL database on Azure. Could this be the reason I have tried to make 2 calls from the device and the spike in the chart above is a result of it. The first query takes a bit of time and once it returns (I managed to get a reply this time) I make

azure sql server firewall settings

半城伤御伤魂 提交于 2019-12-11 04:55:56
问题 How to find my computer's external IP address for azure sql server firewall settings? It is different from the one I get from Ipconfig command(IPv4). I can see a specific IP address on the azure portal but want to know if/how I can see it from my machine? 回答1: There is a "AutoDetectClientIP" Management API call that updates an existing Firewall Exception to the caller's IP address. But you need access to a Management Certificate that is valid for the given subscription, the subscription ID,

Connecting to SQL-Azure in rails using tiny_TDS: [BUG] Segmentation fault

这一生的挚爱 提交于 2019-12-11 04:48:51
问题 We're trying to get rails to talk to a sqlserver db on Azure, we install freeTDS with openssl and libiconv: ./configure --prefix=/usr/local --with-libiconv-prefix=DIR --with-openssl=DIR make make install We then add tiny_TDS and activerecord-sqlserver-adapter to the gemfile: gem 'tiny_tds' gem 'activerecord-sqlserver-adapter' $ bundle install Configure the database: development: adapter: sqlserver host: xxxxxxx.database.windows.net mode: DBLIB port: 1433 database: xxxxx username: xxxxxxxx

Pointing EF to a database when the POCO files are in a seperate project

爷,独闯天下 提交于 2019-12-11 03:47:11
问题 I have a single ASP.Net solution with 3 projects in it. The Data Access Layer (DAL) that contains the code first CS files for my database, the API project, and the UI Project. I have setup the web.config file of the API to point to my test DB in Azure, I have installed Entity Framework into both the API and DAL. When I go to run my first migration from the Package Manager Console using the UPDATE-DATABASE I get the error No migrations configuration type was found in the assembly API So then I

alternative xp_cmdshell in sql azure

瘦欲@ 提交于 2019-12-11 03:31:30
问题 what is the alternative of XP_CMDshell ? it is working fine in sql server but it is not support in sql azure so what is alternative for sql azure ? 回答1: I assume you need command line access to access BCP since you are trying to create and upload/download data into a flat or xml file. SQL Azure does not provide access to a command prompt. Think of SQL Azure as just a virtualized service, without host infrastructure (Virtualized or physical). Since BCP is actually a command line based utility

Script task to upload zip file to blob storage with azure datafactory SSIS

与世无争的帅哥 提交于 2019-12-11 03:23:47
问题 I have a azure data factory project. I need to query some data from my Azure SQL Database then load into an xml, zip it and upload to blob sotrage. I don't want to write anything to the file system (because I think the Azure Database doesn't have any lcoal storage) so I am using the Memorystream. This Script Task is working on my local SSIS database but not on the Azure Datafactory: using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using

Which privileges does a user need to query used size in SQL Azure database?

若如初见. 提交于 2019-12-11 03:23:18
问题 I'm trying to query the consumed size of a SQL Azure database using code from this answer: SELECT SUM(reserved_page_count)*8.0/1024 FROM sys.dm_db_partition_stats; That query runs just fine under the database admin, but not under another user - I get The user does not have permission to perform this action. and when I try to GRANT SELECT permission I get this error message: Permissions on server scoped catalog views or system stored procedures or extended stored procedures can be granted only

Replication of production env database to staging prior to deployment with Octopus

ε祈祈猫儿з 提交于 2019-12-11 03:16:27
问题 In order to verify the deployment of my database scripts better, I'd like to pre-initialize my Staging database with a mirror image of the Production database as a first step in my Octopus deployment. I'm using SQL Azure and DACFX. I'm curious if anyone else has tried this... Is Start-AzureSqlDatabaseCopy the right PS cmdlet to use for this operation? Will this effect the performance of my production environment? Are there any other options to consider? Update I developed the below script,

Azure Data Factory activity copy: Evaluate column in sink table with @pipeline().TriggerTime

江枫思渺然 提交于 2019-12-11 03:15:39
问题 With Data Factory V2 I'm trying to implement a stream of data copy from one Azure SQL database to another. I have mapped all the columns of the source table with the sink table but in the sink table I have an empty column where I would like to enter the pipeline run time. Does anyone know how to fill this column in the sink table without it being present in the source table? Below there is the code of my copy pipeline { "name": "FLD_Item_base", "properties": { "activities": [ { "name": "Copy