Viewing 15 posts - 646 through 660 (of 1,241 total)
abdullah.zarour (1/13/2016)
You might try the following point :
1. Create a table partition.
2. Configure the SQL Server Instance Option ( Optimize for Ad hoc workloads).
3. Check Max...
----------------------------------------------------
January 13, 2016 at 4:25 pm
If that is the case I am wondering how many different permutations of updated columns do you need compared to the number of Id's... which leads me to wonder if...
----------------------------------------------------
January 13, 2016 at 4:22 pm
Stijn977 (1/11/2016)
Can you further define "big transaction"?
==> 500 to...
----------------------------------------------------
January 13, 2016 at 2:41 pm
Orlando Colamatteo (1/12/2016)
MMartin1 (1/12/2016)
Orlando Colamatteo (1/12/2016)
titsiros (1/12/2016)
I know it's a...
----------------------------------------------------
January 12, 2016 at 6:42 pm
Orlando Colamatteo (1/12/2016)
titsiros (1/12/2016)
I know it's a grand task because...
----------------------------------------------------
January 12, 2016 at 6:02 pm
Borrowing from Eirikur's code a little bit,
Maybe you are looking for something like this ?
create table #sampleScheduleData
(
scheduledClass VARCHAR(50) ...
----------------------------------------------------
January 12, 2016 at 5:04 pm
I am assuming that this is a string column for a int column would not hold the leading zero by the way.
declare @myint int = '0123'
select @myint
Plus needless to...
----------------------------------------------------
January 12, 2016 at 4:45 pm
Now i want to convert this into yyyy-mm-dd format ie 2015-01-09
If you are still introducing this into another string column then
declare @mystring varchar(10) = '01092015' ;
select right(@mystring,4) +'-'+
left(@mystring,2)+'-'+
substring(@mystring,3,2)asdateFormattedString
This leaves...
----------------------------------------------------
January 12, 2016 at 4:40 pm
Eirikur Eiriksson (1/11/2016)
Hugo Kornelis (1/11/2016)
GilaMonster (1/10/2016)
t1 INNER JOIN t2 on t1.Col1 = t2.Col2 OR t1.Col1 = t2.Col3 OR t1.Col1 = T2.Col4
Don't know what the performance...
----------------------------------------------------
January 12, 2016 at 4:16 pm
Sergiy (1/5/2016)
It's like updating a view - it might work or might not work, but some...
----------------------------------------------------
January 5, 2016 at 5:30 pm
Or if you want to make this look more to what you may be familiar with, drawing off of your example ,
USE tempDB;
GO
/* ----------------------------- */
CREATE TABLE #stakeholder_notes(
note_id INTEGER NOT...
----------------------------------------------------
January 5, 2016 at 1:39 pm
Great, Sean's example solves this. You can refer to his last post.
----------------------------------------------------
January 5, 2016 at 1:19 pm
sartis (1/5/2016)
MMartin1 (1/5/2016)
----------------------------------------------------
January 5, 2016 at 1:01 pm
You provided sample data and the tables structure. Can you also provide what you want the final output to look like? We may be able to fill in the gap...
----------------------------------------------------
January 5, 2016 at 11:52 am
I prefer CTEs when one recordset depends on the prior. This could be potentially quite confusing with multiple subqueries
With Cte0 as
(
SELECT /* some record set */
),
Cte1 as
(
SELECT /* ..*/
FROM...
----------------------------------------------------
January 5, 2016 at 11:23 am
Viewing 15 posts - 646 through 660 (of 1,241 total)