Viewing 5 posts - 1 through 5 (of 5 total)
for two integers @i & @j-2
the following should work
( looks like a slight overkill I know! )
select POWER(10,FLOOR(LOG10(@i)))*(FLOOR(@i)/POWER(10,FLOOR(LOG10(@i))))
*
...
November 26, 2003 at 2:38 am
you may need to repeat MOM's tip but using CHAR(10) - Line Feed and CHAR(13) - Carriage return. CHAR(9) is TAB.
On the other hand if you can preserve these...
November 25, 2003 at 2:16 am
try
declare @cmd varchar(255)
select @cmd = '"echo ' ? @cola ? ' ' ? @colb ? ' > c:\testsql.txt"'
exec master..xp_cmdshell @cmd , nooutput
(NB - change the ?'s to concat...
November 17, 2003 at 2:54 am
try using dynamic sql in the SP e.g.
EXEC ("Select * from " + @msLookUptable)
November 3, 2003 at 2:11 am
Viewing 5 posts - 1 through 5 (of 5 total)