Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Assignment Help - I was wondering if anyone would be kind enough to help me with a couple of queries in my assignment that I have not been able to solve. Consider the following schema for a simple social network. User(uid, first_name, last_name,home_city, bio) Friend(uid_1, uid_2) Message(uid, text, from_city) c)Find the uids of users who are friends with […] |
SQL Server 2017 - Development |
Inserting an incremental range of decimal numbers into a table - Hi can anyone help me with some SQL code to insert some decimal numbers into a table please? I have a table with an ID field, a lower field, an upper field and a flat rate. What I'm trying to do is a script to insert into the lower field values 0.00, 1.01, 2.01,3.01,4.01,5.01......up to […] |
Administration - SQL Server 2014 |
Nutanix - 'misaligned log IOs which required falling back to synchronous IO’ - Hi I have restored a SQL database onto a nutanix VM, the disks are formatted to 64k. When restoring or running I get error Error: ‘misaligned log IOs which required falling back to synchronous IO’ The database was restored off an old Dell physical 710 server that had disks set to bytes per sector &physical […] |
Query - Hi I have query select T0.DocType,T0.Debit , T1.Credit , T1.account from tbl1 where Mdate <= @frDate. In this i want to add condition if @frdate Month = 3 and Date = 31 then documents of Type say TC should not be considered Thanks |
Development - SQL Server 2014 |
Secured connection to AD with linked server (LDAPS) - Hi, Our system team warn us they detected unsecured connections when one of our linked server try to connet to the AD. We managed to find the concerned request : SELECT * FROM OPENROWSET('ADSDSOObject', 'adsdatasource';'LDAP_LOGIN';'Password', ' SELECT SAMAccountName FROM ''LDAP://ServerName'' WHERE SAMAccountName = ''NameTest'' and objectClass = ''user'' ') After some research, we should use […] |
Index fill factor - Hi Experts , We have around 3000 indexes in our database . We have introduced a index maintenance plan to rebuild the indexes . Now while rebuilding the indexes we have option to specify the FillFactor . My question is that , Is there a way to identify ideal FillFactor for all the 3000 indexes […] |
SQL 2012 - General |
2012 SQL Agent: Reloading agent settings - My SQL Agent 2012 log file is being filled with messages that say "Reloading agent settings". What does this mean and how do I stop it? Some jobs did not run last night and I don't know if this is just a coincidence or is a cause. |
SQL Server 2019 - Administration |
How do I reattach my databases? - Yesterday I went through the process of replacing an old, failing hard drive, out of my Windows 10 Pro machine. I replaced it with an SSD. It gives my old desktop another couple years of use, I hope. I had SQL Server Developer Edition on a second hard drive. Naturally the .MDF and .LDF […] |
SQL Server 2019 - Development |
Processing Build Item Orders -- do I need a cursor? - say I'm working on a database like AdventureWorks2017 - the standard SalesOrderHeader, SalesOrderDetail (ProductID, QtyOrdered). Then Parts and PartInventory (PartID, LocationID, QtyOnHand)... and I want to know if I have all the "pieces" to build all the items in a SalesOrder. Writing a query to get the quantity of each Part that's required is trivial. […] |
DB Design/Normalization Question - Hello, I've read the posts on this site and elsewhere about normalization -- I have a scenario in a db I'm currently working on where I'd like to get some advice. I am using an Azure SQL Back End/MS Access Front End. About 35 end users. The primary function of the database is to keep […] |
Get dates between previous month date and current month date - BI have a requirement to write a query to get all the records between 21st of previous month to 20th of next month. So for eg: if the current date is 18-May, I should get records from 21- Apr to 20-May. This will go on till 20th May. Now from 21st May to 20-June, I […] |
Week Ending Thursday, can some one tweek my code? - What I have missed from this code? I'm trying to show the DateTimeRaised field as a week ending Sunday and week ending Thursday. The FkIssueGroupID isn't unique but each row should have the same date. The MAX is being used to bring back a single row. Whilst the week ending value for Thursday is correct […] |
SSRS 2016 |
Sorting by is not giving the expected results - Hello, Im new to SSRS and I was trying to order by SUM(linetotal) in my chart but its not working as expected, even though the query looks fine when I execute it in SQL. im using the advantureworks database and below what I have so far and this is the results that im getting, the […] |
COVID-19 Pandemic |
Daily Coping 1 Jun 2020 - Today's tip is to tell someone about an event in your life that was really meaningful. http://voiceofthedba.com/2020/06/01/daily-coping-1-jun-2020/ |
Daily Coping 29 May 2020 - Today’s tip is today link your decisions and choices to your purpose in life. Daily Coping 29 May 2020 |