Viewing 12 posts - 226 through 237 (of 237 total)
1. Do not forget also about bcp utility.
2. The other option is to use an ODBC driver for text files. This should allow you treat a text file as...
December 18, 2002 at 11:18 am
This could be seen when calling a table or SP on a linked server but the user does not have proper permissions on the linked server. So the linked call...
December 17, 2002 at 6:18 pm
You want to prevent deletes to the table A axcept if it is done from a trigger on table B.
Create a DELETE trigger for table A with this code only:
IF...
December 17, 2002 at 2:11 pm
EM might be looking at the sysindexes.rows to find out the number of rows in the table while QA is running select count(*). Try to run sp_spaceused instead or select...
December 17, 2002 at 2:03 pm
To find out what causes blocking to the process with id 123, execute
sp_who2 123
You'll see BlkBy column with a dot (meaning no blocking) or a number indicating another process ID....
December 17, 2002 at 12:46 pm
We had a similar problem on SQL Server 2000 when calling a third-party DLL from a DTS package in parallel mode. I think this was due to possible memory leaks...
December 17, 2002 at 12:28 pm
If you need it for INSERT only, create a DEFAULT on the timelog table and set it to GETDATE(). You do not need a trigger for it, it is much...
December 17, 2002 at 11:04 am
To clarify, the SELECT INTO will lead to locking of sysobjects in tempdb until you commit your transaction. If you have many users on the system, or if transactions are...
December 17, 2002 at 10:53 am
Dennis,
It is a good idea to check for row count before proceeeding with the trigger but the way to do it is not count(*). Do this at the start of...
December 17, 2002 at 10:45 am
Tom, try NO_LOG option instead of TRUNCATE_ONLY. Help states that those are the same but who knows... The behavior you are experiencing is by design I suspect.
December 16, 2002 at 6:14 pm
Friends, you are all right about problems with UDT. However I always use those and even made it a standard because this is the only reliable way to maintain data...
December 16, 2002 at 5:48 pm
Try this, it is simpler and might be quicker:
DECLARE @WORKPHONE AS VARCHAR(12)
SELECT @WORKPHONE = '1234567890'
SELECT @WORKPHONE = STUFF( STUFF( WORKPHONE, 7, 0, '-' ) , 4, 0, '-' )
SELECT @WORKPHONE...
December 16, 2002 at 5:30 pm
Viewing 12 posts - 226 through 237 (of 237 total)