Viewing 15 posts - 12,436 through 12,450 (of 13,465 total)
just a quick note: your trigger will fail if the INSERTED table has more than one row . you should change it to something like this:
if update(entry)
begin
update results_ext...
September 20, 2007 at 9:37 am
awesome! glad it worked out for you.
It was a neat challenge to try and figure that one out. It's really just grabbing building blocks of code I used before, and...
September 20, 2007 at 7:56 am
lol sorry for pointing out the obvious...I'll read a bit more on it and see if i find something un-obvious.
September 19, 2007 at 8:44 am
Gordon that latch type 2 error made me remember that there was a problem in early service packs....while it might not be your specific problem, what version is on your...
September 19, 2007 at 8:26 am
bcp doesn't allow you to append files, but the COPY command certainly is able to do it.
here's a complete example: it uses the function i suggested above.
psuedocode: bcp, make header,...
September 19, 2007 at 7:03 am
lookjs like you are assuming a specific date format and preceeding zeros that you did not mention previously:
well this will work, but I agree with Ray that this isn't the...
September 18, 2007 at 2:17 pm
I agree with Lynn no value to using a function in this case; also, I'd suggest creating an index on those 7 columns; it would most likely help on performance...
September 18, 2007 at 12:25 pm
you'll want to use the convert function most likely...
assume a db has three int or other numeric columns:
SELECT * from sometable
WHERE CONVERT(VARCHAR,MAJORVERSION) + '.' + CONVERT(VARCHAR,MINORVERSION) + '.'...
September 18, 2007 at 12:22 pm
look at this script from the contributions, which opens a file and appends to the end of it:
you could BCP to a file, and then use the script to append...
September 17, 2007 at 9:42 am
interesting; other than a restore of the data, everything i tried so far left the CRDATE in master.dbo.sysdatabases intact:
stopping/starting server. also tried rebooting the server.
backup full database, then backup transaction...
September 17, 2007 at 9:26 am
yep use a snapshot: a developer doing SELECT * FROM THE800MILLIONROWTABLE will kill usability, and he might have done it just to remind himself of column names.
keep developers off production.
September 14, 2007 at 3:23 pm
ok it looks like you want to keep track of multiple results, but you wanted separate tables...
rethink the logic a bit;
why not create ONE table, and add one column CalledResultSet,...
September 14, 2007 at 12:18 pm
--sql doesnt have an instrRev function, but separate functions you can combine to do the same thing:
--so you have to use substring and reverse:
declare @str varchar(1024)
set @str = '/pna/v3/pg/product/manual/display/0,,2076_15221_49434,00.HTML....
September 14, 2007 at 11:52 am
i use this to find tables or columns that contain some string all the time;
usage: sp_find Customer
CREATE procedure sp_find
@findcolumn varchar(50)
as
begin
set nocount on
select sysobjects.name as TableFound,syscolumns.name as...
September 13, 2007 at 2:34 pm
Here's my take:
no backups are a sign of an in-experienced DBA, or a developer who happens to have to wear the DBA hat. Unfortunately, he's been lucky up till now hiding...
September 12, 2007 at 6:47 pm
Viewing 15 posts - 12,436 through 12,450 (of 13,465 total)