Viewing 15 posts - 2,431 through 2,445 (of 9,644 total)
You should use TRY CATCH, but error messages are stored in sys.messages so you can get the description from there. You also need the language to limit the results....
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 18, 2011 at 7:40 am
You might want to look into a 3rd party backup tool like SQLBackup from RedGate, LightSpeed from Quest. There are others.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 18, 2011 at 7:27 am
If I knew what the original question was I might be able to help. If you are replying to someone's reply to an earlier post, you need to make...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 18, 2011 at 7:25 am
Here's a script from Brent Ozar's BLITZ! 60 Minute SQL Server Takeovers presentation.
USE master
GO
SELECT *
FROM master.INFORMATION_SCHEMA.ROUTINES
WHERE OBJECTPROPERTY(OBJECT_ID(ROUTINE_NAME),'ExecIsStartup') = 1
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 18, 2011 at 7:22 am
It doesn't appear you can audit at the column level.
From BOL (http://msdn.microsoft.com/en-us/library/cc280663.aspx):
Considerations
Database-level audit actions do not apply to Columns.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 18, 2011 at 7:14 am
Can you look at and post the VB code?
If they were using parameters in ADO to call the proc there wouldn't be an issue.
Why are you using @@...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:57 pm
SQL Guy 1 (4/15/2011)
First, they do affect the performance. From time to time users get a messages that SQL Server cannot allocate space in tempdb.
Now we are getting somewhere.
Have...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:55 pm
You can query msdb.dbo.sysjobs to get the job id if you know the job name.
SELECT S.job_id FROM msdb.dbo.sysjobs AS S WHERE S.name = 'name'
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:42 pm
I suggest changing this:
SET @count = (SELECT count(*) FROM @temptable)
to
SET @count = @@ROWCOUNT
That way you aren't reading the table variable for no reason.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:35 pm
What are you using to connect?
Are you connecting from the server or from a remote PC?
What is the error message you are getting?
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:29 pm
The online option just reduces blocking locks it does not reduce all resources needed to rebuild an index so there will be a performance hit, but tables with indexes being...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:26 pm
To the best of my knowledge someone has to put a database into single user mode and the user must have ALTER database permissions.
Of course since you are using sa...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 2:07 pm
Sure you should be able to see all the temp tables regardless of connection. The first query I provided will do that. Perhaps you need to be sysadmin...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 1:45 pm
Without seeing the dynamic_pivot procedure I can't give you the solution you probably want. I'm going to agree with Eddie.
If the ID column is int you don't need to...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 1:41 pm
Why do you need to find the table in another connection?
Temp tables are tied to a connection/session, so you can use the same name in each connection without...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
April 15, 2011 at 1:30 pm
Viewing 15 posts - 2,431 through 2,445 (of 9,644 total)