azure-sql-database

How to force in-transit encryption on Sql Azure like on regular SQL Server?

牧云@^-^@ 提交于 2021-01-29 14:53:50
问题 We are testing a proof of concept of our apps. We have a managed SQL Server instance on Azure that hosts our database. Before I go bug the Azure personnel we have on hand, I want to know if it is possible to force in-transit encryption? I want to make sure my connections from my various clients (apps, web site, services) are forced to encrypt. I am not talking about the encryption of tables and files but the connections themselves. By googling, I found only this link (https://docs.microsoft

Running a cmd from Azure SQL

别等时光非礼了梦想. 提交于 2021-01-29 13:52:56
问题 I'm trying to migrate some code from Microsoft SQL Server Management Studio to Azure SQL. The code uses xp_cmdshell to run a .bat file along with some parameters that moves files around and uploads said files to a git repository. Now I have to migrate it to an Azure SQL PaaS server, where I can no longer use xp_cmdshell - is there some workaround to this problem? Is there a way to run that .bat file with parameters? Thanks in advance 回答1: Now I have to migrate it to an Azure sql PaaS server,

Convert Oracle SQL query to Azure SQL query

偶尔善良 提交于 2021-01-29 10:02:34
问题 I have a pretty long Oracle SQL query that needs to be compatible for Azure SQL. I am new to both database types. Here is query: MERGE INTO studies USING dual ON (study_id = :study_id) WHEN NOT MATCHED THEN INSERT (study_id, study_date) VALUES (:study_id, :study_date) I am not sure USING dual would work. I read some solution saying that USING dual is not necessary in SQL Server. I really appreciate if you can explain what this query means and how I can translate this for Azure SQL query. 回答1:

Azure data factory data flow silently NULLing date column

只愿长相守 提交于 2021-01-29 09:57:35
问题 I'm trying to use Azure Data Factory to upsert a CSV into an Azure SQL table. All seemed well until I checked the results. One of the columns is a nullable date. The CSV contains a value like so 1/2/2020 12:00:00 AM . The data flow silently inserts a NULL instead of throwing an error because it didn't like the input. So how can I get my data flow to convert the string to a datetime properly, and then to error out on issues like this in the future? I really don't want silent failures and bad

Can only connect to master database with JDBC Sql Server

故事扮演 提交于 2021-01-29 08:02:17
问题 I just successfully connected my android app with a database running on azure cloud services to run simple queries. The connection string provided by azure already specifies which database I want to connect to, but when it is trying to execute a select query in that database the table cannot be found because the query is being executed on Master database. jdbc:jtds:sqlserver://{servername}:1433;database=BDassistance;user={username};password={password};encrypt=true;trustServerCertificate=false

Calling Azure SQL Database REST API gives the error: The authentication scheme of Basic is not supported

北慕城南 提交于 2021-01-29 07:36:45
问题 In the following code of my WPF Core client app , I am trying to use this Azure SQL Database REST API to delete a database in my Azure subscription. But I am getting the error shown below: Question : What I may be missing, and how can we resolve the issue? Remark : I found a similar example here, and I'm not sure why my code is not working. The same user name (with SQL Admin access) and password works fine when I connect to the same Azure SQL Db from SSMS - 2019 on my laptop. Code : const

Which are necessary steps to connect to an Azure SQL database in Visual Studio or SQL Server Management Studio?

大城市里の小女人 提交于 2021-01-29 02:29:33
问题 I am using Visual Studio 2013 with update 5. I created a SQL database on Azure. Now I am trying to connect to it in VS and SQL Server Management Studio, but I get this error Error : Connect to Server Cannot connect to MyServerName.database.windows.net. ADDITIONAL INFORMATION: 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

Azure Data Flow creating / managing keys for identity relationships

微笑、不失礼 提交于 2021-01-29 02:04:16
问题 Curious to find out what the best way is to generate relationship identities through ADF. Right now, I'm consuming JSON data that does not have any identity information. This data is then transformed into multiple database sink tables with relationships (1..n, etc.). Due to FK constraints on some of the destination sink tables, these relationships need to be "built up" one at a time. This approach seems a bit kludgy, so I'm looking to see if there are other options that I'm not aware of. Note

Updating identity column in SQL Server and setting the seed starting value

此生再无相见时 提交于 2021-01-28 19:37:14
问题 I have a table filled with data and one of the columns - TrackingNumber - is an integer value. I have gotten a request to change it to auto-increment and to have it start the identity seed at 1000000. I know that I cannot alter a column to be an identity column in an existing table with data, so I have two options: either create an entirely new table and then move data from the old table into that new table or add an new identity column and update it with data from the old column. The problem

Can I use sqlbulkcopy with Azure SQL Paas?

非 Y 不嫁゛ 提交于 2021-01-28 11:40:32
问题 Can I use sqlbulkcopy with Azure SQL Paas? I have an app that does bulk copy to a database and we are testing it with SQL PaaS. It appears to be failing on the SQLBulkCopy. I thought I read this is not supported somewhere but do not see it in the Azure SQL documentation. Is this still a limitation? Where is that documented? I am using .net code to do the bulk copy (not SSIS or any other tool), it is a .net app, if it matters. 回答1: Short answer is, yes, you can use SQLBulkCopy to insert data