Forum Replies Created

Viewing 15 posts - 11,176 through 11,190 (of 13,462 total)

  • RE: Set database in single user mode - broke connection

    not sure why you'd want to lock a table up, but I would do it with a transaction.

    one of the HINTs you can use is to exclusively lock a table:

    From...

  • RE: what the decrypt function in Ms Sql Server ?

    interesting;

    i used the default trace and my own DML trace to see what it was doing.

    the code you posted executes and created a stored procedure.,

    the procedure gets encrypted, so...

  • RE: what the decrypt function in Ms Sql Server ?

    was this post just a way to infect a computer by executing code you don't know what it does?

  • RE: outer join problem

    i know once wayne identified it, you got it, but here's an example of what i tested as a result of reading this thread:

    SELECT

    A.NAME,

    STR(CAST(SUM(SIZE)...

  • RE: Best way for DML and DDL Audit

    server side traces using sp_trace_create are low impact and a good way to track recent changes.

    when you create a trace, there is an expectation that you only keep X number...

  • RE: does bank passwords allowed in sql server 2005?

    MS is bringing you kicking and screaming into a more secure password structure. there may be ways around it, but they made it a lot harder to leave systems unsecure.

    here's...

  • RE: Infinity / Nan / #Error in SSRS 2005 Reports

    in my case, i do all my calculations in the SQL, instead of in the report....

    so my SQL would have one more field, that has this for the calculation:

    (A_Rev_TY/B_Rev_TY) /...

  • RE: Re-write Trigger to Stored procedure in SQL Server

    are you going to provide any more information?

    The more detail you give us, the more we can offer suggestions...it looks like your post is just a venting because you...

  • RE: query-insert

    Thanks to kruti's insight, i think i see your problem.

    your datasource makes no sense to anyone, so noone can really help.

    I'm assuming that this is a list of names/family members,...

  • RE: query-insert

    I may be mis-understanding the question, but INSERT is really well explained in Books On Line;

    if the table exists, it simply

    INSERT INTO TABLENAME(columnList)

    select columnlist from someTable

    to create thetable "on...

  • RE: System table to find out RULE definition

    find any column that has been tied to a rule:

    select

    object_name(syscolumns.id) as tablename,

    syscolumns.name as columnname,

    object_name(syscolumns.domain) as RuleName,

    syscomments.TEXT as RuleDefinition

    from syscolumns

    inner...

  • RE: Allowing Non-SA to change schedule

    if you can make them use a stored procedure, you can use EXECUTE AS, so it runs under sa even though they invoke it;

    is it more likely the users just...

  • RE: BETWEEN Operator

    the between looks fine, but the rest of your WHERE statement has me puzzled:

    where delivery_date BETWEEN '04/15/2009' and '04/22/2009'

    and driver = e.emp_cd

    and (driver = 'ATK' or '%' =...

  • RE: SQL UPDATE statement with a view

    glad it worked for you!

    I know i was surprised way back when when i found out views could be updated; I always thought of a view a s read only...

  • RE: SQL UPDATE statement with a view

    lame example, but it all works:

    USE TEMPDB

    CREATE TABLE MyContacts(contactid int identity(1,1) not null primary key,ContactName varchar(30),OTHERFIELD INT)

    insert into MyContacts(ContactName)

    SELECT 'Bugs Bunny' UNION ALL

    SELECT 'Homer Simpson' UNION ALL

    SELECT...

Viewing 15 posts - 11,176 through 11,190 (of 13,462 total)