Viewing 15 posts - 61 through 75 (of 397 total)
try to remove HPL\larry from administrators group of the troubled machine.
March 31, 2005 at 8:01 pm
where in update?
the code above update all (197) rows 197 times.
put current of or unique where in update statement.
March 31, 2005 at 4:55 pm
just an idea.
Script to call iexplore.exe with url, then close itself after certain time.
xp_cmdshell to call the script.
March 29, 2005 at 5:41 pm
what's reason of file not get deleted?
I would add /Q /F in del command.
Like "master..xp_cmdshell 'DEL /Q /F D:\SQLBackup\*.bak "
March 29, 2005 at 4:05 am
Not catch the error, but avoid it.
article
ms-help://MS.MSDNQTR.2004OCT.1033/dnsql2k/html/olapasandrs.htm has some workaround on the issue.
March 28, 2005 at 10:03 pm
=DateAdd(Dateinterval.Day, -1, Today())
March 28, 2005 at 9:58 pm
How did the parameter values populated in the select list? Use dataset to populate it.
March 28, 2005 at 9:42 pm
use isqlw instead of osql.
You may have to specify -o in the syntax.
isqlw /? for syntax detail.
March 28, 2005 at 6:25 pm
In query analyzer, Tools/Options, in Results tag, clear Print column Headers (*) check box.
March 28, 2005 at 5:39 pm
Undocumented sp_msforeachdb stored procedure can help it.
Count user table for each db in the instance.
declare @sql varchar(400)
set @sql='select count(*) from ?.dbo.sysobjects where xtype = ''u'''
exec sp_msforeachdb
March 25, 2005 at 4:23 am
Assume id is alwayse increase and has index on it.
scalar function use max function can help.
Like
create function fn_rowbefore$ (@id int)
returns int
as
begin
declare @ren int
select @ren = max(id) from tablename...
March 23, 2005 at 11:09 pm
sql profiler can help, use application name as filter
March 23, 2005 at 10:51 pm
scalar function can help.
create function fn_groupbystr(sku int, customer varchar(5))
returns varchar(10)
as
begin
declare @ren varchar(10)
select @ren = case when @ren is null then '' else @ren + ',' end + SOURCE...
March 23, 2005 at 10:45 pm
Empty string in varchar field <> Null.
ASP code check "" before try to call insert.
March 23, 2005 at 10:17 pm
Viewing 15 posts - 61 through 75 (of 397 total)