Forum Replies Created

Viewing 15 posts - 5,866 through 5,880 (of 13,468 total)

  • RE: Windows Auth with no SysAdmin Users! HELP

    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!

  • RE: Creating a Computed column as a percent of two colums

    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...

  • RE: deploy stored procedure from dev/test to production with different linked server names

    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

  • RE: deploy stored procedure from dev/test to production with different linked server names

    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...

  • RE: Server side Trace

    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,...

  • RE: Server side Trace

    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...

  • RE: quick question on securables

    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...

  • RE: Create Role for Developers on Database Server

    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...

  • RE: Create Role for Developers on Database Server

    checkai (2/29/2012)


    I want to create a "Developer" role within SQL 2008. The role should be allowed to read anything, and view the definitions of SPs/Functions, etc. I do not want...

  • RE: Generate Full Script from server to my local system automatic

    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...

  • RE: Query

    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...

  • RE: how to get the data week wise in sql server

    Cadavre (2/29/2012)


    Lowell (2/29/2012)


    Cadavre my friend how do you script your clr to be the binary string like that?

    what's the trick?

    i've only done it manually so far, nd it's a...

  • RE: how to get the data week wise in sql server

    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...

  • RE: select statement takes long time

    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...

  • RE: Trigger or Insert issue: Not generating the correct data

    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...

Viewing 15 posts - 5,866 through 5,880 (of 13,468 total)