Viewing 15 posts - 6,646 through 6,660 (of 15,381 total)
Gabe T. (10/1/2013)
I've got a table with a clustered index which needs to be dropped and recreated to add an additional column to it. The table also has three...
October 1, 2013 at 12:31 pm
mario17 (10/1/2013)
I need to get column from JOINed table but its one to many so I need to select only single instance for c2 , to keep original...
October 1, 2013 at 12:27 pm
SQL_FS (10/1/2013)
Sean Lange (10/1/2013)
SQL_FS (9/30/2013)
SELECT string, categoryFROM @SampleData
ORDER BY
CASE WHEN category % 7 = 0 THEN 1
WHEN category % 3 = 0 THEN 2
ELSE 3
END ASC
, string ASC
This is NOT...
October 1, 2013 at 9:40 am
jcrawf02 (10/1/2013)
Grant Fritchey (10/1/2013)
jasona.work (10/1/2013)
Grant Fritchey (10/1/2013)
October 1, 2013 at 9:37 am
Stefan Krzywicki (10/1/2013)
jcrawf02 (10/1/2013)
Stefan Krzywicki (10/1/2013)
Brandie Tarvin (10/1/2013)
Stefan Krzywicki (10/1/2013)
I now know why people hire wedding planners. Wow, this is a lot of work.
Yes. Yes it is. And you'll kick...
October 1, 2013 at 9:29 am
easy_goer (10/1/2013)
October 1, 2013 at 8:55 am
Stefan Krzywicki (10/1/2013)
Sean Lange (10/1/2013)
Stefan Krzywicki (10/1/2013)
I now know why people hire wedding planners. Wow, this is a lot of work.
haha. I picked the band, the food and the tuxedos....
October 1, 2013 at 8:43 am
Stefan Krzywicki (10/1/2013)
I now know why people hire wedding planners. Wow, this is a lot of work.
haha. I picked the band, the food and the tuxedos. Other than that the...
October 1, 2013 at 7:52 am
--edit--
wrong post.
October 1, 2013 at 7:45 am
SQL_FS (9/30/2013)
SELECT string, categoryFROM @SampleData
ORDER BY
CASE WHEN category % 7 = 0 THEN 1
WHEN category % 3 = 0 THEN 2
ELSE 3
END ASC
, string ASC
This is NOT ordering by ordinal...
October 1, 2013 at 7:41 am
T.Ashish (9/30/2013)
October 1, 2013 at 7:40 am
jpnasab 81740 (9/30/2013)
returns nvarchar(4000) as
begin
declare @str nvarchar(4000)
select @str = cast(rtrim(ltrim(column_name)) as nvarchar(500)) + coalesce('' + @str , '')
from information_schema.columns
where table_name = @table_name
group by table_name, column_name, ordinal_position...
October 1, 2013 at 7:21 am
raj.prabhu001 (9/30/2013)
hi all,i want to create a script to backup the stored procs of the database plz suggest.
Do you not already backup the database??? All the procs will be in...
September 30, 2013 at 1:34 pm
homebrew01 (9/30/2013)
could you do "truncate table" instead of delete ? Should be faster, and no logging since you don't care about data recovery.
Faster yes...but truncate is a fully logged...
September 30, 2013 at 11:41 am
amenjonathan (9/30/2013)
I think I worded my post wrong, because it is exactly parameter sniffing. Once I passed the externals to internals the sproc ran very fast. Thanks!
Cool glad we were...
September 30, 2013 at 10:40 am
Viewing 15 posts - 6,646 through 6,660 (of 15,381 total)