Viewing 15 posts - 211 through 225 (of 327 total)
One method I've seen is to have a column in each table that holds the name/id of the user making the update/insert. Then that column will be available to you in the trigger.
Of...
May 3, 2005 at 12:46 pm
Yes, you can do this with backup and restore. Backup database_1 then in enterprise manager right click database_2/all tasks/restore.
In the restore dialog you'll see a drop down with the option to...
May 1, 2005 at 10:29 am
I'm on sql2k and its hard to find. Do a serach on SELECT and in the topics listed you should see Parts of a SELECT Statement. Within this...
April 29, 2005 at 3:33 pm
From Books Online:
ORDER BY order_list [ ASC | DESC ]
The ORDER BY clause defines the order in which the rows in the result set are sorted. order_list specifies the...
April 29, 2005 at 2:53 pm
Paul,
If you are still having a problem then please post the statement you are trying and the error message you are getting.
ron
April 29, 2005 at 12:04 pm
Of course if the coulmn is nullable then you would need something like:
Select custId, lName, fName from dbo.Customers
where CanceledOrder <> 1
OR CanceledOrder is NUll
April 29, 2005 at 11:38 am
Edited to note the converion to Exclusive Lock:
UPDLOCK will not help in the situation presented by Chris. UPDLOCK will allow SELECT statements (not requiring UPDLOCK or HOLDLOCK) by other...
April 28, 2005 at 5:55 pm
By default you will not be able to select rows that are being inserted/modified until the transaction completes. Just put all modification statements between a BEGIN TRANSACTION and a...
April 28, 2005 at 3:09 pm
Gerry,
You might be better off starting a new thread that kind of just asks for a solution to your performance/locking problem as this thread seems to be more focused on...
April 28, 2005 at 10:08 am
...Question: quite a few tables in those queries are lookup tables, rarely modified. Would it help to use WITH (NOLOCK) for these tables.
I'm not sure but my guess is it would...
April 28, 2005 at 9:10 am
... its better to have alternates like indexing some columns so that data can be fetched faster.
I think Kishore has a good point. Maybe the better solution is retry to...
April 28, 2005 at 8:06 am
For lots of great info on this and more check out Frank Kalis' excellent article on SQl Server dates at
http://www.sql-server-performance.com/fk_datetime.asp
April 27, 2005 at 7:35 pm
Here's another option (with obvious drawbacks).
READPAST Skip locked rows. This option causes a transaction to skip rows locked by other transactions that would ordinarily appear in the result set,...
April 27, 2005 at 2:47 pm
From Books Online
NOLOCK Do not issue shared locks and do not honor exclusive locks. When this option is in effect, it is possible to read an uncommitted transaction or...
April 27, 2005 at 2:13 pm
Yes! From Books online.
Specifies the tables, views, derived tables, and joined tables used in DELETE, SELECT, and UPDATE statements.
[ FROM { < table_source > } [ ,...n ]...
April 26, 2005 at 2:30 pm
Viewing 15 posts - 211 through 225 (of 327 total)