Forum Replies Created

Viewing 15 posts - 16 through 30 (of 51 total)

  • RE: Combining statements with different ranges

    the Troglodytic, procedural solution:

    IF EXISTS (select workstation, date_entered from inventory

    where part_number='ABC' and workstation >= 5)

    ...

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Executing SQL file using SQLCMD command

    By "for each user" I meant: stick this in a single batch file, with a call for each user.

    This would simplify the permission issues Steve pointed out.

    SQLCMD -S[server name] -E...

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Executing SQL file using SQLCMD command

    This works for me (albeit in SQL2005):

    SQLCMD -S[server name] -E -r1 -d[db name] -i" \\[machine]\[drivespec]$\foldername\filename.sql"

    Quick and dirty would be to do this for each user.

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Help:Query slow

    Are there any triggers on that table?

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Summary Page Doesn't Appear

    View Menu - Summary

    or toggle on by F7

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: BOL Syntax Frustration

    Read this:

    http://www.sqlservercentral.com/articles/Books+Online/67607/

    or: search this site for 'BNF'

    or: Google 'BNF' or 'Backus Naur Form'

    Understanding BNF is essential for good info from BOL

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Roll back on procedures

    Try this:

    --============================================================================

    -- For multiple ops in a script, keep a running count of errors.

    -- For any error count over 0, rollback all ops

    BEGIN TRANSACTION T1

    Declare @ErrorCountInt

    SET @ErrorCount = 0

    --

    --OP#1 code...

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: making a primary key

    Why does the client not want an identity column?

    Perhaps the client is a Professor?

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Return a value from a table for use in my SP

    select top 1 @i =

    Convert(int,Replace([ref des],'Vnone',''))+1 AS VSC

    FROM BOMOut_FPM_Fix1

    WHERE BOMOut_FPM_Fix1.[ref des] Like 'vnone%'

    And IsNumeric(Replace([ref des], 'Vnone', '')) = 1

    ORDER BY convert(int,Replace([ref des],'Vnone','')) DESC

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: SQL Server 2005 job log

    SSMS

    -Object Explorer

    --SQL Server Agent

    ---Jobs

    ---RightClik the Job

    -----View History for the Logs

    -----Properties to see/edit the Steps

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: How to get into SQL or network administration? Total newbie needing advice!

    ...SQL...a very simple programming language...

    hmmm...

    :blink:

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: How to get into SQL or network administration? Total newbie needing advice!

    Try your local community colleges for cheap classes in:

    - MS Access to see if you can think like a DBA or DB developer

    - Intro to programming (VB, Java)...

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Alternatives to Stored Procedure

    I think Barry lays out most of what you need:

    structure and discipline

    Structure: Develop a clear,concise, well planned naming convention for your sprocs

    Discipline: Stick to it

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Locks - Blocked Processes

    SSMS-Management-Activity Monitor will dynamically show all processes with blocked/blocking status.

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

  • RE: Who created a new job on my server

    Delete/disable/munge it...see who hollers

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

Viewing 15 posts - 16 through 30 (of 51 total)