latence in log shipping - Hello everyone I have a SQL instance configured in logshiping mode I receive alerts on latencies of log file restoration The secondary ProductionSQLA...
Generate a sequence number for corresponding numbers - I have a requirement , where i need to create a look up table to generate a Sequence number for each...
Retreving phone numbers based on phone type - i have a table where it has empid, phone type and phone number one employee has multiple phone numbers. is there...
Removing stored procedures to move to cloud - I got an interesting email today about cutting back on the reliance of the applications on databases and plans to...
Generate a unique number for a combination - How do you generate unique number based on a Loannumber , Date columns Example Declare @loannumber Int = 1234565 ,@date Date = '12-01-2017' Declare @test...
Schema related issue - I have a procedure inside a schema 'ABC'. inside this procedure in an if else block using left outer join...
Trying to Get Rid of Cursor for Creating Group Number - Here is the basic scenario, I have a table that can have site values 1-12, each site can have seq...
Db name inside the stored proc - All, I am trying to work on a stored proc that would accept DB as a parameter name and then work...
Unable to connect to DAC - We are running SQL Server 2014 Web Edition. The DAC has been enabled, remote connections are enabled, and the Browser...
Moving Database Objects - Hi Experts, We are moving objects of a particular schema to a new database. What all things need to check while...
Clustered Index created but SQL complains - Hi Guys, I'm very new in query optimizing. I have created a non clustered Index on tbl_A as below also note that...
help me with building the SQL statement - The following SQL works fine ( run it please and you will see the exact output I am looking for ) However...
DBCC Emptyfile - I have a question, I hope someone here can answer. I have searched multiple web sites, and can't get a...
Query - Performance between dates - Im running a query and it has numerous linked tables. I have entered a date parameter of one week (28/01/2018...
Updating null fields wehn changing field to not null. - Hi, we have a flat table in SQL server that has no PK field and no constraints. The table is...
Purge database - Hello I have just started a new job and my first task is to purge the database.This is a transaction...
database diagram - "add related table" greyed out - Hi there With SQL 2008 database diagram - when I right click on my table to add related tables, this option is...
Coalesce and simple pivot (or group by?) - hi, my SQL knowledge got a little bit rusty. Trying with Group By failed, so this is my question: CREATETABLE #tblTemp1(ID...
OPENQUERY error: An unexpected NULL value was returned - Hi, all! Over the past year, we've been migrating our reporting databases from 2000 to 2008R2. We've got many stored procedures...
Issue with using Ola Hallengren Backup script - Hi, I am using OH's excellent scripts, however I have found and issue when it comes to backing up to...