Viewing 15 posts - 4,906 through 4,920 (of 13,460 total)
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
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;
Lowell
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...
Lowell
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,...
Lowell
August 21, 2012 at 11:54 am
BaldingLoopMan (8/21/2012)
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
August 20, 2012 at 12:01 pm
SQLKnowItAll (8/20/2012)
Lowell
August 20, 2012 at 10:19 am
robert.gerald.taylor (8/20/2012)
GRANT ALTER ON SCHEMA::Reporting TO [abc\BI...
Lowell
August 20, 2012 at 9:07 am
you can do this easily withe DelimitedSplit8K function here on SSC:
declare @val varchar(8000)
set @val='ABC DEF GHI JKL MNO 12 PQR'
select * from dbo.DelimitedSplit8K(@val,' ')
where ItemNumber=5
read the article here and...
Lowell
August 18, 2012 at 3:50 pm
Viewing 15 posts - 4,906 through 4,920 (of 13,460 total)