Viewing 15 posts - 391 through 405 (of 597 total)
I would generally write this as
CASE WHEN @Cln_Num='ALL' THEN 1
WHEN (Cln_Num = @Cln_Num) THEN 1
WHEN @Cln_Num = 999 THEN 999 ELSE 0 END = 1
in case the cln_num...
March 30, 2004 at 3:53 pm
Have you tried this with a client number = 1 and using the 'ALL' parameter?
I am also confused.. what is the difference between 'ALL' and 999 supposed to be? Can...
March 30, 2004 at 2:26 pm
Unforntunately the system table map in the 2K res kit does not apply to version 7.
March 29, 2004 at 12:52 pm
I got it wrong too
However, I don't agree that a question that few people manage to get correct is automatically a 'bad' question...
March 29, 2004 at 9:03 am
Scope_Identity is a better idea even in a simple example like this. @@identity could be made to work, but a problem could arise if you added a trigger to the first...
March 29, 2004 at 8:50 am
Your use of scope_identity() is correct.
Your IF statements are syntactically wrong. You need to compare @@error to something. I assume you want to check if the error is non zero...
March 29, 2004 at 8:32 am
try
INSERT INTO USED_DISK
(col1,col2...)
EXEC dbo.sp_Foo
March 26, 2004 at 3:17 pm
Try sp_delete_database_backuphistory 'database name' which will delete the backup history for that database. It may be faster than working with dates, but it will get rid of all history, so...
March 26, 2004 at 2:58 pm
Re: Checking the transaction log for when tranactions got committed.... Hm perhaps with a third party tool like ApexSQL log...
March 26, 2004 at 10:13 am
MS Excel has a set of get external data screens. So does Visual Studio.NET. What 3rd part tools have you looked at so we don't suggest one you've rejected?
March 26, 2004 at 9:13 am
sp_delete_backuphistory will take a while to trim the fat if there is a lot to do. If you run this every day (I just add it to the end of...
March 26, 2004 at 8:46 am
Shot in the dark... Was this SQL Server recently starting up? SQL Server performs an automatic recovery at startup to write committed transactions into the database. This automatic recovery records...
March 26, 2004 at 8:40 am
You don't want to restore system tables from a standard install to an enterprise install. For example MSDB standard edition doesn't contain log shipping tables found in Enterprise edition. Once you upgrade take...
March 26, 2004 at 8:29 am
Perhaps changing the temp tables to tables variables would help as well since declaring table variables is not considered DML and my guess is therefore no implied GO statement.
By the...
March 26, 2004 at 8:06 am
Viewing 15 posts - 391 through 405 (of 597 total)