Forum Replies Created

Viewing 15 posts - 1,681 through 1,695 (of 2,043 total)

  • RE: Sequence Numbers

    Surely possible with a cursor.

    Will think about a set based solution.

  • RE: Job Problem

    Does sqlagent has sysadmin rights?

    Allows a member of the sysadmin fixed server role or db_owner fixed database role to impersonate another user.

    <IMG style="MARGIN-LEFT: 0em" height=11 alt="" src="mk:@MSITStore

  • RE: Create User on install & password on install

    sp_grantdbaccess grants access to a database

    Use sp_grantlogin to reverse the effects of a previous sp_denylogin that has been executed for a Windows NT user.

    Use sp_addlogin to allow a SQL Server...

  • RE: Work table..

    Work Table? You mean a table to dump all your information in for further processing?

  • RE: Timestamp Showing As

    With which tool you see <binary> (EM?)

    I see the different values with query analyzer.

     

  • RE: How to secure the SQL table''''s content?

    Since sa is a systemadministrator, they have full access (no permission checking).

    If normal accounts are used you can make views

    CREATE VIEW ABC AS

    SELECT ... FROM ...

    WHERE entry.USER_ID= SUSER_SID

    WITH...

  • RE: Schema binding

    SCHEMABINDING:

    Binds the view to the schema. When SCHEMABINDING is specified, the select_statement must include the two-part names (owner.object) of tables, views, or user-defined functions referenced.

    Views or tables...

  • RE: Trace Flag 2861

    Any scheduled jobs?

    If you know it happens every hour, you could set up a trace for it in sql profiler.

  • RE: creating a windows authentication DSN

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbcsql/od_odbc_c_99yd.asp

     

    lngResult = SQLConfigDataSource(0, _

                                               ODBC_ADD_SYS_DSN, _

                                               "SQL Server", _

                                               "DSN=" & JDS_DSN_name & Chr(0) & _

                                               "Server=" & JDS_Server_name & Chr(0) & _

                                               "Database=SvCvMarketing" & Chr(0) & _

                                               "UseProcForPrepare=Yes"...

  • RE: Query conversion issue.

    there is a setting ANSI_NULLS ON/OFF

    ANSI_NULLS ON -> left join (NULL=NULL) =false

    ANSI_NULLS OFF -> left join (NULL=NULL) =TRUE

  • RE: this might be a very simple question, but it''''s really baffling me

    RTRIM('ABCD ') strips off trailing whitespace

  • RE: Trace Flag 2861

    http://www.microsoft.com/technet/abouttn/subscriptions/flash/tips/tips_042705.mspx

    Trace flag 2861 causes SQL Server to cache query plans for trivial queries that have a cost of zero or close to zero. SQL Server typically won't cache plans...

  • RE: Restricting rows in WHERE or in ON?

    The restrict in the JOIN is preferred since it limits the amount of rows the where clause has to process. (like a virtual table)

    They do give the same results at...

  • RE: Question for Update Triggers

    This is quite simple using the INSERTED (containing updated values) AND DELETED table (containing deleted values)

    CREATE TRIGGER TR_UPDATE_ART_INSERT_TO on ARTTABLE

    FOR UPDATE /*only updates*/

    AS

    SET NOCOUNT ON /*reduce unnecessary roundtrip to client*/

    INSERT INTO...

  • RE: Stored Procedure

    SELECT CLASS_ROOM FROM CLASS MyCLASSES WHERE

    EXISTS /*return every matching classroom if there is a related class that fullfills the condition; added CM.CLASS_ID=MyCLASSES.CLASS_ID*/

    (

    SELECT CLASS_ID FROM CLASS_MODULE CM WHERE YEAR = @YEAR AND...

Viewing 15 posts - 1,681 through 1,695 (of 2,043 total)