Loading...
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Cloud Diagrams | |
Can I create database diagrams in an Azure SQL Database or an Azure SQL Managed Instance? | |
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) |
SQL Server 2022 Restore and DBCompat I have a new SQL Server 2022 instance. What is the earliest version of a SQL Server backup from which I can restore and what is the lowest db compat level? Answer: Earliest backup is SQL Server 2005 and db compat level 100 Explanation: The earliest backup you can restore from on SQL Server 2022 is SQL Server 2005. The lowest db compatibility level, however, is 100. This is the SQL Server 2008 level. Ref: Copy Database With Backup and Restore - https://learn.microsoft.com/en-us/sql/relational-databases/databases/copy-databases-with-backup-and-restore?view=sql-server-ver16 Alter database compatibilit level - https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-compatibility-level?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 |
SQL distribution agent issues in Production - Hi all, We have publisher, distributor & 2 separate subscribers running on different servers. The same publication is in sync with one server but error for second subscriber. Having issues with distribution to subscriber. The distribution agent is not running. It’s not providing any error messages. Changed the distribution agent priories to skip errors but […] |
SQL Server 2017 - Development |
Hexa 2 decimal 20 digits - Hi, Need to convert a hexadecimal to decimal/numeric with 20 digits, but due to bigint limitation i get a negative value that doesn't correspond to the exact value, is there any way to overcome this limitation? select CAST(CONVERT(VARBINARY, 'D002336AE90E2D93', 2) AS bigint) Result: -3458145029597549165 The convertion should give the value 14988599044112002451. Thanks in advance. |
SQL Server 2016 - Administration |
system_versioning = on/off permissions - All, I would like to give a user permission to set system_versioning on or off on a table. I know that one way to do this is to give them control permission on the table. However I think that also gives them the ability to grant permissions and I don't think I can set a […] |
SQL Server 2019 - Administration |
SQL Server Mirroring with TDE - I am trying to mirror a TDE Encrypted Database. (SQL 2019). When I try to start mirroring with the GUI it says "Database not configured for mirroring". Same if I try to use ALTER SET PARTNER code. I created a TestDB not encrypted and the mirror starts fine using the same steps. (restore with norecovery […] |
After removing db from AG the secondary goes into Not Syncronizing - SQL Server 2019: So I have some databases that are no longer needed that were in an Availability group. I removed them from the AG and the database goes into Not Syncronizing instead of restoring. It was successfully removed from the primary and two of the secondaries but the third secondary it went into Not […] |
SQL Server 2019 Standard Edition - Cannot Create Distributed Availability Group - According to Microsoft from KB5016394 - Cumulative Update 17 for SQL Server 2019, Distributed Availability Groups can be enabled on SQL Server Standard Edition. I'm trying to set up the distributed availability group and unfortunately I always get the error message "Msg 19513, Cannot create a distributed availability replica for availability group 'AGDIST2'. Distributed availability […] |
Automation of t-sql executions requests. - We get a bunch of tasks/requests to run t-sql scripts to update views or stored procs or bad data. Does anyone know of a server product that can automate the execution of these t-sql and do full logging and error reporting of execution and email the requesting user of the error? Basically a server application […] |
AG has disappeared in SSMS - I had a WSFC issue, resolved I think. I wasn't here and various tries have been made to resolve leaving things in a messy state. Now my AG only exists on 1 server. Not on the the other. Node 1 = AG in resolving state. dbs = not synchronising. Not available. Node 2 = AG […] |
SQL Server 2019 - Development |
SSIS Error - Hi everyone I am getting an SSIS error. I want to import a CSV into SS table. I am using SSIS for this. I am using the Flat File Source -> OLE DB Destination. I am getting below error. Any ideas on how I can fix this? TITLE: Package Validation Error ------------------------------ Package Validation Error […] |
SQL Azure - Development |
Can I connect Azure Synpase to an on-prem data source via Power BI Gateway - Hello, I heard you can connect from Azure Synapse to on-prem data sources by connecting through a PowerBI Gateway, however I have not found any documentation on this. I'm experimenting with a variety of methods to get data from On-prem sources to Synapse and wanted to check how this performed compared to other methods. Can […] |
Reporting Services |
Cannot create a connection to data source (rsErrorOpeningConnection) - We have two servers with SSRS and SSAS. Both are running 2008R2. On SSRS server there are quite a few data sources using SSAS databases. All reports based on these data sources are working when I connect to Report Manager on SSRS server but when I try to open them on any workstation I am […] |
How to prevent a series of symbols from splitting across lines - I have some text like this: "word word word 123(56) word word" The "123(56)" happens to be at the end of the line and is getting broken up. It is being displayed like this: "word word word 123 (56) word word" But I want it like this: "word word word 123(56) word word" Note that […] |
General |
Triggers In Sql - I'm just getting started with SQL Server triggers and I'm having trouble with this problem: CREATE TRIGGER software_on_install_fill_in ON software FOR INSERT, UPDATE AS --declare the names and types of variables you will use DECLARE @software_pack char(4), @software_tagnum char(5), @software_datetime datetime, @software_softcost numeric(10,2) BEGIN --set the variables to values SET @software_pack = (SELECT software.PACK FROM […] |
Suggestions |
Sort Order on Latest Topics Messed Up? - The Sort Order for Latest Topics seems to have become randomized. One would expect posts to be sorted in descending order by last post date. |
SQL Server 2022 - Development |
Stop deployment of SQL DACPAC if there is DROP statements - Hi all, We have a SQL project to be deployed to an Azure SQL server. We are looking for s specific scenario where we can stop the ADO pipeline if we have DROP/ALTER statements in deployment scripts or DACPAC.? Basically I am looking for a way to validate the DACPAC before deploying to production for […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Loading...
Loading...