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, November 30, 2017
Indexes for Memory-Optimized Tables
Error Setting Up SSISDB
Parallel Stored Procedures using CLR - Performance
The SPs need not all be run sequentially, they can be broken out into secti
Not Useless Features
Force execution plan in a view
The view is some
SQLServerAgent could not be started (reason: Error creating a new session).
We Need DevOps for Performance
restore-sqldatabase dynamic relocate files
[code language="sql"]#Find the appropria
Calendar table to transaction table join performance
I encountered a performance issue that caught me by surprise. I'm joining two tables. One is calendar table with one row per day, and an indexed datetime type DateKey column. The other is a transaction table with a Transa
Trggier not working with insert
I have an insert command saved to a table in a database "after insert" the trigger take the insert command and execute it. when the trigger
Add Column to Staging table
The code below used to work fine.
It is part of a stored procedure which bulk inserts data from a csv file.
Suddenly, after editing, I keep on getting an error stating that RowNr does not exis
in the time to go to miss here
[url=https://cowboysvsredskins.ca/]Cowboys vs Redskins Live[/url]
[url=https://cowboysvsredskins.ca/]Cowboys vs Redskins L.i.v.e S.t.r.e.a.m[/url]
Stairway to DAX and Power BI - Level 12: Function / Iterator Function Pairs: The DAX CountA() and CountAX() Functions
Using CSS to control formatting in dbmail
The Difference Between Rollup and Cube
Find all triggers that contain FACTS in trigger name
We Need DevOps for Performance
Extended Properties
Executing Stored Procedure against a linked server
I know it is possible if the stored procedure is setup on Server B but I am wondering is it possible if the stored procedure only exi
SQL server 2008 R2 frequent transaction log full and my database is a mirrored one.
Frequently I am facing disk full issue as the transaction logs gets full frequently. (with in 5 days it becomes 260 GB for 1 database).
Does Your Work Attire Really Make a Difference?
insert if record does not exists or if exists and column is not null criteria
Certifying Schools
Automating Email Addresses
Wednesday, November 29, 2017
Free eBook: Fundamentals of SQL Server 2012 Replication
Fundamentals of SQL Server 2012 Replication provides a hands-on introduction to SQL Server replication. The book introduces you to the technologies that make up replication, and then walks you through setting up different replication scenarios. When you've finished reading, you should be able to implement your own multi-server replication setup while following the principle of least privilege.
The Difference Between Rollup and Cube
Certifying Schools
A User Database As A TempDB
Two questions:
Similar to the actual temp db, would I benefit b
Unzip in ForEach loop
I'm having problems parsing the correct expression for a Process Task
I'm attempting to use a ForEach loop to process a directory of zip files.
The aim is to extract the first zip file with 7zip, upload the contents into a db, pr
Question re: replication & initializing from backup
Sharepoint online excel file
1) I have an excel file that I have to read from and dump data into a sql server table (only the yellow highlighted portion) and get rid of the ones in blue.
How do I get only the information I am looking for ?
2) How to automati
Query Optimization Advice
Hi All,
So I'm faced with the need to optimize a pretty hefty query, as it'
Add Column to Staging table
The code below used to work fine.
It is part of a stored procedure which bulk inserts data from a csv file.
Suddenly, after editing, I keep on getting an error stating that RowNr does not exis
Logon Trigger suddenly caused spike in query time
Yesterday aft
CheckDB error after DB restore
I got a strange problem, I am moving DBs from old test server(SQL Server 2008 R2 SP2) to new test server (SQL Server 2016 SP1-CU5), whereas no DB errors, found when I am running DBCC CHECKDB(Mydb) WITH PHYSICAL_ONLY, but after backup and rest
Choosing the Birthday of a Customer by month?
cust_id INTEGER NOT NULL PRIMARY KEY
,cust_fname NVARCHAR(50) NOT NULL
,cust_lname NVARCHAR(50) NOT NULL
,cust_dob DATETIME NOT
SQL can't start . Please kindly help
I have a problem with my server , SQL can't start up.
when I check into error log :
2017-11-29 18:56:15.03 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user a
Executing Stored Procedure against a linked server
I know it is possible if the stored procedure is setup on Server B but I am wondering is it possible if the stored procedure only exi
SSIS Database with lots of space
Dear all,
I have a SSIS DB in my SQL Server. This database currently uses more than 10 GB of data and I do not understand why. ^$
I think that we are not keeping a lot of history in SSIS and have the minimum logging level. For example
PASS SQL Saturday #687 Slovenia 2017 Last Call
If you want to join the event and you are not registered yet, this is the time to register. We are nearly full, opening the wait list soon. You can find the link to the registration at the end of this post.
If you are already registered, one last appeal for you. If you already know that you will not be able to attend: please unregister and make room for those who would like to attend, but are on the waiting list. Use the Register Now button (direct link bellow), and if you are already registered, you should get an option to unregister.
DBAs and the ITIL Framework, Part II: Asset Management
See how the ITIL Framework's Asset Management standards make the DBA's job easier. Use the CMDB and DML to keep your data assets under tight control.
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. |
Tuesday, November 28, 2017
SSMS breakpoint won't add
http://www.espanasuplementos.es/votofel-force-espana/
DMO Word Scramble
Transaction Isolation Level when Querying a View
I was hoping to get some confirmation on specific details regarding how SQL Server deals with queries involving a view which targets a different database (on the same instance of the server), with respect to transaction isolation level.
I have
Query taking more time
Listings(Master Table)--------
TableID EntityID
30047 100
30047 101
30047 102
Webinar 2.6 - Fragmentation
Unzip in ForEach loop
I'm having problems parsing the correct expression for a Process Task
I'm attempting to use a ForEach loop to process a directory of zip files.
The aim is to extract the first zip file with 7zip, upload the contents into a db, pr
Fantasy Football 2017
Table Design
Dear Experts ,
Please share if there are any standard guidelines for designing the table objects , apart from Normalization , and Column domain values/ranges the data can accommodate max , the type of the column etc and yes the infrastructure  
The Most Wanted Upgrade
Subquery vs join
We have a new junior developer who insists on looking up descriptions using Subqueries rather than joins..
Simple Example below...
JOIN
SELECT a.AccountName, d.Amount, d.EntryDate, d.Tra
CheckDB error after DB restore
I got a strange problem, I am moving DBs from old test server(SQL Server 2008 R2 SP2) to new test server (SQL Server 2016 SP1-CU5), whereas no DB errors, found when I am running DBCC CHECKDB(Mydb) WITH PHYSICAL_ONLY, but after backup and rest
Fantasy Football 2017
Strange Month number value in table of Dates
All this is fine apart from o
How to create a dynamic project file connection
I am creating a SSIS project that will consist of a parent package with a number of child packages. The basic flow is this:
The parent package will use a for each loop to identify the name of t
Fantasy Football 2017
Inserting hascode from QlikView into Table
i have hashcode in QlikView in txt file like:
[quote]A'--$Q>F7+O/"ZC.T(3#U,;[/quote]
I am trying insert this into table:
[c
Slow query - client or server issue
We see nothing on the SQL Server
Convert Date to Julian Date
I have seen several examples where the conversion goes in reverse....or solutions that do not match the Navy's conversion site
Check for existense of database master key in "all" databases
I'm struggling with a little query here. I'm much more a DB admin than programmer, so I really got lots of stuff I do not know regarding building my own querys - sorry for that ;)
I got the appointment of checking several instances
The Nonsensical Count
Monday, November 27, 2017
The real origins of the Agile Manifesto
Many people think the Agile Manifesto was born in in February 2001, when 17 people met at the Snowbird ski resort in Utah. But there’s a problem, a big problem - in fact, one about the size of the USA’s first ever jet fighter. In this blog post, Matt Hilbert looks back to 20th century aircraft design, and finds some very familiar ideas.
Choosing the Birthday of a Customer by month?
cust_id INTEGER NOT NULL PRIMARY KEY
,cust_fname NVARCHAR(50) NOT NULL
,cust_lname NVARCHAR(50) NOT NULL
,cust_dob DATETIME NOT
The Nonsensical Count
We Need DevOps for Performance
Slow running stored procedure
I have stored procedure which takes too much time to execute.
I have posted estimated plane here,
https://www.brentozar.com/pastetheplan/?id=rk6Z6MKxf
How to search songs_words table for songs that contain a group of words?
Hello,
I have an SQL database of of songs with a table that consists of 8 columns of information on words of a song. each row represents a single word from the songs lyrics:
1. `son
Shrinking Transaction Log Files
My transaction log file grew extremely large and is taking up almost of the disk space. I am new to SQL and never have performed a shrink of the log file. Based on the image below can I just execute this withou
Convert Date to Julian Date
I have seen several examples where the conversion goes in reverse....or solutions that do not match the Navy's conversion site
Are the posted questions getting worse?
FT should never run as a domain account?
Is there any restriction like why the Full Text Search should need to run using "NT Service\MSSQLFDLauncher" and not preferred to run using SQL Service accounts?
Sincere Request: Those
Fantasy Football 2017
Start Fixing Your DB with Better Code
Current Quarter
I am using the below which does the following. Show the data for the current month unless today's date is the 1st, then show last months data, Is there a way to change this to do something similar but for the current and pre
Practice Until You Don't Get It Wrong
The Most Wanted Upgrade
Today's Random Word!
pass table param
[code language="sql"];WITH TestTbl AS
(
SELECT * FROM myTable
)
CREATE FUNCTION Ex( TestTbl TableType READONLY)
RETURNS VARCHA
Help with code to Grouping the text in multiple lines
I am a newcomer to the world of TSQL and was wondering if someone can help me with the following:
I have a simple code as below
[code language="sql"]
select *
from line
Sunday, November 26, 2017
SQL Clone Quick Tip: Offloading DBCC checks
If corruption creeps into a database it can and will derail the best-laid disaster recovery plans. To be certain that a database is corruption-free, you need to run regular DBCC CHECKDB checks on that database. Unfortunately this is a resource-intensive task, but SQL Clone can help.
The Most Wanted Upgrade
SQL Jobs output file
http://www.buysupplementcanada.ca/bioderm-rx-canada/
The Most Wanted Upgrade
monitor data changes
Table Design
Dear Experts ,
Please share if there are any standard guidelines for designing the table objects , apart from Normalization , and Column domain values/ranges the data can accommodate max , the type of the column etc and yes the infrastructure  
Speed up query execution. Can we add an index or rewrite the query
Read TXT File - problem with importing from flat file source ssis
I have txt file where i have 14 million rows from Qlikview and SAP exported.
Now i want to import in into SQL Server Database.
How to trace [256] Invalid query error
A developer is seeing an error like the following, and can't seem to pinpoint the errors in order to stop them.
I am having trouble creating a trace that captures either the error culprit itself, the error message being sen
Advice for starting up a new database consulting business?
I'm in the process of putting together a business plan for a new database consulting business I want to start up with a friend of mine. Our goal is to help companies solve database-related problems. I've a fairly good amount of experience
Help with code to Grouping the text in multiple lines
I am a newcomer to the world of TSQL and was wondering if someone can help me with the following:
I have a simple code as below
[code language="sql"]
select *
from line
Practice Until You Don't Get It Wrong
create a hierarchy table to remove records in one table which don't exist in another table
Unusually Expensive Deletes
I have a scenario on a few of our servers that I can't quite explain that I'm hoping someone can help me with. We have a Dynamics CRM system that we routinely need to delete single records out of. The problem is, deleting a single record
Search with Date Range
I have
[code language="sql"]create table #test_table ([Date] datetime, [KW] nvarchar(255),[PP] float, [PM] nvarchar(255), [CP] float,[Δ T] float, URL nvarchar(255) )
INSERT IN
Saturday, November 25, 2017
Start Fixing Your DB with Better Code
VM Drive formatting
Is formatting a data drive to 64K cluster size still relevant in the virtual world?
Does it make any difference to performance?
I'm using sql 2016 on win 2012r2.
I have full rights on my VMWare SQL Guests, but currently no visibi
Speed up query execution. Can we add an index or rewrite the query
Availability Groups with Only Primary Replica
We have availability groups in production. However on dev we have just single instance and single copies of the DB's. They can be rebuilt from scripts and backups and HA is not necessary in that environment.
However they ar
Unusually Expensive Deletes
I have a scenario on a few of our servers that I can't quite explain that I'm hoping someone can help me with. We have a Dynamics CRM system that we routinely need to delete single records out of. The problem is, deleting a single record
Are the posted questions getting worse?
Start Fixing Your DB with Better Code
MDS Database with 9GB
I have MDS configurated in our work environment. We have just some tables (50 tables) each with less that 50 records but the database keeps growing and it has now 9GB in size which does not make sense in terms of data that is realy stor
Show only records where a NULL exists across columns...
I'm struggling with the syntax of a WHERE statement to return only the records where a NULL exist within any column in my table.
Example below:
The Most Wanted Upgrade
Speed up query execution. Can we add an index or rewrite the query
SQL Jobs output file
Friday, November 24, 2017
Read TXT File - problem with importing from flat file source ssis
I have txt file where i have 14 million rows from Qlikview and SAP exported.
Now i want to import in into SQL Server Database.
SQL and XML
I'm a NooB at SQL XML creation so hoping you can help me out here.
I have a query like this:
[code language="sql"]
SET @AcuteCare = ( &nbs
A well-earned break from the database
SQL Server Architecture in Azure
I'm trying to determine if Web/App servers should be in their own RG and the DB server
SQL Server 2016 Cumulative Updates (November 2017)
Microsoft has released the following Cumulative Updates for SQL Server 2016 (RTM and SP1).
Cumulative Update 9 for SQL Server 2016 RTM
KB 4037357 Download Build number: 13.0.2216.0 SQL Release Services Blog PostCumulative Update 6 for SQL Server 2016 SP1
KB 4037354 Download Build number: 13.0.4457.0 SQL Release Services Blog PostCheck for existense of database master key in "all" databases
I'm struggling with a little query here. I'm much more a DB admin than programmer, so I really got lots of stuff I do not know regarding building my own querys - sorry for that ;)
I got the appointment of checking several instances
Are the posted questions getting worse?
Choosing the Birthday of a Customer by month?
cust_id INTEGER NOT NULL PRIMARY KEY
,cust_fname NVARCHAR(50) NOT NULL
,cust_lname NVARCHAR(50) NOT NULL
,cust_dob DATETIME NOT
Today's Random Word!
Read TXT File - problem with importing from flat file source ssis
I have txt file where i have 14 million rows from Qlikview and SAP exported.
Now i want to import in into SQL Server Database.
Multiple Mid functions
Apologies is this query is too specific for this forum, please point me in the right direction if that's the case.
Below is an expression I am using to pull out the forename from a user ID i.e."text\[forename] [Surname]", at the mome
Does anyone use views in this way?
I know there are several cases where we as database developers need reference tables to help us with our querying (e.g., Tally tables, Calendar tables, etc.). Occasionally, I find myself needing other types of reference tables, sometimes ones
What entry should be in sys.servers for an AlwaysOn AG?
I've set up a test AlwaysOn AG environment.
I have 2 SQL Servers, SQL-PRI and SQL-SEC, and I have a listener name of SQL-LSNR
everything seems to work fine. I can manually failover the databases from one node to the other and bac
Index operations with max degree of parallelism value
Thursday, November 23, 2017
Cleanly Uninstalling Stubborn SQL Server Components
There is a built-in command called msiexec which has an uninstall parameter (-x). This command can be used to remove stubborn programs through brute force. First, though, you need to get an inventory of the GUIDs that represent the programs you need to remove.
Good to have Multiple Data Warehouses?
Scheduling jobs in Azure SQL database - Azure automation or Elastic jobs for EXPORT and IMPORT of a table?
Requirement - Have to export a table from on premises server and import it on the virtual database hosted in Azure SQL database and automate th
The Most Wanted Upgrade
The Pressure to Perform
Table Design
Dear Experts ,
Please share if there are any standard guidelines for designing the table objects , apart from Normalization , and Column domain values/ranges the data can accommodate max , the type of the column etc and yes the infrastructure  
AG Listener not working with OLAP Cubes \ Tabular Cubes \ Linked Server Connections
My team and I have been working for some time to establish Always-On Availability Groups in our production warehouse environments. We've successfully setup a 4 node WSFC with an Azure Witness Disk across our two physical data centers a
Visual Studio 2017 - Display Data Flow Rows
Sorry if this is the wrong forum I'm nor sure where to post it. I am using Visual Studio 2013 Premium edition. In VS 2010 I used to be able see the number of rows the data flow task was using in each pipe. But VS2013 doesn't seem to do th
Are the posted questions getting worse?
SQL server 2016 - Backup definition
I have SQL server 2016 over a Windows server 2016 on Amazon web service,
I need to set up backup´s from all the database and the server.
For the database i use native backups but i need to define what kind of backup im going to do
Databases in Azure… Where to begin? Create a Database and log in!
Table Design
Dear Experts ,
Please share if there are any standard guidelines for designing the table objects , apart from Normalization , and Column domain values/ranges the data can accommodate max , the type of the column etc and yes the infrastructure  
SQL Server memory consumption is more
Windows server Mmemory 32 GB
SQL Server Max Memory 28GB
Sql server is consuming 29 GB
Column Length
Dear All,
Question regarding the length of a column . As its understandable it has to be in accordance with the data that occupies the location ... does it have any impact on performance ? Since a table has to be read into the memory, does it
How to get Qty value?
I have table two tables
desc table1
company_no varchar(10)
invoice_no varchar(20)
locn_no varchar(10)
model_ref varchar(20)
item_type char(10)
item_code varchar(10)
QTY varhcar(2
SSAS in Azure - process a "table"
Hi All,
For testing, we have created an SSAS tabular model and deployed it to SSAS in azure.
We have marked the model as
[Database Mirror] Client cannot be redirected to new principal db.
I have 3 sql servers in the architecture of database mirror(with a witness server). When I test failover, sql server works fine but
client (c#) cannot be redirected to new principal server after execut
Are the posted questions getting worse?
ICQ No. : 722403840 Sell Cvv Good Fresh Sell Cvv Good Fresh Sell CVV all country us,uk,ca,au,eu,asia...Fresh=> Price cheap Hi everycustomer, i have shop CVV and site tool shop. i work prestige, professional If you need CVV please contact me for ICQ No. : 722403840 Gmail :...
Sell Cvv Good Fresh
Sell CVV all country us,uk,ca,au,eu,asia...Fresh=> Price cheap
Hi everycustomer, i have shop CVV and site
tool shop.
i work prestige, professional
If you need CVV pleas
Wednesday, November 22, 2017
Free eBook: Inside the SQL Server Query Optimizer
This free eBook from Redgate Software will take you from the fundamentals of Statistics, Cost Estimation, Index Selection, and the Execution Engine, and guide you through the inner workings of the Query Optimization process, and throws in a pragmatic look at Parameterization and Hints along the way.
Choosing the Birthday of a Customer by month?
cust_id INTEGER NOT NULL PRIMARY KEY
,cust_fname NVARCHAR(50) NOT NULL
,cust_lname NVARCHAR(50) NOT NULL
,cust_dob DATETIME NOT
Game Day Planning
"Invalid column type from bcp client for colid xx."
I have an issue with transferring some data from prod to uat, the two tables are identical. I first thought this might have something to do with a view that used the table, but having taken that out of the equation, I am still facing the s
Trggier not working with insert
I have an insert command saved to a table in a database "after insert" the trigger take the insert command and execute it. when the trigger
Table Design
Dear Experts ,
Please share if there are any standard guidelines for designing the table objects , apart from Normalization , and Column domain values/ranges the data can accommodate max , the type of the column etc and yes the infrastructure  
Better TSQL Performance
I am trying to improve query performance, I have encapsulated the following query into a stored procedure and have made some structural changes, added indices, etc (I an inherited a poorly designed db), but I feel I can do more
Backing up multiple SQL instance and databases using 3rd party software - Any recommendations
We are looking to have a centralized software management tool for backing up SQL Server databases that can also provide us with better backup and faster restore times as compared to native SQL. Kindly, let me know if you have any rec
Are the posted questions getting worse?
Choosing the Birthday of a Customer by month?
cust_id INTEGER NOT NULL PRIMARY KEY
,cust_fname NVARCHAR(50) NOT NULL
,cust_lname NVARCHAR(50) NOT NULL
,cust_dob DATETIME NOT