Viewing 15 posts - 10,081 through 10,095 (of 18,926 total)
Well that is another problem altogether. You need to figure out the normal max required size of temdb at any given time of the week. Then you need to make sure...
March 6, 2007 at 8:16 am
You can't drop a temp table from someone else connection like that.
The only options you have all have one thing in common : kill all active connections on the server. ...
March 6, 2007 at 7:58 am
NP.
Also you'll have tokeep in mind that a single quote in the user name will break the query. To avoid this situation you have 2 options
1 - use replace around...
March 6, 2007 at 7:56 am
Why would you want to do that? Those tables will be automatically destroyed once the connection closes (or gets reassinged in the connection spool).
Unless you have a very serious problem...
March 6, 2007 at 7:43 am
Thanx Jeff. The only part I'm not certain about is deadlocks. Can you confirm that it is safe on that end?
March 6, 2007 at 5:23 am
I've seen many definitions of produtction DBAs. I think that the best solution for you would be to ask your company what they will ask of you in the near...
March 5, 2007 at 2:31 pm
This may need some work on the transaction part but here's the global idea :
begin transaction
update bt set spid = @@spid FROM dbo.baseTable BT inner join (SELECT TOP 10 id...
March 5, 2007 at 2:26 pm
NP. If you still have problems, you'll have to post the entire procedure so we may have a better understanding of what going on.
Good luck with that project.
March 5, 2007 at 7:45 am
It's only better if it works
.
Try changing the code to table variables instead. Make sure you test first to see if you have...
March 5, 2007 at 7:34 am
Are those global temp tables or are they created on the fly and destroyed after each execution.
March 5, 2007 at 7:25 am
U need to surround the username text with quotes in the query. Or else the server will think you want to use the Zarandell column... which obviously doesn't exists in...
March 5, 2007 at 7:21 am
Another solution is to not use the function at all. I know they are usefull for code reuse but in this case, the code is quite easy to remember. Also...
March 5, 2007 at 7:19 am
What are the 2 users running on the server??
Is there any other task running (index defrag, databaseshrink, profiler, anti-virus)?
March 4, 2007 at 6:04 am
What's I see for the moment would be to bite the bullet and let it run for an hour while it inserts to a table once. Then I'd build a...
March 4, 2007 at 6:03 am
USE SSC
GO
IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Name = 'Demo' AND XType = 'U' AND USER_NAME(uid) = 'dbo')
DROP TABLE dbo.Demo
GO
CREATE TABLE dbo.Demo
(
a INT NOT NULL,
B INT NOT NULL,
c VARCHAR(20)...
March 3, 2007 at 4:32 pm
Viewing 15 posts - 10,081 through 10,095 (of 18,926 total)