Laden...
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
The Table Backup | |
I run this code in SQL Server 2022. What happens? BACKUP TABLE beercount TO DISK = 'beercount.bak' | |
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) |
Counting Bits IV What do these two selects return? SELECT BIT_COUNT (CAST (-1 as smallint)) , BIT_COUNT (CAST (-1 as bigint))Answer: 16, 64 Explanation: The negatives for -1 contain all 1s for the size of the datatype. In this case, a small int has 16 bits and a bigint has 64. Ref: BIT_COUNT() - https://learn.microsoft.com/en-us/sql/t-sql/functions/bit-count-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 2016 - Administration |
Migrating MDS model individually using MDS UI - Hi All, Is there a way i can create package for an individual model from MDS and then import to another sql server? I tried using MDSModelDeploy command, however it failed as below without much details Creating a package for model My_Model MDSModelDeploy operation failed. Elapsed time: 00:00:00.9550522 Error: A database error has […] |
SQL Server 2016 - Development and T-SQL |
cte using POWER and Numbers table causes arithmetic overflow - could someone explain why my cte using a numbers table causes an overflow ? my "numbers" table is exactly that - only a single column of numbers, but there are 4096 rows, 4096 int numbers, and I can only think using a CTE like i have here causes all the rows to be retrieved... declare […] |
SQL Server 2019 - Administration |
Collation related issues - I have read that the collation at the instance level cannot be changed. I am guessing that statement is correct. I am thinking about uninstalling the instance and reinstalling it with the correct Collation but I thought I'd ask the experts 1st. This is the error I am seeing during our test deployment before we […] |
SQL Server 2019 - Development |
Search all databases on one server instance to find a specific view - When I log into my instance of SQL Server, there are many databases. I'm trying to find a specific view, but I don't know which database it is in. I have used Select * FROM INFORMATION_SCHEMA.VIEWS but that is when I know the database name. We have more than 20 databases in my instance. Is […] |
ssrs body looks right , report doesnt seem able to resize - Hi, i have been looking on the web for an answer but am coming up short. Im stumped Im using an image i broke out from a word doc after saving it as html. Im using it as a background for my new report. The report will actually be a letter to certain customers whose […] |
how do you explain the cardinal sin of warehousing to the chiefs? - hi we have an army implementing a mfg erp migration to netsuite. When they were in the sandbox, their customer, ship to, bill to and product codes were "external" columns. One or two might have been substrings of external columns but that was fine with me. When they went to their more qa like environment […] |
SQL Azure - Development |
getting started paas SSAS - hi our on prem STD implementation of SSAS currently occupies about 3.6 gig of space (projected to double in the next year or two) in the larger sales tabular model when/after processed and only a fraction of that in a smaller db that probably never should have been a cube. I think it was jeff […] |
SQL Azure - Administration |
Azure SQL database import permissions - What the required permissions are for "Database import" on an Azure SQL database Trying to import a database or copy it from another Azure sql With database import, before you get to the selection of subscription ... Extension: SqlAzureExtension Content: DatabaseImportBlade Resourceid /subscriptions/1ec..... Error: 403 |
Analysis Services |
The attribute key cannot be found when processing - Hi , Im Facing the Below Issue in Ananlytics. We have a Inventory Partition which is connected to WareHouse Dimension. Error Message: Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'T2_PieceInventory', Column: 'StorageID', Value: 'ERETURNS'; Table: 'T2_PieceInventory', Column: 'WarehouseLocation', Value: '3PL'. The attribute is 'Storage Location'. Errors in […] |
Integration Services |
Call Snowflake Stored Procedure using SSIS Execute SQL Task - Hi I am getting the below error when trying to call a Snowflake stored procedure in SSIS 2017 using Execute SQL Task. Any ideas on how to resolve it. I have confirmed the procedure works when calling from a Snowflake Worksheet. Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "call procedure_name." […] |
Resumes and Job Hunters |
Job requires X years of SQL... How do you respond? - I can't even tell you how many jobs I've seen that require "X years of SQL experience". How do you know when you're near what that would be? For me, that's a nonsense metric. In theory, at one job, I did 8 months of SQL stuff, when in reality, I did the same things over […] |
SQL Server 2022 - Administration |
Database restoration slowed down abnormally. - I'm running some restoration activity as part of a rehearsal to prepare for an actual SQL server upgrade from 2008 to 2022. We're planning to restore the backups taken on 2008 R2 database to SQL 2022. Our backups are stored in a storage shared between the old & new servers. We have completed this activity […] |
Entra authentication Express version - I have a paleontological database, currently in SQL Server 2016, active since 2008 R2. People use it via an Access app and ODBC connection to the server. Our organization started using Active Directory right about the time I first created this system, so I enthusiastically embraced the concept of domain groups. Besides the basic departments, […] |
SQL Server 2022 - Development |
Inserting data into a column that is using Always Encrypted - Problem: I am trying to insert a a value into a column that has been encrypted using 'deterministic' encryption via a stored procedure. The stored Proc code is ALTER PROCEDURE [dbo].[InsertData] @ID INT, @Col1 nvarchar(20), @Col2 VARCHAR (8), @ExpiryDate DATE AS BEGIN SET NOCOUNT ON; DECLARE @PModel AS NVARCHAR (5), @FID AS NVARCHAR (4) ; […] |
best tool for documenting your databases (more design decisions etc) - Any suggestions for a good tool for documenting a database and all the important objects in it? I'm trying to use Azure Data Tools, but not a huge fan. Maybe that's my best option, though? |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Laden...
Laden...
© 2025