Viewing 15 posts - 121 through 135 (of 334 total)
As a follow-up example.
I have a table, call it tableA, that contains 1 million rows on my publisher and uses 103 MEGs of data space.
tableA in the subscriber database...
March 20, 2013 at 11:47 am
like this maybe?
SELECT
EMPL_ID,
PAY_TYPE_ID,
SUM(LABOR_HRS) AS 'HOURS',
SUM((case when pay_type_id = 99 then 0 else LABOR_COST end)) AS 'Labor Cost'
March 19, 2013 at 3:49 pm
Lynn Pettis (3/19/2013)
Erin Ramsay (3/19/2013)
Why are you shrinking the log file? If your backup method is Full then the logfile will truncate on backup.
Full and Differential backups do not truncate...
March 19, 2013 at 3:06 pm
Unless I'm misunderstanding what you want it sounds like you want to use a left join..
Something like..
select t1.concatenate, t2.concatenate
from table1 t1
left join table2 t2
on t1.concatenate = t2.concatenate
Maybe? You're trying...
March 19, 2013 at 2:22 pm
Why are you shrinking the log file? If your backup method is Full then the logfile will truncate on backup.
March 19, 2013 at 1:48 pm
What about taking the row_number out of vw_BatchItems completely and putting row_number() over (order by DateEntered) in the usp_sel_BatchItems view?
March 18, 2013 at 3:42 pm
with much information I had to make some guesses.. something like this?
CREATE TABLE #temp
(
id INT,...
March 18, 2013 at 3:13 pm
Something like this maybe?
DECLARE @factorial VARCHAR(255)
SET @factorial = ''
CREATE TABLE #temp
(
id INT,
...
March 18, 2013 at 1:08 pm
I think you could possible have posted this in the wrong section but I hope this helps you.
March 18, 2013 at 10:28 am
Ah.. that makes sense. Thank you very much.
March 15, 2013 at 9:05 am
Yeah, I've tried that before to no luck. Any T-SQL inside the switches are all evaluated BEFORE the switches and they'll fail if the version isn't correct. You might have...
March 14, 2013 at 10:06 am
Are you using a server group or linked servers?
March 14, 2013 at 9:04 am
I don't suppose you're going to make it easy on use and mention that all the skus are comprised of numbers, right?
If they are all numbers you can use something...
March 13, 2013 at 4:24 pm
Viewing 15 posts - 121 through 135 (of 334 total)