Fairly straightforward IF question - I do not do too much in the way of creating SQL code so please bear with this 20 year+...
Inner Joins - Hi Friends, I was wondering is there a Rule of Thumb when I am joining my tables as it relates...
restore/Attach not working as expected - To All, I have done many restores or attaches of db's and yet this particular one is not working as it...
SQL Server 2016 SP2 Issue with Analysis Services - All, please be aware that installing SQL Server 2016 SP2 may cause a problem with Analysis Services functions, most notably...
SQLOLEDB vs SQLNCLI11 - I am little confused. When i query sys.syservers i see provider name as 'SQLOLEDB' for some and 'SQLNCLI11' for some....
Regulary delete and rebuild of table influences perfomance? - Ahoi, Situation: i have a table with around 40 million rows and a clustered primary key set by IDENTITY(1,1). Theres regulary deletes and...
Lookups on remote database - SQL is not my primary language and I could use some insights into how to accomplish a task I need...
T-SQl, Help with the WHERE CLAUSE ( I want the entire records set as output or just the ones marked in 2 cols ) - My question is listed in the code. Declare @C CHAR(1); Select @C='1' IF OBJECT_ID('tempdb..#t') IS NOT NULL DROP TABLE #t; CREATE TABLE #t(...
Breaking up huge audit table (1.1B rows) into smaller tables - The AuditTable contains data from October, 2013 through current. We want to create: Audit2014Table Audit2015Table Audit2016Table Audit2017Table The field Transaction_time contains a date/time string YYYYMMDDHHMMSSSSS. We...
I need help getting last day of prior month in a view statement - so this is my code CONVERT
detect if previous record is higher or lower ? - In it's simplest form if I had a table that stored a persons name, date that the record was entered,...
Replication - Missing Data in Subscribers - I have a strange issue going on intermittently with one of our SQL servers. The setup we have is: 1. 1...
Playing a sound from an SSRS Report - I have been tasked with trying to get a dashboard style SSRS report to play a sound. We have a report...
How Do You Connect to a Central Management Server If Your Server is a Named Instance - I have the following code that worked on a default instance. Now I am trying to get it to work...
Object variables, ADO Recordsets, & decrypting column - Ihope someone can help me out. My C# skills are nill, so I need a lot ofinformation. A bit of background:...
Need simpler way to see a list of my posts and possible replies to them - Please excuse what might be an elementary question/suggestion but I am new to this forum. After I log in, there...
Cannot open tables in Database - Hello, I have SQL 2005 SP4 and cannot open the table on a specific database. When I execute: DBCC CHECKDB ('WSS_Content')...
Ordinal Dates - Hi all, can someone show me how I can get the ordinal number of a date? If I am on...
QuickBooks to SQL Server - Does anyone have any ideas of ways to communicate between SQL Server and Quickbooks? I have found a couple of...
The SQL Saturday Thread - As popular as SQL Saturday is, I'm surprised that nobody created a thread dedicated to SQL Saturday, so I created...