Viewing 15 posts - 57,046 through 57,060 (of 59,070 total)
The column names in the #Drives table must be the same as those returned by the xp. You have FreeMB as one of the column names... you need to either...
January 19, 2007 at 11:01 pm
You might be able to do the count thing with a RowNum IDENTITY column... have the trigger delete...
WHERE RowNum < IDENT_CURRENT('table_name')-49
January 19, 2007 at 10:50 pm
Stef,
These types of problems are incredibly simple if you have the right kind of tools. Fortunately, there is one tool that has tremendous utility as just such a tool. It...
January 19, 2007 at 10:10 pm
I screwed up... that's what I get for late night programming... I don't know what on Earth made me think that @@ROWCOUNT would ever be a NULL. If you want...
January 18, 2007 at 6:15 am
If you expect a lot of rows with more than 1 space before the "\", this might be a lot faster...
--===== Execute the "single statement" update to...
January 17, 2007 at 10:00 pm
Absolutely... in the code that follows, only the third "paragraph" is required... the rest is just setting up for the test. Of course, you will need to delete all but...
January 17, 2007 at 9:45 pm
--===== Build some test data so we can demo the solution
CREATE TABLE #YourTable (PermitNum VARCHAR(10),EventDate DATETIME ,EventDesc VARCHAR(20),EventDateID INT)
INSERT INTO #YourTable
(PermitNum,EventDate,EventDesc,EventDateID)
SELECT 'PSD-1206','5/11/06','App Received',1 UNION ALL
SELECT 'PSD-1206','5/25/06','Determination',2...
January 13, 2007 at 8:01 pm
CHAR(10) is the same thing as \n... use one or the other but not both.
January 11, 2007 at 6:40 pm
No response... guess it's no longer a priority, eh? ![]()
January 11, 2007 at 6:11 pm
Yes, some of the BCP command line is order sensitive... most of the "switches" are not but the other stuff typically is.
So far as the "other" application goes, most folks...
January 11, 2007 at 6:05 pm
Nope... you using single quotes in the first attempt... you correctly used double quotes in the second attempt.
January 10, 2007 at 5:44 pm
Ronald's suggestion will certainly work but it's a pain if you have a bunch of named indexes, constraints, and the like...
If you'd take the time to post the schema (CREATE...
January 10, 2007 at 5:37 pm
Agreed on all points... I have the same problems with a batch scheduling program at work because they don't know how to and/or won't use the SQL Job scheduler. Then...
January 10, 2007 at 5:14 pm
Heh... THAT can be done! But I absolutely agree... The requirements that some of these folks have to put up with is insane.
January 9, 2007 at 5:29 pm
Yep... whichever one ran first on my box, lost by about a second. Then, I removed the drop from both, whichever one ran first, also lost by about a second. ...
January 9, 2007 at 5:47 am
Viewing 15 posts - 57,046 through 57,060 (of 59,070 total)