Viewing 15 posts - 2,956 through 2,970 (of 3,008 total)
I don’t believe that two wrongs somehow produce a right. I also think it’s condescending to believe that women and minorities need protection. That implies that they just can’t make...
February 15, 2007 at 10:04 pm
It sounds like the design issues with the database are so serious that the ususal source of downtime will be bugs in the application, not hardware, so automatic failover would...
February 15, 2007 at 5:36 pm
Create a table with one row for each date, and left join that to the result of the join of the other two tables.
February 15, 2007 at 12:04 pm
It is almost always better to write a date range selection in this form:
where MyDateColumn >= StartDateTime and MyDateColumn < EndDateTeim
For example, to find all items for the date 2006-01-14.
Select * from MyTable Where MyDateColumn...
February 15, 2007 at 9:57 am
It's not true that PKZip will not handle files above a ceratin size.
This restriction went away with version 5.0 that was released in 2002.
February 15, 2007 at 7:52 am
It is not true that YYYY-MM-DD will work with any dateformat setting, as the following code demonstrates. The only universal format is YYYYMMDD.
set dateformat ydm print 'Convert 20071230' select Date=convert(datetime,'20071230') print 'Convert 2007-12-31' select Date=convert(datetime,'2007-12-31')
Results: Convert...
February 14, 2007 at 4:40 pm
You could also use a temp table to doe this:
create table #temp ( MyTableID int not null primary key clustered, Counter int not null identity(1,1) )
Inset into #temp (MyTableID) select top 100 percent MyTableID from MYTable order by MYTableID
update MYTable set MyCounter = #temp.Counter from MYTable join #temp on MYTable.MYTableID...
February 14, 2007 at 1:02 pm
For every human problem, there is a neat, simple solution; and it is always wrong
- H. L. Mencken, Mencken's Metalaw
February 14, 2007 at 9:43 am
If there something that is preventing you from writing the script that you need?
February 13, 2007 at 1:41 pm
Since that query has a count(*) in it, it will never return more than one row.
February 13, 2007 at 12:44 pm
Why do you have to update the values in the identity column? An ID really should not have any particular meaning, other than to provide a row identifier.
February 13, 2007 at 10:26 am
I have to ask. Why do you have to do this after loading that much data into the table?
February 12, 2007 at 2:19 pm
This is an even more effective way to get everyone out of the database and prevent them from reconnecting.
alter database MyDatabase set offline with rollback immediate February 12, 2007 at 8:08 am
There is no reason why you couldn't use GETDATE() in your INSERT or UPDATE statement.
February 10, 2007 at 11:48 pm
Viewing 15 posts - 2,956 through 2,970 (of 3,008 total)