Viewing 7 posts - 91 through 97 (of 97 total)
your query doesn't work
Server: Msg 170, Level 15, State 1, Line 15
Line 15: Incorrect syntax near ','.
October 18, 2006 at 11:06 am
This is what i want.
SAMPLE
apple avenue w
melon road e
watermelon circle n
banana durian crossing s
apple1 avenue w
melon1 road e
watermelon1 circle n
banana1 durian crossing s
RESULT
apple INTERNET w
melon INTERNET e
watermelon INTERNET n
banana durian...
October 18, 2006 at 8:19 am
declare @townID varchar(25),
@sql varchar(1000)
set @townID = '''00003'''
if exists (select * from sysobjects where xtype= 'u' and name = @townID)
print 'exists'
else
print 'don''t exists'
its printing 'dont exists'. it should print exists...
October 11, 2006 at 6:26 am
i think its 2627
so it will be like
if @@error = 2627
print 'error'
September 7, 2006 at 12:13 pm
how can i write the code to catch the error?
is it somehting like
if @@error <> 0
print 'error'
September 7, 2006 at 11:04 am
Viewing 7 posts - 91 through 97 (of 97 total)