Loading...
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Encrypting the Database Encryption Key | |
I am configuring Transparent Data Encryption for a new database and need to create a Database Encryption Key (DEK). As I architect this, I need to secure this key. What are my options for encrypting the DEK? | |
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) |
The NULL Connection Setting I connect in SSMS to SQL Server and run this code. What happens? SET ANSI_NULL_DFLT_ON ON SET ANSI_NULL_DFLT_OFF ON GO CREATE TABLE ANSINULLTest (someid INT) GOAnswer: The SET statements run and the table is created Explanation: While you can only have one of these settings set to ON at a time, you can run both of these statements. The second one overrides the first and the table is created. Ref: SET ANSI_NULL_DFLT_ON - https://learn.microsoft.com/en-us/sql/t-sql/statements/set-ansi-null-dflt-on-transact-sql?view=sql-server-ver16 SET ANSI_NULL_DFLT_OFF - https://learn.microsoft.com/en-us/sql/t-sql/statements/set-ansi-null-dflt-off-transact-sql?view=sql-server-ver16 |
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 |
migration - Has anyone migrated databases from on premise SQL Server to Azure Managed instance? If yes, what are the data transfer methods used? Thanks in advance. |
SQL Server 2017 - Development |
Multiple values in a parameter - Dear All, I want to use these values in the parameter for further usese, but it's giving me an error WITH ctevalues(recp_name, ing_name, qty) AS ( values ('pasta pollo', 'paprika', '1') ) INSERT INTO ing(recp_id, ing_name_id,qty) SELECT rec.recp_id, ing.ing_name_id,d.qty FROM ctevalues AS d INNER JOIN ing ON d.ing_name = ing.ing_name INNER JOIN recp AS rec […] |
'DATE' is not a recognized built-in function name - Please assist. I am getting the above error: CREATE VIEW DailyAccountBalances AS SELECT DATE(TransactionDate) AS Date, SUM(CASE WHEN TransactionType = 'Opening Balance' THEN Amount ELSE 0 END) AS OpeningBalance, SUM(CASE WHEN TransactionType = 'Closing Balance' THEN Amount ELSE 0 END) AS ClosingBalance, SUM(CASE WHEN TransactionType = 'Debit' THEN Amount ELSE 0 END) AS DebitedAmount, SUM(CASE […] |
SQL Server 2016 - Development and T-SQL |
This code works, but am requesting help with the code. - Hello everyone. I don't post here often even though I am constantly on the forums reading articles and such. I was wondering if anyone who is an excellent TSQL coder and perhaps is bored can assist me. I authored the below code, and it works just fine, but it is ugly (at least I think […] |
Administration - SQL Server 2014 |
SQL - new server - use a subnet? - Hi, In the process of upgrading our old SQL server hardware. Running into issues were we have years of development that references old SQL server by name. We have webservers, hundreds of SSIS packages, old ODBC clients, etc..that all reference this old server by name. To make matters worse there are some old client server […] |
SQL Server 2019 - Administration |
Microsoft SQL over IPSEC VPN TPLink routers - 2 locations - Hi Experts. We recently set up a second location. our software at our first location accesses the onsite server (windows Server2022) and this software uses SQL. Everything is very snappy and works well. We then set up the second location with IPSEC to create a VPN. All the mapped drives work well, no connection or […] |
Trouble moving from a 2017 SQL Express DB on one HP laptop to another HP laptop - I am trying to migrate a DB from an old dying laptop to a new one, both HPs. The old one had SQL 2017 on it the new one SQL Express 2019. I have created the logins and linked them to the users that were orphaned in the backup DB/Restore process as it was quicker […] |
Database copies (cross environment) and sizing strategies for 2019 - I'm sure this has been asked many, many, many times and hoping several optimal solutions exist that I can be pointed towards... A company I work for has need of production copies being restored down to DEV/TEST environments literally all the time. So much so that the entire process is automated via tickets. This all […] |
In-Place upgrades - The company I work for is insisting on in-place upgrades to 2019. I've made all the relevant arguments and it's just where I'm at. I started with the dev environment and immediately ran into an error that I couldn't get around. It seemed like I needed to attach the iso for the old install media […] |
SQL Server 2019 - Development |
Track Insert/Update/Delete Operations in Sql Server DB Table - Hi Team, I have a requirement to track any insert/update/Delete operations happened against Database table by any user, catch those changes and send alert. Please note that there are around 1000+ DB tables exists so we need to also ensure that performance is not impacted. There are many apps also which insert the data into […] |
Reporting Services |
SSRS REPORT - am getting the following when run report what can I do to fix this |
Integration Services |
parameterizing a sql server connection - I am parameterizing an sql server connection. There are the following fields: username password servername initialcatalog (db name) connection string. The first 4 fields are most of what makes up the connection string. In the connection, do i need to parameterize each of these values, or do i just create an expression that builds the […] |
SSIS Sort Alphanumeric? - Hello, I'm pretty new to SSIS, but I have an Excel source that I need to bring into an SQL Server table daily. There is a column I need to preserve which is an ID field with both numeric and alphanumeric characters. If I bring them in as-is, the alphanumeric values turn to NULL and […] |
Replication |
TSQL to determine status of subscription reinitialization - How do I determine the initialization status of a subscription with T-SQL -- i.e, how do I determine that initialization is still in progress applying scripts, and how can I determine that it is complete -- all scripts have been applied -- the equivalent of the "Delivered snapshot..." message in Distributor to Subscriber History in […] |
SQL Server 2022 - Development |
How to get number of unique months from table - Hi guys, I want some help with a code to count the number of unique months that appears in list (use created code below). For example: ZipCode 14171 got 5 hits, but the unique months are 3 and that's the expected output. Could someone please help with that? Thanks! CREATE TABLE #mytable […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Loading...
Loading...