azure-sql-database

Real World Windows Azure Costing Examples, Anyone?

限于喜欢 提交于 2020-01-23 08:28:26
问题 OK, we're in Dec 2010, azure has been out now for a decent period. Sure I've come across silly articles predicting what it might costs to run with Azure (http://robburke.net/2010/01/28/windows-azures-pricing-model-discourages-small-scale-apps/). But what I'd really like to know is who has run Real World Live Azure Apps? What did your applications looks like - which services, how many roles, what storage, how many users etc. and ultimately how much did it cost you? Right now, trying to figure

Create a linked server in SQL Azure database [duplicate]

烈酒焚心 提交于 2020-01-23 07:39:48
问题 This question already has answers here : I need to add a linked server to a MS Azure SQL Server (5 answers) Closed 3 years ago . We have using two databases that is used for cross database queries.One is named azureDB1 and another is azureDB2.These databases resides on my Azure cloud SQL Server.Our scenario is to call a stored procedure that resides in azureDB2 from azureDB1.For this we have tried to create a linked server using "sp_addlinkedserver" stored procedure.But we got error message

Entity Framework “Invalid attempt to read when no data is present” with 'large' data on Azure

可紊 提交于 2020-01-22 19:47:05
问题 I am using Entity Framework (v4.0) to connect to SQL Azure (I have the March SDK installed) and getting a InvalidOperationException when trying to query a table. The message of the exception is Invalid attempt to read when no data is present. and the stack trace clearly shows that this is failing internally in EF when it attempts to get the column header: at System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32 i) at System.Data.SqlClient.SqlDataReader.IsDBNull(Int32 i) at lambda_method

How to configure mail on Azure SQL Database

谁说胖子不能爱 提交于 2020-01-20 08:36:18
问题 We are moving from Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) to Microsoft SQL Azure (RTM) - 12.0.2000.8 Previously we send mail from database mail if a particular table have not updated in a particular time interval. But i tried to do the same on Azure mail but seems like this functionality is not available on this. 回答1: You can write a Stored Procedure to query the table and return results, read the results in an Azure WebJob, Logic App or Azure Function, schedule the execution and

Importing a BCP file in Azure database

丶灬走出姿态 提交于 2020-01-17 09:21:52
问题 I have an Azure function that retrieves a zip file that contains multiple BCP files which unzips them and adds them as blobs. I now want to import the BCP files into my SQL database but not sure how to go about it. I know I can use following script and run an SqlCommand: BULK INSERT RegPlusExtract.dbo.extract_class FROM 'D:\local\data\extract_class.bsp' WITH ( FIELDTERMINATOR = '@**@',ROWTERMINATOR = '*@@*') But this obviously does not work as the SQL server doesn't have access to the local

Can't execute query to an Azure SQL Server from PowerShell

妖精的绣舞 提交于 2020-01-17 07:17:02
问题 I have a SQL Azure database and I try to execute the query from PowerShell. I am using Invoke-Sqlcmd Command. I get this error message: 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 Provider, error: 40 - Could not open a connection to SQL Server) But if I connect

Can't execute query to an Azure SQL Server from PowerShell

六月ゝ 毕业季﹏ 提交于 2020-01-17 07:15:07
问题 I have a SQL Azure database and I try to execute the query from PowerShell. I am using Invoke-Sqlcmd Command. I get this error message: 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 Provider, error: 40 - Could not open a connection to SQL Server) But if I connect

I am getting an error while connecting to an sql DB in Jupyter Notebook

孤街浪徒 提交于 2020-01-16 16:58:50
问题 Facing issue with below code on jupyter while connecting with SQL DB. con = pyodbc.connect('Driver={ODBC Driver 13 for SQL Server};Server='+server+';Database='+database+';Uid='+username+' ;Pwd='+passwor d+';Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword') Error Description Below: OperationalError: ('08001', '[08001] [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: [error:140A90F1:lib(20):func(169):reason(241)] (-1) (SQLDriverConnect)'

I am getting an error while connecting to an sql DB in Jupyter Notebook

北城余情 提交于 2020-01-16 16:57:31
问题 Facing issue with below code on jupyter while connecting with SQL DB. con = pyodbc.connect('Driver={ODBC Driver 13 for SQL Server};Server='+server+';Database='+database+';Uid='+username+' ;Pwd='+passwor d+';Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword') Error Description Below: OperationalError: ('08001', '[08001] [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: [error:140A90F1:lib(20):func(169):reason(241)] (-1) (SQLDriverConnect)'

Not able to compare columns in SQL Server

柔情痞子 提交于 2020-01-16 10:03:27
问题 I am using the following SQL code to compare two nvarchar columns. But the code is showing incorrect results: SELECT DP.NAME, DP.sid, SU.sid, CASE WHEN DP.sid = SU.sid THEN 'TRUE' ELSE 'FALSE' END AS DESDIREDRESULT FROM #SQLLOGINS DP INNER JOIN SYS.sysusers SU ON DP.name COLLATE DATABASE_DEFAULT = SU.name COLLATE DATABASE_DEFAULT In the code, I am doing a inner join of a temp table, #SQLLOGINS , with sys.sysusers . This temp table includes NAME and SID of sys.sqllogins . I am facing an issue,