Viewing 15 posts - 13,786 through 13,800 (of 14,953 total)
It doesn't matter that multiple users will access the proc at the same time. Temp tables are connection-specific.
So long as your tempdb database has enough room in it (or...
May 8, 2008 at 1:26 pm
riga1966 (5/7/2008)
We don't have "Common" database.Should I create one to store common objects?
That's what I do.
May 8, 2008 at 1:24 pm
UDBNT (5/8/2008)
May 8, 2008 at 9:27 am
If it needs to be unique, why does it need to be random?
Would a sequential (identity) number accomplish what you need?
If it truly needs to be both random and unique,...
May 8, 2008 at 9:21 am
Jeff Moden (5/7/2008)
GSquared (5/7/2008)
Summary: While the CTE works, and is fast by any normal standard, the Numbers version is even faster,...
May 8, 2008 at 8:54 am
If I'm not mistaken, the specifications for the encryption protocol will give you that information.
May 7, 2008 at 2:45 pm
Mahesh Bote (5/5/2008)
...As soon as there is an error, it exists the stored proc and goes to the .net code...
Are you handling errors at front end with Try Catch block?...
May 7, 2008 at 2:42 pm
SQL doesn't let you use variables that way.
What I would do is (a) figure out if a cursor is really needed for this or if it can be replaced with...
May 7, 2008 at 2:38 pm
riga1966 (5/7/2008)
User defined proc in masterso that you can call it from any database.
In this case I don't have to create the same error_handing proc in each database.
Makes sense?
That works.
Personally,...
May 7, 2008 at 2:28 pm
TheSQLGuru (5/7/2008)
...Believe it or not, that wasn't the single worst problem that client had either! :Whistling:
Actually, when I see one totally assinine thing in the server, I assume there's...
May 7, 2008 at 2:18 pm
Zahran (5/7/2008)
Hi GSquaredThis will be run only once in the production.
In that case, indexes are a waste of time. Don't bother with them.
Indexes are mainly useful for data that...
May 7, 2008 at 2:13 pm
Since you're using "convert decimal(3,2)", you're getting an overflow error if the number is higher than 9 in any case. In decimal, the numbers in the parentheses determine how...
May 7, 2008 at 2:11 pm
I read that ghost cleanup is part of the autoshrink process. Do you have autoshrink turned on for this database? If so, turning that off should help your...
May 7, 2008 at 2:06 pm
I'd do the whole thing as a calculated column, instead of updating it.
alter table Table1
add column AuthDate as (
case
when ADate > BDate and ADate > CDate then dateadd(day,...
May 7, 2008 at 1:57 pm
Create the temp table first, then insert into it, instead of creating it as part of the select statement.
May 7, 2008 at 1:51 pm
Viewing 15 posts - 13,786 through 13,800 (of 14,953 total)