Viewing 15 posts - 31 through 45 (of 128 total)
ANSI_PADDING, in older versions, referred to whether trailing blanks shoud, or should not, be retained in varchar columns. If 'ON', then they would be retained. If 'OFF', they would be...
October 13, 2011 at 8:41 am
In your logic, you are declaring @newProjectId, then immediately using it in an INSERT statement. It has NOT been assigned a value at that point. What value to you think...
August 29, 2011 at 10:01 am
R.P.Rozema (8/18/2011)
alter PROCEDURE [dbo].[brw_Rec]
@rId numeric(18,0),
@rId2 numeric(18,0) = NULL
AS
BEGIN
SELECT RID,PA_ID
...
August 19, 2011 at 11:47 am
Unfortunately, Mike John's SQL will also return 0 if there are any spaces in the column. This can be solved by replacing LEN with DATALENGTH.
June 9, 2011 at 12:06 pm
If you have 'L / S', with a space before and after the '/', do you want to replace the '/' with a space, or just remove the '/'? The...
May 26, 2011 at 12:38 pm
My apologies, Lowell and Armando. It's been a while since I read the entire entry for BCP comand options.
I use BCP quite often, and have run across this before. Other...
May 17, 2011 at 3:33 pm
Review the "BCP" entry in Books Online.
-c controls the output of data - in this case, "character."
-r controls the row delimiter
-c -r /n
Review the "BCP" entry in Books Online.
Everything you...
May 17, 2011 at 12:18 pm
Review the "BCP" entry in Books Online.
What you want is "-r /n" (without the quotes).
May 16, 2011 at 2:48 pm
If ANSI_PADDING was set to 'OFF' when the table was created, trailing spaces are removed from varchar columns when values are inserted or updated. This also applies to varbinary columns...
March 9, 2011 at 3:30 pm
Since your WHERE clause specifies a value for the 'c' table, your LEFT JOINs effectively become INNER JOINs, in that the value from the 'c' table MUST exist. You...
May 13, 2010 at 8:21 am
Will do. Good advice...
March 30, 2010 at 2:25 pm
Ah! Thanks! That's the missing piece of the puzzle. I don't have access to the .NET logic, which is where the transaction would be controlled. I'll...
March 30, 2010 at 2:16 pm
Viewing 15 posts - 31 through 45 (of 128 total)