Viewing 12 posts - 16 through 27 (of 27 total)
No, I am sorry. I don't recall where I found it. I was working with version 7 at the time, using an old, old administrator's handbook I had and trying...
February 11, 2004 at 7:57 am
I am 90% sure that 'type' is to provide backward compatibilty to old versions of SQL Server.
xtype is the 'real' field that you want to use.
February 10, 2004 at 3:56 pm
That looks like a snippet of code from a bigger VB program. You appear to be accessing a table thru an ADO connection. You need to alter the ADO Connection...
February 10, 2004 at 3:53 pm
'N' casts the string as a double-byte string (two bytes per character, international language support). The destination field is type nchar, nvarchar, etc.
February 10, 2004 at 2:31 pm
Another way.... (un-comment print statements to watch it work)
CREATE PROCEDURE spStripSpacesToComma
@sVariable varchar(50)
,@sReturn varchar(50) OUTPUT
as
declare @iPtr integer
set @iPtr = 0
select @iPtr = charindex(' ', @sVariable, @iPtr)
while @iPtr...
February 10, 2004 at 11:02 am
This is a little out of my area, but I think you need to handle the double-byte character in a nchar field rather than plain old, char.
February 9, 2004 at 9:52 am
CREATE PROCEDURE spRunEmAll as
EXEC spProc01
EXEC spProc02
EXEC spProc03
EXEC spProc04
etc...
I would normally implement this sort of thing using .CMD files and the ISQL commandline interface. I find...
February 9, 2004 at 9:45 am
You don't have to make the application keep track of updates to the table. Create TRIGGERs to handle the INSERT, UPDATE and DELETE events. You can maintain a 'shadow' table...
February 9, 2004 at 9:02 am
Try this instead:
declare @UnitWeight as Real
SELECT @UnitWeight = SUM(FVALUE) from ITEM
February 9, 2004 at 8:01 am
Error is in the eye of the beholder, I suppose. But by definiton there could never be a matching record in Table1. The join 'works', but there are orphaned rows. ...
February 6, 2004 at 1:51 pm
How about...
select t1.datefield, t2.datefield, t2.timefield, .....
from Table1 t1
inner join Table2 t2
on t2.datefield = convert(char(10), t1.datefield, 101) and
t2.timefield = convert(char(8), t1.datefield, 114)
Assumes your dates are mm/dd/yyyy...
February 6, 2004 at 1:25 pm
Viewing 12 posts - 16 through 27 (of 27 total)