Viewing 15 posts - 5,866 through 5,880 (of 13,460 total)
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...
Lowell
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...
Lowell
February 29, 2012 at 7:48 am
checkai (2/29/2012)
Lowell
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...
Lowell
February 29, 2012 at 7:32 am
i have this saved in my snippets; not interview questions, but dba responsibilities that you should be intimitely familiar with to make it thru an interview unscathed:
I especially like some...
Lowell
February 29, 2012 at 6:12 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...
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
February 28, 2012 at 11:42 am
Thanks for the input guys!
Updated yet again...same old links but new code.
sp_GetDDLa_Latest.txt (Returns Table)
sp_GetDDL_Latest.txt (Returns varchar(max) )
[/quote]
this version is greatly enhanced;
--scripts any object(table,proc, function,trigger)
--has the nvarchar fix so they...
Lowell
February 28, 2012 at 9:51 am
openrowset or openquery, which is a kind of temporary linked server...
is the question how to do that, or is this a question more along the lines of connectivitiy options?
SELECT *...
Lowell
February 28, 2012 at 7:42 am
Rob-350472 (2/28/2012)
Lowell
February 28, 2012 at 6:31 am
Import rights = which database?
you have to define that a lot better;
if this is for one existing database, you need to add the login as a user to that...
Lowell
February 28, 2012 at 6:26 am
for your specific quesiton, i'd add one more calculated column to make life easy:
--IsWorkDay?
ALTER TABLE TallyCalendar
ADD IsWorkDay AS CASE WHEN IsWorkHoliday = 1 OR DayOfWeek IN('Saturday','Sunday') THEN 0...
Lowell
February 28, 2012 at 6:19 am
yeah a Calendar table is definitely the way to go.
I've posted one here that is one of the better versions out there...it features all the funcitons to generate US Holidays,...
Lowell
February 28, 2012 at 6:10 am
Viewing 15 posts - 5,866 through 5,880 (of 13,460 total)