Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Development |
Taking a single 80 character piece of Text and converting to columns in a table. - Hi, I have a 80 character piece of text that I wish to convert to a table structure that represents that data. Is there a simple way to take those 80 characters and basically insert them into the table structure without doing multiple substring commands for the individual columns. Thanks in advance Andrew |
DDL triger to grant select permission for new table/view - Dears, Plz help with this topic- I need to grant permission for new table/views created in one schema when this are just created Thanks in advance, Hadrian |
Resultset in a format - I have the following tables: create table #EmployeeSystemsMaster(EmployeeSystemID int, EmployeeSystemName nvarchar(150)) insert into #EmployeeSystemsMaster select 1, 'Core Banking' union select 2, 'Treasury' union select 3, 'Retail Banking' union select 4, 'Corporate Banking' union select 5, 'Anti Money Laundering' union select 6, 'Trade Finance' select * From #EmployeeSystemsMaster create table #NationalityMaster(NationalityID int, NationalityName nvarchar(150)) insert into […] |
SQL Server 2016 - Administration |
How to make DBCC CheckDB faster ? - Hi All We are running DBCC CheckDB in our server during low activity time. However it takes 2 until 3 hours to complete and CPU usage is 95 - 100 % during that time I want to make the process faster and reduce CPU usage if possible FYI : CPU = 2 - Development Server […] |
SQL Server 2016 - Development and T-SQL |
Creation of clustered primary key only utilizes 1 CPU core - Hi all, I am once again facing an interesting issue with multi-threading in SQL Server 2016. But first of all, this is the setup: we are using the Enterprise Edition (SP2) on a 24 core single CPU socket server with 5 PCIe NVME SSDs (2 TB each). Filegroups are distributed on all 5 indpendent SSDs. […] |
Administration - SQL Server 2014 |
REPLICATION, Dropping Subscription Taking A Long Time - USE Published_DB; EXEC sp_dropsubscription @publication = N'Published_DB_Publication', @subscriber = N'all', @destination_db = N'Published_DB', @article = N'all'; I have a fairly large DB. It is replicating approx 7000 articles. When I run the script above, it's taking a long time (now 1 Hr+). Any ideas what I need to check here? Adding, I have all REPL […] |
SQL 2012 - General |
List of Dataabases from all the servers - Hi, We have 100+ servers and each servers contains few databases and i would like to get the all database list by each server/instance. Server1 DB1 DB2 DB3 Server2 DB1 DB2 DB3 DB4 |
SQL Server data masking - Can you able to mask data in sql server 2012? If yes, would it be easy to mask few tables or the complete database? |
Table self-join for derived columns - Hi, I have a requirement to derive additional columns and populate the values by doing a self-join. I have tried to use self-join and cross apply but not getting the desired results. I have attached the desired result format and also included the DDL and sample data. Could somebody please help in this regard. Thanks. […] |
SQL Server 2019 - Administration |
Question upgrading - Hi, I see the post of going from 2012 - 2019 but we were wondering if we should go to 2017 or 2019. Currently, we only have about 20 users and do not do anything with warehousing; of course, both could change down the road. Someone said that they found it to be much less […] |
SQL Server 2019 - Development |
CREATE LOGIN FROM Windows (AD account): Login failed for user - Hi, I have made with Server 2019 an VirtualBox test environment on my Workstation. I have : Active Directory Controller SQL Principal SQL Failover Web 01 Web 02 I develop an automate application that do this : Installation : Create Active Directory Windows Account Create Database on Principal with Failover Install Web Application on Web […] |
Constraint on multiple columns - Hi, I want to restrict users from adding duplicate rows. Is there a way to put one constraint on multiple columns, or use a trigger to do this, maybe BEFORE insert/ BEFORE update? Thanks S |
How to use next record's date as End date of current record? - I have a select statement which its result is something like this: I would like to have an end date column which is the next start date. I would appreciate it if someone could guide me. |
SMO/RMO/DMO |
SMO Certificate Export - FailedOperationException - Greetings, Given this Powershell SMO method call... $_cert.Export("$CertificateLocation\$_cert_name.cer", ` "$PrivateKeyLocation\$_cert_name.pvk", ` $_secret) where $_cert is a Microsoft.SqlServer.Management.Smo.Certificate object and the arguments are plain strings (not secure strings). When I execute the code it returns a FailedOperationError. I can't figure out why it is failing. I have tested all the paths in the script to ensure […] |
Analysis Services |
Sharepoint 2019 and power pivot - We are migrating from Sharepoint 2013 on-prem to Sharepoint 2019 on-prem. In SP2013 we had Excel power pivot files (connection to SSAS multidimensional cube). A user used to open the file in SP, used it, also could save modified file and everything worked ok. From Sharepoint Server 2019 it seems that support for Power Pivot […] |