Viewing 15 posts - 16 through 30 (of 50 total)
the Troglodytic, procedural solution:
IF EXISTS (select workstation, date_entered from inventory
where part_number='ABC' and workstation >= 5)
...
January 7, 2010 at 11:46 am
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...
December 23, 2009 at 10:29 am
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.
December 22, 2009 at 12:45 pm
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
September 14, 2009 at 1:13 pm
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...
September 2, 2009 at 4:51 pm
Why does the client not want an identity column?
Perhaps the client is a Professor?
September 1, 2009 at 3:35 pm
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
August 31, 2009 at 6:04 pm
SSMS
-Object Explorer
--SQL Server Agent
---Jobs
---RightClik the Job
-----View History for the Logs
-----Properties to see/edit the Steps
August 28, 2009 at 5:37 pm
...SQL...a very simple programming language...
hmmm...
:blink:
August 26, 2009 at 1:17 pm
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)...
August 26, 2009 at 11:12 am
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
August 24, 2009 at 6:16 pm
SSMS-Management-Activity Monitor will dynamically show all processes with blocked/blocking status.
August 17, 2009 at 12:48 pm
Delete/disable/munge it...see who hollers
August 17, 2009 at 11:37 am
Viewing 15 posts - 16 through 30 (of 50 total)