Viewing 15 posts - 5,626 through 5,640 (of 15,381 total)
Open Minded (2/24/2014)
This...
February 25, 2014 at 7:40 am
You didn't give us a whole lot here to go on. It seems that you could use a CASE expression to derive your other three columns. http://technet.microsoft.com/en-us/library/ms181765.aspx
If you need more...
February 25, 2014 at 7:30 am
You would do yourself a favor if you stopped using cursors for doing row level modifications. Cursors are horrible for performance and really should only be used for some administration...
February 25, 2014 at 7:27 am
Lynn Pettis (2/25/2014)
Last night home. Start my journey back to Afghanistan Tuesday morning.
Good luck Lynn. Safe travels!!!
February 25, 2014 at 7:15 am
hisakimatama (2/24/2014)
February 24, 2014 at 2:25 pm
ACK!!! That is hideous!!! I love the NOLOCK hints on some of the queries and not others. :w00t:
February 24, 2014 at 2:16 pm
patrickmcginnis59 10839 (2/24/2014)
Sean Lange (2/24/2014)
patrickmcginnis59 10839 (2/24/2014)
Sean Lange (2/24/2014)
patrickmcginnis59 10839 (2/24/2014)
GilaMonster (2/23/2014)
Jim Arko (2/23/2014)
SET @sqlstring = 'UPDATE table SET column =...
February 24, 2014 at 12:19 pm
river1 (2/24/2014)
I have searched on the internet and did not found...
I saw the script some time ago but...
February 24, 2014 at 10:40 am
patrickmcginnis59 10839 (2/24/2014)
Sean Lange (2/24/2014)
patrickmcginnis59 10839 (2/24/2014)
GilaMonster (2/23/2014)
Jim Arko (2/23/2014)
When using dynamic T-SQL you need to concatenate the variables.
SET @sqlstring = 'UPDATE table SET column = ' + @variable
Sure, if...
February 24, 2014 at 10:27 am
malcolm.garbett (2/24/2014)
CustomerIDCustomerNameCountryPartNumberCurrencyPYTD_Ext_PriceCYTD_Ext_PricePYTD_QtyCYTD_QtyASP_PYTDASP_CYTD
N1141ARC Machine Tools LtdGBS2G00009D070GBP0.00-235.44010235.44
N1141ARC Machine Tools LtdGBS2G00009D070GBP0.00261.60010261.6
Issue 1. ...
February 24, 2014 at 10:23 am
I would say to use a SUM with a case expression inside. It seems you have done that. We can't offer a lot more insight here because we have no...
February 24, 2014 at 9:21 am
patrickmcginnis59 10839 (2/24/2014)
GilaMonster (2/23/2014)
Jim Arko (2/23/2014)
When using dynamic T-SQL you need to concatenate the variables.
SET @sqlstring = 'UPDATE table SET column = ' + @variable
Sure, if you want a nice...
February 24, 2014 at 9:18 am
Pretty sparse on details but this should get you started in the right direction.
insert Tbl2
select EmpId,
EmpId,
EmpLName,
EMPFName,
case when EmpEmail like '%@test.com' then EmpEmail else '' end,
case when EmpEmail is not null...
February 24, 2014 at 9:07 am
You might also want to check out this book. There is a free download but the paper version is well worth the money spent.
February 24, 2014 at 8:53 am
montecarlo2079 (2/24/2014)
If the table is not created, will it create a temp table or a...
February 24, 2014 at 7:56 am
Viewing 15 posts - 5,626 through 5,640 (of 15,381 total)