Viewing 15 posts - 121 through 135 (of 388 total)
I would use dynamic sql if you need to make a query Sargable and the where clause is, I quote from Gail, " Looks like it was drawn up by...
April 8, 2016 at 7:33 am
amitsingh308 (4/7/2016)
Create table OrdersDetails(OrderNo varchar(30),ItemNo Varchar(20),ItemName Varchar(50))
insert script is as under:
Insert into OrdersDetails (OrderNo,ItemNo,ItemName) Values('122314','1','sdfasfasd123')
Now I want to change sequence number for order number...
April 7, 2016 at 5:10 am
lnoland (4/6/2016)
MadAdmin (4/5/2016)
VIEW\Template Explorer OR Ctrl+Alt+T
and you will have a list of most stuff.
So you dont have to remember syntax of how to create table,...
April 7, 2016 at 2:23 am
In SSMS, Click on
VIEW\Template Explorer OR Ctrl+Alt+T
and you will have a list of most stuff.
So you dont have to remember syntax of how to create table, index, view...
April 5, 2016 at 6:39 am
Let us have an execution plan so that we can see important info.
Also, do set statistics io,time on
Then execute and let us see the output of that and also the...
April 5, 2016 at 4:46 am
Hugo Kornelis (4/5/2016)
MadAdmin (4/5/2016)
Ed Wagner (4/2/2016)
If these were physical...
April 5, 2016 at 4:17 am
Ed Wagner (4/2/2016)
If these were physical tables, I'd suggest...
April 5, 2016 at 3:57 am
try setting buffercount and max transfer size.
Don't leave it at default if you have 1.5 TB to have to wait for.
March 31, 2016 at 3:24 pm
Taking a wild monkey stab in the pitch of darkness here.
I tried this but am unable to verify the data.
I tried matching the addresses in adventureworks2012.Person.address to its nearest address...
March 30, 2016 at 9:38 am
it increased by 1 because you ran it twice with the same parameter.
Looking at the embedding of the value in the sql string, if you change the parameter, you will...
March 30, 2016 at 9:01 am
Is there a table on a linked server?
If so, it may be better to pull the necessary data into a temp table and then do the unions.
Also, the subselects with...
March 30, 2016 at 8:14 am
Do you need a script which will give you top 10 costliest procedures or costliest queries? Added them below just incase.
This is the first route. whoisactive will only tell you...
March 29, 2016 at 8:42 am
If you have high cpu usage, it smells to me like queries which aren't able to use indexes, either because they are not there, or they are but the query...
March 29, 2016 at 4:08 am
Frank Cazabon (3/10/2016)
SELECT DISTINCT [PNRStatus] FROM [Transactions] ORDER BY [PNRStatus]SELECT DISTINCT [AgentID] FROM [Transactions] ORDER BY [AgentID]
SELECT DISTINCT [ScriptResult] FROM [Transactions] ORDER BY [ScriptResult]
Are these queries perhaps to populate a...
March 17, 2016 at 9:49 am
ZZartin (3/15/2016)
March 17, 2016 at 8:43 am
Viewing 15 posts - 121 through 135 (of 388 total)