Forum Widgets
Latest Discussions
Azure SQL server rollback itself?
We have an Azure SQL server. It is a datasource of a Power App canvas app. Today I connected to it with SSMS v19. First, I ran 'Begin tran' twice (is it a mistake?). Then 'Delete From dbo.table1 where ID=30' and another row with ID=31. Then I verified these 2 rows are deleted by 'Select * from dbo.table1' Finally, I ran 'Commit tran' I verified again above 2 rows are deleted by 'Select * from dbo.table1' However, there is no change in the Power App. So I reopen the SSMS and connect to the DB again. This time when I ran 'Select * from dbo.table1', the 2 rows are showing up. What could be the problem? Is it a bug in old version SSMS?SharePointAdmin1030Sep 22, 2025Copper Contributor27Views0likes0CommentsAzure SQL Firewall / Locks
Hi there, I have 2 environments. I'm more of admin on Azure environment (recently made as subscription admin) after which Dev issue - Azure SQL I'm having difficulty to remove IP from Azure SQL Firewall. (Earlier i was able to) today my manager granted me subscription admin and as SQL Security Manager and it still not able to remove grayed out IPs.AJ-AJAug 06, 2025Copper Contributor51Views0likes0CommentsBetter way to check database for dups
I have vba in Excel that incorporates SQL to iterate through all the records in a sheet and checks the databsase for that record using a combination of two fields to make a unique id. If it's in the database then it's deleted from the sheet. Otherwise it goes to the next one. Easy enough. I've had this code for years and it's always been fine but now there are too many records to do it this way. It takes too long. What would be a better way to query the SQL database to return those records that are dups and then delete them from the sheet. Here's an idea of the snippet of code I currently use: 'i is the record number from bottom to top For i = DataSheet.Range("A" & Rows.Count).End(xlUp).Row To 2 Step -1 CountyName = DataSheet.Cells(i, 1).Value CaseNumber = DataSheet.Cells(i, 3).Value strSQL = "SELECT County, Case_Number FROM tblAdLetter " & _ "WHERE County = '" & CountyName & "' AND Case_Number = '" & CaseNumber & "'" rs.Open strSQL, cn If Not rs.EOF Then DataSheet.Rows(i).Delete End If rs.Close Next i Is there a better way or faster way? todTod_LayAug 06, 2025Copper Contributor31Views0likes0CommentsGlobal secure access client doesn't connect to the Azure SQL Server engine
Unlike other resources such as keyvault, cosmosdb, virtual machine; it is not possible to connect to SQL Databases. Has anyone tried to achieve the connection without having to add the ip in the server engine firewall?ksalazar1655Jan 08, 2025Copper Contributor73Views0likes0CommentsAzureSQL DB looks empty when it's not
Hi, Quite often it happens that DB does not show any items (tables, views, scripts etc. - any item) in it. At the same time one user can see everything when other not. It happens randomly to different users. For now the only way to fix that we found for now is to scale up and down the DB compute power. It's like it "resets" something and suddenly all items are visible again. We're connecting to DB cluster via MSSMS as per screenshot. Anyone know how to fix that for good?Kris_KBDec 23, 2024Copper Contributor64Views0likes0CommentsAzure Data Studio - SQL DB Project build error MSB4020
Hi folks. I'm just getting started with ADS as we need to move an existing on-prem DB to Azure. I 'm trying to use ADS to set up the target DB. I installed the SQL Database Projects extension and created a project from our on-prem DB, but every time I try to build it I get Error MSB4020: stdout: C:\Program Files\dotnet\sdk\7.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(1199,3): error MSB4020: The value "" of the "Project" attribute in element <Import> is invalid. [c:\testing\WT pre-migration\WT pre-migration.sqlproj] Here's the proj file: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build"> <Sdk Name="Microsoft.Build.Sql" Version="0.2.0-preview" /> <PropertyGroup> <Name>WT pre-migration</Name> <ProjectGuid>{AE8E25C1-F1D6-4447-A008-2C24C82B51FA}</ProjectGuid> <DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP> <ModelCollation>1033, CI</ModelCollation> </PropertyGroup> <Target Name="BeforeBuild"> <Delete Files="$(BaseIntermediateOutputPath)\project.assets.json" /> </Target> </Project>MikeSmith-edu-techDec 18, 2024Copper Contributor109Views0likes0CommentsAzure SQL programmatic access
I work with a team of statisticians who would like to programmatically access an Azure SQL database via R/R Studio without human interaction. Access is setup currently with Microsoft Entra with MFA. The team ideally want to run their R script and connect to the database, without having to be there to enter their login credentials and MFA, can this be done via a key or SAS token? What is the best or recommended method to do this? Thank you. Z51Views0likes0Commentserror when trying to execute sp_invoke_external_rest_endpoint
hi team i am using the following sql server version Microsoft Azure SQL Data Warehouse - 10.0.33054.0 Jul 9 2024 00:12:38 Copyright (c) Microsoft Corporation my college told me this is Azure Dedicated pool , but when i try this statement SERVERPROPERTY('EngineEdition') it gave me the value of 6 now the issue is :- this is my code , which is the REST API is working fine from postman tool ------------------------------------------------------ DECLARE @URL NVARCHAR(255) = 'https://date.nager.at/api/v3/PublicHolidays/2024/ZA' -- HTTP Request Parameters DECLARE @Object AS INT; DECLARE Hr INT; DECLARE @JSONResponse as NVARCHAR(max); -------------------------------------------------------------------------------- -- Perform HTTP GET Request to endpoint EXEC Hr = sp_invoke_external_rest_endpoint @url = @URL, @method = 'GET', @response = @JSONResponse output; SELECT Hr AS ReturnCode, @JSONResponse AS Response --------------------------------------------------------------------- it gave me the following error :- Msg 103010, Level 16, State 1, Line 1 Parse error at line: 10, column: 1: Incorrect syntax near 'EXEC'. any suggestions ????issam_qasasOct 21, 2024Copper Contributor166Views0likes0CommentsSQL MI firewall
During SQL MI deployment, a built-in firewall is deployed along with a dedicated virtual network (VNET). We can choose to access SQL MI using either a public URL or a private endpoint. Does this built-in firewall provide sufficient protection for SQL MI, or do we need to implement an additional firewall?azuserOct 01, 2024Copper Contributor124Views0likes0CommentsManaged Instance - Start/Stop Schedule and Planned Maintenance (Updates)
Hello Tech-Community, we recently startet to Shut-Down our Managed Instance over night when all Developers are a sleep. My question now is - when a [Planned Maintenance] is announced for Updating the Managed Instance Infrastructure, what will happen if the Instance is down with a [Stop Schedule] ? Will the Patches be applied anyway - or will the Updates fail ? If anybody knows - please inform us. Thanks. Regards from Zürich _ SwitzerlandRogerBossard-SwissSep 19, 2024Copper Contributor134Views0likes0Comments
Resources
Tags
- azure sql database19 Topics
- azure sql16 Topics
- Managed Instance6 Topics
- sql server5 Topics
- development4 Topics
- SQL Connector4 Topics
- azure active directory3 Topics
- security2 Topics
- sql1 Topic