Viewing 15 posts - 91 through 105 (of 346 total)
You'll need to modify your SSMS settings.
Go to Tools -> Options and in the left pane choose SQL Server Object Explorer -> Scripting.
In the scripting options go to the "Object...
October 10, 2010 at 1:34 am
I have gone thru the link you provide and come with an opinion to set my Distribution database property "issyncwithbackup" to TRUE.
Remember that with this option set to true on...
October 9, 2010 at 10:26 am
Follow the steps listed here to change the security settings. You'll need to stop and restart the replication agent jobs for the changes to take effect
October 9, 2010 at 9:02 am
I don't recommend relying on short-circuiting by the query optimizer - i.e. assuming that an "OR" or an "AND" condition is always going to be evaluated left to right. The...
October 9, 2010 at 8:35 am
Looks like you are replicating stored procedures (if I read the log properly) - do the stored procedures have SETUSER in them? Maybe if you don't replicate the particular...
October 7, 2010 at 2:06 pm
From http://support.microsoft.com/kb/231403 - SETUSER permission is given only to members of the sysadmin role; this permission is not transferable.
I don't know why SETUSER is being invoked but it looks like...
October 7, 2010 at 11:28 am
Yep - if you RAISERROR then you don't need to explicitly return a value.
However if you return the error number explicitly in the inner SP from the catch block (using...
October 7, 2010 at 11:12 am
The information is in sysschedules table. You can get this information from the documentation about freq_subday_type and freq_subday_interval in http://msdn.microsoft.com/en-us/library/ms366342.aspx
Edit: ah already answered with a script that I'll save into...
October 7, 2010 at 10:27 am
You've got nested SPs. With the TRY...CATCH block and nested SPs one way to get things to work in your situation is to have the called SP return a status...
October 7, 2010 at 7:28 am
Can you post some sample code of where it isn't working for you? For e.g. how are you trying to access the output parameter, how are you calling this procedure,...
October 7, 2010 at 5:46 am
As far as I know - only the last error message is available in the TRY...CATCH block and there is no way to get the entire error message stack.
October 7, 2010 at 5:30 am
Good catch - re-looked at the original post again and realized that it was an output parameter the OP was talking about...
October 7, 2010 at 5:10 am
Which of the steps did you try? The ones that fail will be SQL 2005 specific 🙂
Bad jokes aside - on SQL 2000 the recommendations that involve sys.dm_exec_connections, sys.sql_modules, sys.dm_sql_referencing_entities...
October 7, 2010 at 3:15 am
Reo (10/6/2010)
October 7, 2010 at 1:10 am
I'd recommend sys.sql_modules - something like
SELECT OBJECT_NAME(object_id) FROM sys.sql_modules WHERE charindex('spNameHere',definition)>0;
The text column in syscomments has a limit of nvarchar(4000) and SPs with definitions greater than that size will be...
October 6, 2010 at 12:04 pm
Viewing 15 posts - 91 through 105 (of 346 total)