Viewing 15 posts - 5,461 through 5,475 (of 15,381 total)
Luis Cazares (3/14/2014)
DECLARE @str varchar(100) = 'the foreign institute of comics'
March 14, 2014 at 9:56 am
abhas (3/14/2014)
All changes are aviliable in a table itself and we can idenitfy that changes by using EffectivestartDate column.
By using this column we can find out latest...
March 14, 2014 at 9:12 am
navie (3/14/2014)
March 14, 2014 at 9:09 am
Seems to me that overpayments is not its own table. I would have a payments table. Then you can easily determine overpayments by calculating the balance.
In other words, you would...
March 14, 2014 at 9:04 am
Here is one way.
select @str = REPLACE(@str, Noisy, '')
from #tblNoise
select replace(ltrim(rtrim(@str)), ' ', ' ') as Result
March 14, 2014 at 7:55 am
rajemessage 14195 (3/14/2014)
and i want to roll back only if error comes any where in side outer loop,
and after error handeling i want continue with...
March 14, 2014 at 7:46 am
rajemessage 14195 (3/14/2014)
REPLACE function will replace all occurrence of any expression.
is there any thing which can replace only first occurrence ,
and is there any thing which...
March 14, 2014 at 7:27 am
ChrisM@Work (3/14/2014)
Grant Fritchey (3/14/2014)
Ed Wagner (3/14/2014)
Grant Fritchey (3/14/2014)
GilaMonster (3/14/2014)
Anyone for a game of 'guess what index is on which table'?http://www.sqlservercentral.com/Forums/Topic1550657-391-1.aspx
Yeah, that one is killing me. Vague weirdness, badly edited execution...
March 14, 2014 at 7:23 am
Mitesh Oswal (3/13/2014)
DECLARE @tbl TABLE
(
ID INT IDENTITY(1,1),
Char1 NVARCHAR(100)
)
INSERT INTO @tbl
select 'ABC x.yz'
UNION
select 'A.BC X.*YZ'
UNION
select 'A.BC *X.YZ'
DECLARE @tblNumber TABLE
(
Number INT
)
INSERT INTO @tblNumber
SELECT TOP 1000 ROW_NUMBER() OVER(ORDER BY S.Object_id )
from sys.objects...
March 14, 2014 at 7:17 am
That looks better but you still have RBAR in there. You have a while loop that is still running but going from 88 minutes to 4 is a vast improvement....
March 14, 2014 at 7:11 am
jcrawf02 (3/13/2014)
The Dixie Flatline (3/13/2014)
March 13, 2014 at 3:34 pm
Thank you so much for posting ddl and sample data. This makes it very easy to work on your issue.
What you need here is a crosstab. I made some assumptions...
March 13, 2014 at 3:30 pm
briancampbellmcad (3/13/2014)
Thanks for simplifying and also pointing out the permissions risks... BTW can a SP in SQL Server be called from VBA code in MS-Access/ Like "EXEC TruncateTmpBank"?
Glad that helps.
Yes...
March 13, 2014 at 2:43 pm
briancampbellmcad (3/13/2014)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER...
March 13, 2014 at 2:30 pm
Seggerman-675349 (3/13/2014)
nope, I've nearly got it - thanks again for all your helpI'll post it when done, removing the PRINTs, sundry SELECTs of table variables, etc
You are quite welcome although...
March 13, 2014 at 1:25 pm
Viewing 15 posts - 5,461 through 5,475 (of 15,381 total)