Before you apply those little missing indexes, read this.
Popular Posts
-
SQLServerCentral » Latest topics Adding to Lists Comments posted to this topic are about the item [B] Adding to Lists [/B] more in...
-
SQLServerCentral » Latest topics SSMS is Free Comments posted to this topic are about the item [B] SSMS is Free [/B] more info... ...
-
SQLServerCentral » Latest topics The March of AI Comments posted to this topic are about the item [B] The March of AI [/B] more in...
SQLblog.com - The SQL Server blog spot on the web
Thursday, August 31, 2017
Why Missing Index Recommendations Aren’t Perfect
The Table Valued Constructor
https://www.prohealthguides.com/keranique-hair-growth-reviews/
date fillers - dates in two rows
I need a very efficient way to duplicate rows based on dates in rows. table structure is something as follows
CREATE TABLE #OutputResultSet  
Display records horizontally
I'm creating a report that has to display values horizontally, the values need to be distinct and then comma delimited (but not the last one) and just 7 columns per row
I can't do a select distinct in my query, otherwise the ceiling-function (
first wife adopted in 1949 When
Today's Random Word!
script to run dbcc indexdefrag for all databases in a server.
I'm trying to create a script to run dbcc indexdefrag not only for one database, but for all of my databases in my server.
I try the following:
[code language="sql"]
/*Perform a 'USE <dat
SSIS as an Execution Engine for Multiple Sql scripts
Curious Case of SUM Function
Appreciating New Perspectives
The Adequate DBA
script to run dbcc indexdefrag for all databases in a server.
I'm trying to create a script to run dbcc indexdefrag not only for one database, but for all of my databases in my server.
I try the following:
[code language="sql"]
/*Perform a 'USE <dat
Today's Random Word!
SSRS Default dates if statement
Is there a way I can make reports default to a date via some kind of iff statement? What I am trying to achieve is if the from date is before 31st march in the current year then default the date to 1st april in the previous year, and if t
Database Development Made Easy?
Query cancelled but completed is 0...
Hey,
Just got another issue. One of our developers ran a BI query directly on the server and cancelled it after 15 Hrs as our daily full backup ran abnormally longer. It was an update on table with 30 million rows and has a join on another table wi
copying a database from one server instance to another server instance
Update Statistics..
Hi Experts,
Trying to figure out if it might help in solving any performance issues by introducing an additional manual update job. To put it other way , how do I establish that the stats for a particular table have become stale ? We have auto
Anyway to find the row based on the page number
Working with a new client and on one of the DB's I am looking at has a consistency error on one of the tables.
I have dropped and rebuilt all of the indexes on the table and run a DBCC UPDATEUSAGE as the page counts where off for that ta
Installing SQL Server Agent on SUSE Linux
Manvendra Singh explains how to install SQL Server Agent on SUSE Linux server, so that you can create SQL Server Jobs to schedule repetitive work.
How to fix SQL Server disk I/O bottlenecks (without a hammer) In this new article, Simple-Talk editor Tony Davis explains step-by-step how to find and fix the root causes of disk I/O bottlenecks, including gathering data, avoiding knee-jerk fixes, and how monitoring tools can help. Read now. |
Wednesday, August 30, 2017
What does LockTime out event , text data is interpreting ?
On review the traces, I see multiple lock:Timeout, with text data as 6:2161, 4:1944 with some binarydata :0X710800000600000000000000020006
I have searched a lot on Internet but not getting the clue of what useful information I can derive
http://www.healthyapplechat.com/nouvelle-beaute-serum/
SSIS as an Execution Engine for Multiple Sql scripts
Today's Random Word!
List all logins, databases, role mapping
Returning Measure from Dim Date.
I have the 2 tables, one containing the Fact transaction while other is the date Dimension.
Am able to build the the following DAX columns in the Date Dimension
1. [code language
Can Uber, Lyft, and Waze Save Lives in Natural Disasters?
Today's Random Word!
Determining causes for performance difference in queries
We have an integration query running at 5am - simple view on 3 tables (2 tables have 4-6m rows) - on some days the client extracts data in 4 minutes and in some days it can be 30-40 minutes.
The base tables being queried are re-built eve
Determine Monday of next month and Monday of next week
I am trying to determine the first Mondayof the next Month when the first Monday of this month has passed. Also the samefor a Mond
Finding Consecutive Values For a Record
Time increments
I want to have a calculated field "TimeIncrements' that will increment 20 minutes starting at 8:00 and ending at 5:00 using sort order FieldSort1 ,FieldSort2 and FieldSort3
security admin/db_security admin role permission issue
Hi Team,
I have a user who has securityadmin server role and db_securityadmin permission on the databases as well.
However, when this user trying creating new user and map to user database, getting the below error. Any idea what
Database Development Made Easy?
Create a database from backup when the backup transaction log is damage.
I would like to know if it possible to restore a dump file to create a database even if the backup transaction log is damage.
Can the transaction log from the backup be skipped and a new transaction log be created once the
Solved - Can I join these tables with a query to obtain the final result?
I'm wrapping my head around a problem that I'm not being able to solve. Perhaps one of you might know what I'm failing to understand.
I have 3 tables:
A Logical Consistency-Based I/O Error
Here's my problem:
I cannot connect tp SQL Server. Getting this error message:
Sql Server Detected A Logical Consistency-Based I/O Error: Incorrect Checksum. (Microsoft SQL Server, Error:824)
Any thoughts please?
Thanks
Replication alternatives for SQL Server 2016 Web Edition
Performance tuning, alternative to cursors for my situation?
I'm trying to come up with something that is better performance-wise with a stored procedure I've built. I'm not going to go into too much detail but here's a summary:
I've got a Client_merge table containing two columns: Ma
Sessions and preconference at Microsoft Ignite and PASS Summit
I recently published a new blog post on SQLBI.
You can read it at this link: http://www.sqlbi.com/blog/marco/2017/08/30/sessions-and-preconference-at-microsoft-ignite-and-pass-summit/
Are the posted questions getting worse?
Sql Cannot establish new connection
)
Server is
Case and replace
I have got a number of records that begin with 044, I need to replace that with 0. I am using this replace(cli,'044','0'), however some records are 044123044 and so it replaces the end of the record with 0 also. How can I get it to just
Dynamically read images from share path and display in report
Will it be possible to display the images in SSRS from FTP path ?
Two table invoice & image_info
-- table invoice
Invoice number and other info
123,.......
124,.......
--table image_info
Invoi
Join with Same table
I have below scenario
There are Two tables:
[code language="sql"]
CREATE TABLE DBO.TBLORDERTYPE
(ID INT IDENTITY(1,1),
TYPE_DESC VARCHAR(20))
CREATE TABLE
Tuesday, August 29, 2017
How to Find Out Which Database Object Got Deleted
Greg Larsen shows you how to use the Transaction ID value to identify the object_id for a deleted table.
The Azure Data Lake Catalog
Houston, Hurricane Harvey, and Technology
Trying To filter Data using LAG() and LEAD() functions
Handling Transactions - Try/Catch - Error
I have posted a similar question few days, i thought i got it but after i made code changes things broke again , so here i am again :).
Below is pseudo code of what i am trying to do. I have few things to
Columns to rows and rows to column conversion without pivot/unpivot
Here A1/A2 belongs to say A and they are calculated as A1/A2 for each month.
How to fix SQL Server disk I/O bottlenecks (without a hammer) In this new article, Simple-Talk editor Tony Davis explains step-by-step how to find and fix the root causes of disk I/O bottlenecks, including gathering data, avoiding knee-jerk fixes, and how monitoring tools can help. Read now. |
Monday, August 28, 2017
SSAS Data Source Impersonation Information
Currently I am writing my Bachelor Thesis. As part of this, I have to set up a Data Warehouse. Due to I use SSIS to transfom Flat-files into a SQL Server 2017 database. In the next step I want to use them as data source for an
http://www.healthitcongress.com/prime-ageless-serum/
Incremental Package Deployment – A SSIS 2016 Feature
Today's Random Word!
Install SQL Server Named Instance using silent install PowerShell
Does anyone works on SQL Server Named install using PowerShell using .ini files?
If you have any runnable script please share.
Basically want to have the flexibility of both default and named install based on switch option it will work
Calculating averages
Install SQL Server Named Instance using silent install PowerShell
Does anyone works on SQL Server Named install using PowerShell using .ini files?
If you have any runnable script please share.
Basically want to have the flexibility of both default and named install based on switch option it will work
a bit or that have been clarified
Biztalk DBs in compatibility mode
Has anyone ever tried running BizTalk with the DBs in a lower compatibility mode?
We are currently on Biztalk 2010 with no plans to upgrade (we're trying to get rid of it) , but the latest version of SQL it runs on is
Importing data reports data truncation in both EM and SSIS from multiple data sources
I use a program called MP3tag to load and export to .CSV files the TAG data
Full text search with Contains function
AlwaysON 2014 Mulit Site Failover Cluster keep alerts and losing database connection
Current Configuration HA site Node A and Nod
Job reported: Unable to terminate process (reason: Access is denied)
Script or Ways to check if SSRS encryption key backed up
Can anybody help me finding out how to check if the SSRS encryption key have been backup up successfully.
Is there any system table which contains this information?
Thanks in advance,
Local #dax measures in #powerbi reports are not visible from #Excel
I just published a new blog post on SQLBI. You can read it at this link: http://www.sqlbi.com/blog/marco/2017/08/28/local-dax-measures-in-powerbi-reports-are-not-visible-from-excel/
Help me with the SQL syntax
What I need is a SQL syntax that will display the start and end date for each time span when the member was associated with a certain group.
So if you look in my code I have listed how the output should look like....
Help i
AVG Disk Transfer goes out of scale randomly
I bring to you this strange situation where a Disk D would go out of scale (AVG DISK SEC/TRANSFER) for a couple minutes, up to the point that the system freezes, until it finally stops several minutes after:
Column name assignment
Installed SS 2016, unable to find default instance or create one
Logshipping Shipping- Regular LOG BACKUP
In our environment we have configured the logshipping for all database, whether it is enough or we can schedule the logbackup hourly to avoid the log growth. Whether it can be done or not?? Is it required??
Regards
Narine
Error on Backup
Msg 33111, Level 16, State 3, Line 1
Cannot find server certificate with thumbprint XXXXXXXXXXX
Msg 3013, Level 16, State 1 Line 1
Backup Database is te
TDS Remoting: A Better Way to Create Linked Servers for ODBC Sources
solved - Row Level Security based on membership in AD Group or ServerRole
I'd like to implement row LevelSecurity.
Users are mapped to one (or more!!!) Groups (either AD Groups or ServerRoles, does not matter which to use)
Each Group should only see the SalesFacts for the corresponding Company.
How
SQLCMD Mode; Run all SQL files in a directory
Sunday, August 27, 2017
Tuesday evening amidst these many
Script or Ways to check if SSRS encryption key backed up
Can anybody help me finding out how to check if the SSRS encryption key have been backup up successfully.
Is there any system table which contains this information?
Thanks in advance,
Excel file (percent data type) to SQL table (vafrchar16) error
Tried to load excel file to sql table
dataflow task is failing because of data truncation error, in my source excel file it is % data type actual values are "2.35%"
in my sql table it is varchar(16) but it is failing with eerrror "Data trun
When you migrate a database to the same SQL build, but a new environment, post migration tasks?
I was curious as to peoples take on the following...
Lets say you have to move a database to a different network and domain, it could even be an Azure Virtual Machine in the cloud. Now normally, you'd migrate a database t
Does HIPAA require that test data not have any real data?
Yesterday at work we had a rude surprise sprung on us. Or perhaps I should say the DBA's did, but it will effect me as well. The
After drinking it, she confesses to
In January 2006, David Benioff had
Find out Who stopped SQL server service ?
Is there any way to find out who stopped SQL service ?
I went through SQL log and windows event log , but unable to trace who stopped service.
In Windows log I can see log for sql service terminating but in user field it
the whole - or even half
PLE
Does HIPAA require that test data not have any real data?
Yesterday at work we had a rude surprise sprung on us. Or perhaps I should say the DBA's did, but it will effect me as well. The
Left outer join make duplicate column name
All 10 tables has the same column [FileID].
How to make final table only list one [FileID] column?
SELECT DISTINCT
*
FROM #1 A01
LEFT O
high writelog wait on OLTP system and fast SSD storage, log flush is slow
new servers hardware hp proliant 580G8 , 4 socket intel xeon E7 processor, total 60 cores, 640GB ram, 8 intel SSD S3700 Raid 0, local
Lookup values similar to VLookUp in Excel
I am struggling to write a procedure which looks up a value in a lookup table.
See desired results below.
Any suggestions?
Cheers,
Julian
[code language="sql"]
LOOKUP TABLE
PLE
Installed SS 2016, unable to find default instance or create one
Trying to create function to create folders (and sub folders)
Saturday, August 26, 2017
How to do this in one sql statement without CTE ?
[code language="sql"]
with Alarmreport (ID,SiteName,DEVICENAME)
Does HIPAA require that test data not have any real data?
Yesterday at work we had a rude surprise sprung on us. Or perhaps I should say the DBA's did, but it will effect me as well. The
Columns to rows and rows to column conversion without pivot/unpivot
Here A1/A2 belongs to say A and they are calculated as A1/A2 for each month.