Viewing 15 posts - 2,266 through 2,280 (of 3,011 total)
This check constraint should work also:
alter table dbo.MyTable
add constraint CHK__MyTable__MyDate_time_is_midnight
check ( MyDate = dateadd(dd,datediff(dd,0,MyDate),0) )
July 28, 2008 at 12:47 pm
I don’t think there is much use for Application roles except for client server applications.
Most of our applications are web based and end-users do not have logins in the database....
July 25, 2008 at 8:41 am
Danster (7/24/2008)
I just like editing data directly in a multi-table view. It is fast, easy, safe (if you're careful) and convenient.
Usually it is to quickly make...
July 24, 2008 at 3:08 pm
It’s not arrogant if you can back it up.
However, there are plenty of people that are arrogant that can’t back it up. An arrogant attitude is often a cover...
July 21, 2008 at 11:27 am
As for why it excludes the trailing spaces, who knows? It is working as documented in SQL Server Books Online:
"Returns the number of characters, rather than the number of...
July 17, 2008 at 8:51 am
The thing that no one ever asks (or answers) when a system is being implemented is “How long do we keep the data?” If you do get an answer,...
July 16, 2008 at 1:16 pm
You might find a data model here that you can use or adapt to your needs:
July 16, 2008 at 12:28 pm
This is a good article on how to avoid SQL Injection, even if you do not use stored procedures.
Always Use Parameters. Even if you don't use Stored Procedures.
http://weblogs.sqlteam.com/jeffs/archive/2006/07/21/10728.aspx
July 16, 2008 at 12:12 pm
This script will give you what you want with SQL Server 7.0, 2000, or 2005. It gets the file information for every database on a server, and gives various...
July 16, 2008 at 10:03 am
maximation (7/15/2008)
1.2.
That's really quite common. It's nothing to worry about.
July 15, 2008 at 11:58 am
Set the database offline before you start the restore. That will prevent users from connecting to it.
use master
alter database MyDatabase set offline with rollback immediate
restore database MyDatabase...
July 15, 2008 at 9:29 am
You might find that it performs better if the server has multiple CPUs. I doubt that it will perform worse.
I would be more concerned about the hosting company. ...
July 15, 2008 at 9:22 am
It is really a dynamic process. You need to look at a number of metrics to understand what is happening.
[SQLServer:Buffer Manager][Page life expectancy]
[SQLServer:Buffer Manager][Page lookups/sec]
[SQLServer:Buffer Manager][Page reads/sec]
[SQLServer:Buffer Manager][Page writes/sec]
It...
July 15, 2008 at 9:11 am
Are you asking how to backup a SQL Server or Exchange Server?
July 15, 2008 at 8:29 am
Viewing 15 posts - 2,266 through 2,280 (of 3,011 total)