Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Development |
How to avoid using operator when there are different values on two tables ? - I work on sql server 2017 I need to get different of feature value based on partid and feature name I search for alternative way to compare different values based on partid and feature name without using <> not equal operator because i face slow when using <> not equal so what i do so […] |
Error: excel automation Open File does not work in SQL 2017 - This code works on other 2005 SQL Sever but my 2017 SQL Server gives error. /* Excel Automation*/ declare @xlApp integer, @rs integer Declare @FileName varchar(500) declare @xlWorkbooks integer declare @xlWorkBook integer declare @xlWorkSHEET integer declare @xlCell integer declare @xlLastRow INTEGER DECLARE @sql VARCHAR(4000) execute @rs = dbo.sp_OACreate 'Excel.Application', @xlApp OUTPUT select @rs, @xlapp execute […] |
SQL Server 2016 - Administration |
How to confirm if the replication is using Push/Pull subscription? - Hello, On an existing configured replication setup, how to confirm if it's using a Push or Pull subscription? Basically working on setting up a similar replication in a new server, but am unable to find the details of the existing legacy server's configuration! |
SQL Server 2016 - Development and T-SQL |
Index FillFactor - Is there any measurement(query) that can be used to check for correct value used. I have a table that has about 9 million records with 2 additional indexes other table the PK. One of the additional indexes has a fill factor of 0 actualfillfactor of 98 currentfragmentation of 2.0 fragment_count 2600 and avgfrag of 46. […] |
Administration - SQL Server 2014 |
SQL database practices - Hello friends, I am a casual learner and right now exploring the DBA field (I am a database developer). Now I recently had a discussion with my group of friends and we discussed about a problem where, in a dB server, there are some 8-10 databases for multiple projects. One such database is having multiple […] |
SQL 2012 - General |
SQL server question - Hi, I am just starting learning SQL.. I need help: I want to create a check constraint for a column in Table1 so that it is smaller than another column value in another table? I tried join but it is not working! |
Approach to recreate view when new column is added to a table - In my application, we want to give users the option to create new fields in a table in addition to application's out-of-box functionality. Data for the Out-of-box functionality is accessed through SQL views from a C# application. If new fields are to be a part of this accessed data then I will have to recreate […] |
Show total for every unique Id - Hello Everyone, In my select query with aggregate function I want to show total amount for every location. I wrote the query like below SELECT TLD.location_id, TP.Location, ISNULL(SUM(CAST(TLD.land_rate AS DECIMAL)),0) AS TotalRate --SUM(CAST(TLD.land_area AS DECIMAL)) As TotalArea FROM tblLandDetails TLD LEFT JOIN tbl_Projects TP ON TP.Sno = TLD.location_id WHERE TP.STATUS = 1 AND TLD.lease_from >= […] |
SQL Server 2019 - Administration |
How can I generate a key for this column which is part of a database model? - I am normalizing a larger table. Here is a screenshot showing part of the relationship of the normalized table: I'm using MS SQL Server and SSMS. The plan was to create the empty tables then insert values from the denormalized table. I started doing so until I realised that I hadn't generated 'Type codes' in […] |
Are the data types I've chosen the best choices? - A newbie here. I have these columns, here are the samples and the data types I've chosen: I'd just like to ask if the choices I've made for the data types are the best choices?. Thank you in advance |
Finding when a SQL Failover Cluster Instance failed over.... - I have a couple SQL 2019 FCI. Is there a way to find when a SQL Failover Cluster Instance failed over or if someone moved it from one node to another? I'd like to get the date, time and who did the move. Or is this kind of info only in the WSFC data? |
SQL DB Restore showing 0 % - Hi, Initiated 2.4 TB restoration freshly in the sql instance using GUI.. From 2 hours it is showing as 0 %. In SQL_Data files drive occupied with 2.4 tb. But when i open the drive inside everything empty. I feel the data allocation is taking time. But I am confused whether restoration is in progress […] |
SQL Server 2019 - Development |
Parallel Execution of SQL in ADO.Net on C# - SQL Parameter is already contained - Hi there Im not sure if this should be asked on a C# forum, but im taking a shot here. We have a C# Application which using ADO.Net , executes SQL Stored procedures. In fact the application calles SQL stored procedures in Parallel. The issue we have is trying to achieve Parallel execution in c# […] |
SSMS Connect to Server name with hyphens? - This is a question about the Connect to Server dialog in SSMS, the one that you use to connect to a server. I never noticed this before nor have I seen anyone talk about this, and it is kind of freaking me out. We have a server with hyphens in the name. When I enter […] |
Azure Data Factory |
Good books for Azure (Data Factory) / Best practices - I was a BI/DWH developer for over 15 years in typical data warehouse environments. I used ETL tools like Infomatica, Pentaho, SAS and some PHP/MySQL in my early days. Recently I switched Jobs and now I m heading more in the Data Engineering direction. Less business logic and more focus on acquiring data from lots […] |