|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Clearing Session Cache | |
What does DBCC FREESESSIONCACHE do? | |
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) |
Operator Precedence What is the proper order of precedence (high to low) for these operators? Answer: ~, *, ^. NOT Explanation: The order of these operators is:
Ref: Operator Precedence - https://docs.microsoft.com/en-us/sql/t-sql/language-elements/operator-precedence-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 |
SSAS Views - Hi, When I connected to SSAS in Management studio, I can able to see 2 databases there. The each database has one cube which is same name as the database name. When I selected datasource connection string for one cube it is pointing to the local connection. When I connect to the SQL Database Engine […] |
SQL Server 2017 - Development |
Turning Col into Multiple Rows - Hello, I am interested in turning one column into multiple rows depending on the value. I tried a pivot but seem to be doing something wrong. Here is some sample code with desired results following: -- DROP TABLE #t CREATE TABLE #t (ID int IDENTITY(1,1), CoID int, CoName varchar(100), Class varchar(100)) INSERT INTO #t […] |
Select * (-----) - Hi, I have a problem like below one. Give, for each train station, the number of distinct (other) train stations that can be reached directly (so without using multiple trips) within one hour of travelling (i.e. the time difference between departure in one station and arrival in the other is 60 minutes or less) and […] |
SQL Server 2016 - Administration |
TDE master key password change - Hello I have a requirement to change the TDE master key password in one of the environments. Do I need to redo the whole process (encrypt the dbs with the new master key password) again after I regenerate the master key password? Kindly advice |
SQL Server 2016 - Development and T-SQL |
calculation for year month and quarter with date dimension table - i want to know how i can use the date dimension table. I am trying to sum all my sales for month, quarter and Year with joining a date dimension table but not sure how to go about that can you assist or direct me to a good resource? I have a query but i […] |
Query help - Here is the DDL of the table: I need single row per invoicenumber and line and rest of the amount and comments should to go to additional columns in the same row as shown (in the spreadsheet). What would be the best way to accomplish this? DROP TABLE IF EXISTS #temp1 CREATE TABLE #temp1 (Program […] |
Administration - SQL Server 2014 |
Get ID from Analysis Server cube. - I am fixing an issue with our automated Analysis Server backups. We use SELECT * FROM $SYSTEM.DBSCHEMA_CATALOGS to get the catalog name, and then plug that into our t-sql to do a backup. The script puts the catalog name into the DatabaseID XML for the backup. The issue is, for some of the cubes, the […] |
Development - SQL Server 2014 |
Cancel query and transactions - I open a new query window in SSMS and execute: EXEC stored procedure. The stored procedure contains BEGIN TRAN and COMMIT / ROLLBACK TRAN. I hit the cancel button and get told it has been done, almost instantaneously. When I then close the query window, I get the message: "There are uncommitted transactions. Do you […] |
SQL Server 2019 - Administration |
Backup probleme with SQl Server Writer - folder offline - Hi, I use a tool to backup mysq MSSQL database with Writer SQL SERVER VSS. A database for a database not work because it's excluded from VSS Writer... Here the log of SQL Server Writer : [08/17/2022 16:21:58, TID 17d8] Skipping database SYNCHRONIZOR on instance SRV-SQLSERVER because file C:\NTNX\ERA_DATABASES\SYNCHRONIZOR\DATA1\data\SYNCHRONIZOR is offline. [08/17/2022 16:21:58, TID 17d8] […] |
Database and logs partitions filling like crazy - Hello, I've got some strange behaviour lately with my sql server. Actualy there are 2 servers with all the DBs in an AOAG. Both partitions (one for DBs and one for LOGs) are showing up as almost filled, but when I check the actual files on the disk the size of the files is quite […] |
SQL Server 2019 - Development |
Select statement results - Hi, I am trying to get result when only C drive is less than 10% and other drives less than 20% but exclude server vc5 for e,g,h,i drives - "SERVER='VC5' and drive not in ('e','g','h','i')". drop table tbl_test go create table tbl_test (Server varchar(200),DRIVE varchar(200),FREE_SPACE_IN_MB int, used_SPACE_IN_MBint, Total_SPACE_IN_MBint, Precentage_free int ) insert into tbl_test […] |
Cannot set a value when initializing a variable - The strangest thing happened. I want to make a change in a stored procedure that I have used for ages. All of a sudden I get errors when trying to alter the sp. It turns out that the culprit is the following line: DECLARE @PermissiesViaGroep bit = 0 When I change it to the code […] |
Reporting Services |
Image within a Rectangle - I am being asked to overlay text objects to a government form for a client. Unfortunately, I am having massive issues with the image not re-sizing to fit the standard 8x11 paper size, it's way too big. Has anyone had such luck with resizing an image down or has code to help with this? Any […] |
General |
Introduction about me - Hello all, I'm a bachelor's Student. Now, I've decided to put my articles on my own website. At my university, I'm already working on php. But I think I'll use WordPress to make my site because it's easy. So, I got to work on it and set up SQL server, but I ran into a […] |
Integration Services |
Error when running SSIS package after deploying - Hi everyone, So I have designed a SSIS package in which I am using Zappysys Excel Destination: https://zappysys.com/products/ssis-powerpack/ssis-excel-file-destination/ I am using this to transfer my SQL table data in to excel file. When I run this SSIS package from Visual Studio, it runs fine and give me the excel files I need. But when I am […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |