Viewing 15 posts - 21,301 through 21,315 (of 22,219 total)
Reading this made me think of my red-neck, hillbilly inbred cousin who said, and I quote, "If they don't have it at Wal Mart, we just don't buy it."
So, assuming...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 10, 2008 at 6:00 am
EXEC @ReturnValue = procname @param='value'
We use this in a pretty common fashion with the added code:
IF @ReturnValue <> 0
BEGIN
--handle the error
It works under the assumption that the procedure is going...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 11:36 am
Normally I'd say "Sure, just create a stored procedure" but since you don't use them... yes, you can do this from a VB app. You simply have to have a...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 10:34 am
I'm assuming a regular backup and restore to a different location are off the table?
You could do a snapshot backup which are nearly instantaneous but to restore from one of...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 8:29 am
I'd be cautious about using the temp tables because it's going to smack tempdb pretty hard. Since this is basically a paging query (give me page 1 (records 1-300), page...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 7:52 am
To get the file names for all 120 log files, you'll need to run some type of query to pull them out of sys.database_files. If you just wanted to truncate...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 7:38 am
Just a bit of a gui glitch. You really can not edit those procedures.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 7:04 am
Be very careful where you install it. In other words, don't do what I did. I'm going to have to reimage my laptop.
You can also go here to use virtual...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 7:00 am
It did irk me to see backups as a myth because we regularly test our backups by restoring for development and as part of training. That's one point that is...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 5:36 am
Oh yeah, code reviews... and beatings... I forgot about the reviews.
One other option that occurred to me (besides more beatings) was that you could set up the security in the...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 10:47 am
Also please don't cross-post since I tried to answer this same question over here:
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 6:23 am
I think inflicting a severe beating prior to requiring him to rewrite his code is the correct response. But assuming you don't want to risk prison time, you could use...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 6:20 am
You really shouldn't cross-post questions.
I gave a possible answer over here: http://www.sqlservercentral.com/Forums/Topic439862-360-1.aspx
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 6:12 am
By "respond in XML" do you mean that your output from the query should be in XML?
If so, look up FOR XML in BOL. That'll get you started.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 6:08 am
You have nesting occuring in triggers on your database. You need to examine the code that is being called and examine the data structure to see what triggers you might...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 8, 2008 at 5:47 am
Viewing 15 posts - 21,301 through 21,315 (of 22,219 total)