Viewing 15 posts - 5,866 through 5,880 (of 13,468 total)
Roger Lindsay (3/1/2012)
There is no need to restart is single user mode, you run a scheduled task as nt authority\system.http://sev17.com/2011/10/gaining-sql-server-sysadmin-access/%5B/url%5D
I had not seen that technique, Roger.
Thanks for the link!
March 1, 2012 at 6:50 am
your issue is integer division;
in sql server, if you divide an integer by an integer, you get an integer...bot a decimal that you might get in a programming language.
so 99/100...
February 29, 2012 at 8:05 pm
you can test whether the synonym exists in the proc and bailout if necessary.
Create Procedure DoStuff
AS
BEGIN
IF (SELECT OBJECT_ID('REMOTETABLE','SN')) IS NULL
RAISERROR('Required Synonym [REMOTETABLE] does not exist!',16,1)
--do stuff
END --PROC
February 29, 2012 at 3:12 pm
how many objects are being accessed via the linked server?
you might consider creating synonyms for the objects. if there is a zillion of them, or dynamic SQL is being used,t...
February 29, 2012 at 2:51 pm
sunny.tjk (2/29/2012)
Thanks Lowell.Please correct me if I'm wrong--Isn't 32767 the databaseid of resource database?
I'm sorry, i'm completely uninformed on that and i have no idea .
in my 2008 dev version,...
February 29, 2012 at 11:12 am
i added your filter to a trace and used my tool to script it back out;
--#################################################################################################
--begin filter definitions
--#################################################################################################
-- WHERE 1 = 1
exec sp_trace_setfilter @traceidout,3,0,1,32767 -- AND...
February 29, 2012 at 9:45 am
Ben you can grant that special user like this:
GRANT EXECUTE ON sprocRefresh TO SPECIALUSER
do not grant anything else.
as long as sprocClear or sprocPopulate are owned by the same schema(ie they...
February 29, 2012 at 8:34 am
checkai (2/29/2012)
Thanks, will this allow them to read SP definitions?
yep, the grant here does it:
--allow the users to see view proc and function definitions
Grant View Definition ON SCHEMA::[dbo] To [MyDevelopers]
you...
February 29, 2012 at 7:48 am
checkai (2/29/2012)
February 29, 2012 at 7:35 am
look in the powershell forum here on SSC;
there's a large number of posts showing how to script out a whole database; then with powershell you can schedule it to...
February 29, 2012 at 7:32 am
Cadavre (2/29/2012)
Lowell (2/29/2012)
what's the trick?
i've only done it manually so far, nd it's a...
February 29, 2012 at 5:55 am
Cadavre (2/29/2012)
{snip}
IF EXISTS (SELECT *FROM sys.assemblies asms WHERE asms.NAME = N'dateWeekValidation' AND is_user_defined = 1)
DROP ASSEMBLY [dateWeekValidation];
CREATE ASSEMBLY [dateWeekValidation] AUTHORIZATION [dbo]
FROM
0x4D5A90000300000004000000FFFF0000B{snip}
Cadavre my friend how do you script your...
February 29, 2012 at 5:29 am
Vahid.Ch (2/29/2012)
yes.
that query is selecting everything from the WebProxyLog table, no WHERE statement to tune;
it takes any network time to return 630 meg of data.
do you need to return all...
February 29, 2012 at 4:57 am
Gianluca Sartori (2/28/2012)
ram_kamboz2k7 (2/28/2012)
if bigint is an issue, can nvarchar be used for the telephone number?Thanks
varchar would be a better choice. I highly doubt you will ever need to...
February 28, 2012 at 11:42 am
Viewing 15 posts - 5,866 through 5,880 (of 13,468 total)