Viewing 15 posts - 151 through 165 (of 921 total)
January 30, 2004 at 3:41 pm
Well, I knew you hadn't.
Here's the syntax from BOL:
ALTER TABLE table
{ [ ALTER COLUMN column_name
{ new_data_type [ ( precision [ ,...
January 30, 2004 at 12:44 pm
DECLARE @seconds int
SET @seconds = 423456
SELECT CONVERT(char(8),DATEADD(s,@seconds,0),8)
January 30, 2004 at 11:01 am
Lars--
If you make changes to your design using ALTER TABLE, just save the scripts so you can apply them to all relevant databases.
January 30, 2004 at 10:42 am
I found what really makes a difference with my local Developer Edition is the 7200rpm drive in my new T41p laptop (with 1.5GB RAM).
Off-topic? ...
January 30, 2004 at 8:10 am
Did you bcp data into the table at some point? I believe there was a bug where bulk loading allowed impossible values into datetime columns. An impossible datetime value is...
January 29, 2004 at 10:10 am
Passwords will be case-sensitive if the server (or instance) is created with a case-sensitive collation.
January 28, 2004 at 8:14 am
use tempdb
go
CREATE TABLE Test(
Id int IDENTITY PRIMARY KEY,
Dt datetime)
INSERT Test(Dt) VALUES('20030808')
ALTER TABLE Test ALTER COLUMN Dt varchar(50)
UPDATE Test SET Dt = CONVERT(char(10),CAST(Dt AS datetime),101)
January 28, 2004 at 7:38 am
> select * from test where chkdate between '20040106' and dateadd(s, -1, '20040107')
This might work with smalldatetime values, but it will possibly exclude some datetime values for that date. See my predicates...
January 28, 2004 at 6:50 am
The ANSI schema views work pretty well for this sort of thing...
SELECT Column_Name
FROM Information_Schema.Columns
WHERE Table_Name = 'SnapshotNbsMsMsALL'
ORDER BY Ordinal_Position
January 27, 2004 at 6:52 pm
I guess not everyone's asleep.
There are two good reasons for not using LIKE with temporal values, even though it's recommended in BOL.
January 27, 2004 at 6:14 pm
> Is bit a valid ANSI-SQL type?
No.
January 27, 2004 at 4:03 pm
Try first replacing the doubled bars with something (like your tilde) not used in the data. Then replace the single bars with two. Finally replace the tilde with two bars.
declare @c...
January 27, 2004 at 4:00 pm
Viewing 15 posts - 151 through 165 (of 921 total)