Viewing 15 posts - 4,906 through 4,920 (of 13,465 total)
also, my test as it sits assumes both Premium and Quantity can never be passed NULL; if it's possible, you might want to change the comparison to ISNULL(inserted.Premium,0) <> ISNULL(etc...
August 21, 2012 at 3:27 pm
the first part of your trigger is not a valid test; it's grabbing an aribtrary values, instead of testing ifpremium or quantity changed;
so on a multi row update, the test...
August 21, 2012 at 3:23 pm
grab the old SQL 2000 DBA Toolkit Part from this SSC Article:
http://www.sqlservercentral.com/articles/Advanced+Querying/sql2000dbatoolkitpart2/2362/
that's the one that added regular expressions encryption and more to SQL 2000 via extended procs.
when you got o...
August 21, 2012 at 3:12 pm
John did you ever get all this workign the way you expected? between the DDL and the DML, you were testing for a lot of stuff, i was hoping to...
August 21, 2012 at 2:40 pm
this gets you closer,and I left enough in there for you to do so you can understand the code.
you need to concatenat teh values, as well as accomodate teh counting...
August 21, 2012 at 2:30 pm
there's a few assumptions here: that the column ID is always an integer, with no gaps.
the trick is to simply join the table against itself.
With MyCTE (ID,Status)
AS
(
SELECT '1','0' UNION...
August 21, 2012 at 2:14 pm
SQLKnowItAll (8/21/2012)
Lowell (8/21/2012)
SQLKnowItAll (8/21/2012)
Lowell, why the WHILE 0=0?thanks for catching that!
it was a copy paste blunder form something i adapted; i edited my post to yank that out;
Darn, I was...
August 21, 2012 at 2:02 pm
SQLKnowItAll (8/21/2012)
Lowell, why the WHILE 0=0?
thanks for catching that!
it was a copy paste blunder form something i adapted; i edited my post to yank that out;
August 21, 2012 at 1:50 pm
ii think you want a near-endless while loop instead; something like this:
declare @i int,
@err varchar(100)
set @i=1
WHILE @i < 120
BEGIN
EXEC sp_WhoIsActive
@find_block_leaders...
August 21, 2012 at 12:35 pm
GO cannot exist inside a procedure. it is a batch seperator, so when you compile it, the system thinks the procedure is finished..i would imagine if you try that code,...
August 21, 2012 at 11:54 am
BaldingLoopMan (8/21/2012)
August 21, 2012 at 11:00 am
if the question is can a C program connect and use a SQL 2008R2 database, then yes; the ODBC drivers like the SQl Native Client can be used by a...
August 20, 2012 at 1:59 pm
well the function dbo.DelimitedSplit8K can get you about 90% of the way there; you'd have to clean it up a bit.
you have to be able to find a delimiter in...
August 20, 2012 at 12:44 pm
with SQL 7/2000, if you have a previous backup of the master database, you could restore it as a user database, and then manually script out / create the logins...
August 20, 2012 at 12:01 pm
SQLKnowItAll (8/20/2012)
August 20, 2012 at 10:19 am
Viewing 15 posts - 4,906 through 4,920 (of 13,465 total)