Viewing 15 posts - 151 through 165 (of 464 total)
I would suggest as follows:
DECLARE @Count int
Select @Count = Count(ColID) from Table1 WHERE ColFlag = 1
if (@Count > 0)
Calls an exe.
April 13, 2009 at 7:56 pm
Kimberly.Hahn (4/8/2009)
Not really. SQL usually wants stats on anything that "might" have benefit. It wants the stats on the data...
April 8, 2009 at 1:36 pm
I'm not sure how much it will help, but you could consider the following -
If the optimizer says that a stat is missing then it would have liked to...
April 8, 2009 at 11:40 am
It also depends on isolation level - assuming that you are using read committed and that the index is selective enough to identify just the records needing an update, then...
April 8, 2009 at 10:56 am
If you are auditing failed logins (which is the default) then you probably have errors in your SQL logs. You can also look at the default trace output in...
April 8, 2009 at 9:29 am
Mirroring is really a process of continually restoring a database from log entries, and as such it shouldn't matter whether the servers are 32bit or 64bit.
However - what are you...
April 7, 2009 at 12:37 pm
It depends on your environment, but if data was generated under Windows you should use
LIKE ('%' + CHAR(13) + CHAR(10) + '%')
April 7, 2009 at 12:21 pm
What kind of steps do you mean - automation? additional means of checking the tables?
Off the top of my head I would suggest looking into the CHECKSUM and CHECKSUM_AGG functions:
http://msdn.microsoft.com/en-us/library/ms189788.aspx
http://msdn.microsoft.com/en-us/library/ms188920.aspx
Note...
March 20, 2009 at 2:54 pm
That screenshot is of the account settings. If you just want to send an email to multiple addresses then type each address on the recipient line in turn separated...
March 20, 2009 at 2:33 pm
There is one other difference based on what you have told us - the primary key will be a unique index. This may be a reason why it is...
March 19, 2009 at 11:58 am
It really depends on whether you need to take distinct backups. If it's feasible to take one backup and then copy it to each location then you save on...
March 19, 2009 at 11:49 am
This is called ownership chaining, here is the BOL link:
http://msdn.microsoft.com/en-us/library/ms188676(SQL.90).aspx
The user has implicit access to the objects (via the procedure only) because the owner of the procedure matches the owner...
March 19, 2009 at 11:40 am
I haven't had to touch Access in about 15 years, so ultimately you should test for yourself. I can say that the trigger is part of an atomic transaction...
March 16, 2009 at 2:05 pm
If you mean instead of deleting each individually, then you have 2 choices -
1) write a script
2) use the Object Explorer Details pane in SSMS to list the...
March 16, 2009 at 11:18 am
As a general rule you should try and backup the log so that you can restore as much data as possible, and not just to the last full/differential backup. ...
March 13, 2009 at 12:41 pm
Viewing 15 posts - 151 through 165 (of 464 total)