Laden...
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Creating Azure SQL Databases | |
I want to delegate the ability of someone else in my organization to create Azure SQL databases in my subscription. I create a login for another user, and want to give them the ability to create new databases. Which role should I assign in the logical master database? | |
Think you know the answer? Click here, and find out if you are right. |
Yesterday's Question of the Day (by Steve Jones - SSC Editor) |
SQLCMD Variables I have this script saved on my filessystem: USE AdventureWorks; SELECT x.$(ColumnName) FROM Person.Person x WHERE x.BusinessEntityID < 5;I want to call this from SQLCMD and replace the variable with a value. What parameter should I add to this code to get this to work? sqlcmd -S localhost -E -i sqlcmdvar.sqlAnswer: -v Columnname="FirstName" Explanation: |
Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Administration |
What are the dangers of utilizing the "No validation expected" in MSDTC - In our current circumstance we have two servers on two separate areas (one is in DMZ, other in inside organization) and we really want them to have the option to utilize dispersed exchanges. The exchanges would be started from the server on the inside network through connected server. The server on the DMZ would simply […] |
Backup verify with third party tools - Is backup verify option available with third party tools (DDBoost or Lite speed or Redgate) like native backup in sql? What are the negative impact using backups with verify option? |
Pre allocating free space to db growth - Hi SQL experts, What are advantages/Disadvantages, if you pre allocate the extra space to the database growth (70-90%) ahead. How can you release the pre allocated free space? When I choose task shrink file, release unused space. It didn’t release any space even though there’s is 90% free space Thanks Ramana |
Seeing messages in Errorlog - Hi All, We are seeing below messages in ERRORLOG. Does it indicate any pressure or just informational messages? Anything needs to be looked into? 2022-04-16 00:01:05.360 spid21s FlushCache: cleaned up 134823 bufs with 18733 writes in 62497 ms (avoided 3639 new dirty bufs) for db 27:0 2022-04-16 00:01:05.360 spid21s average writes per second: 299.74 writes/sec […] |
SQL Server 2017 - Development |
When run Python script from SQL server 2017 get error ? - when run python script from sql server 2017 I get error Msg 39004, Level 16, State 20, Line 0 A 'Python' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004. Msg 39019, Level 16, State 2, Line 0 An external script error occurred: Error in execution. Check the output for more information. Traceback (most […] |
Error when import data from excel to SQL server using Python ? - I work on SQL server 2017 I add script python to import data from excel to SQL python version 3.10 when run query below i get error declare @ImportPath NVARCHAR(MAX)='G:\ImportExportExcel' declare @DBConnectionString NVARCHAR(MAX) = 'Database=z2data;Uid=sa;Pwd=321' declare @ImportAll BIT=0 declare @CombineTarget BIT=0 declare @ExcelFileName NVARCHAR(200)='dbo.studentsdata' declare @ExcelSheetName NVARCHAR(50)='students2' --BEGIN TRY SELECT @ImportPath = CASE WHEN RIGHT(@ImportPath,1) […] |
SQL server 2017 question - Hi all. Im wondering if you could all point me in the right direction. Im currently in school and the schools machines have SQL Server 2017 developper installed. Im trying to find myself and install media to install it on my own machind but every link a find brings me back to the 2019 version […] |
SQL Server 2016 - Development and T-SQL |
Maintenance Plan to Sever All Connections - Before I ask the question, I know this can be done via *.bat files and task scheduler on the server or a forced reboot of the server and a few other methods, but unfortunately, due to security reasons at my company, we do not have the ability to do this outside of SQL Server itself, […] |
Development - SQL Server 2014 |
SQL Server 2014 Standard - I just bought a SQL 2014 standard license from a vendor, but noticed that the product key can be looked up on google..... Does SQL 2014 have unique keys or does it just use one product key based on editions? |
SQL Server 2019 - Administration |
Delta Airlines Reservations Contact Number 818-286-3607 - Delta Airlines Reservations Contact Number - Delta Airlines is one of the major carriers of the world. It is the world largest carrier of the world by its fleet size, passenger carried, revenue and profit. Together with its regional partner Airlines Delta Eagle, they offer 6700 flights daily to 350 destinations in 50 countries. It […] |
SET QUERY_STORE settings (SQL Server 2019) - I have a query I periodically run against the query store for retrieving the number of milliseconds of CPU consumed by the current database for time windows of the recent past (e.g. each 5-minute window for the past 4 hours). That's all I'm using the query store for. What are the best values to use […] |
CPU usage of database for time spans in SQL Server 2019 - I want to track how much CPU usage (in ms, not %) was consumed for a database in a given time window. I know how to do this with the Query Store, but I think it stores a lot more than I need, and I don't want to lose data due to seldom-used query plans […] |
SQL Server 2019 - Development |
OPENJSON unable to parse Portuguese characters - I'm trying to convert my JSON data into a table format in SQL Server Express 2019. Following are my JSON data: DECLARE @token INT; DECLARE @ret INT; DECLARE @url NVARCHAR(MAX); DECLARE @json AS TABLE(Json_Table NVARCHAR(MAX)) SET @url = 'http://www.test.com/webservice.php?user=DHRWWF&pass=CVernise&key=DFGJRTSrnwieuwn3&format=json' EXEC @ret = sp_OACreate 'MSXML2.XMLHTTP', @token OUT; IF @ret <> 0 RAISERROR('Unable to open HTTP connection.', […] |
How a batch can get how much CPU it used in SQL Server 2019 - Is there something I can put at the end of a batch to find out how many milliseconds of CPU it used? Something like SET STATISTICS TIME but for the whole batch, not each statement. |
SQL Azure - Development |
Is it possible to use Azure Data Studio to connect to on-prem SQL Server? - I'm getting this error when trying to create a connection to an on-prem SQL Server through Azure Active Directory - Universal with MFA authentication. Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) Thanks! |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Laden...
Laden...
© 2025