Viewing 15 posts - 2,836 through 2,850 (of 5,590 total)
And this is even easier:
declare @test-2 table (MyDate date, MyTime time);
insert into @test-2 values (getdate(), getdate());
select *,
convert(datetime, MyDate) + convert(datetime, MyTime)
...
October 15, 2010 at 8:53 am
Try this out:
declare @test-2 table (MyDate date, MyTime time);
insert into @test-2 values (getdate(), getdate());
select *,
DateAdd(second, DatePart(second, MyTime), DateAdd(minute, DatePart(minute, MyTime), DateAdd(hour, DatePart(hour,...
October 15, 2010 at 8:52 am
Hugo Kornelis (10/15/2010)
Carlo Romagnano (10/15/2010)
I answered TRUE, but reading and re-reading both question and answer, I do not understand why it's false. Please Hugo, help us to understand.
:laugh: I seem...
October 15, 2010 at 8:38 am
cfradenburg (10/15/2010)
William Vach (10/15/2010)
October 15, 2010 at 8:18 am
William Vach (10/15/2010)
October 15, 2010 at 8:16 am
You're welcome. Come on back if you have any more questions!
October 15, 2010 at 8:04 am
steveb. (10/15/2010)
you can use them in debugging , but surely you would remove them before putting them in to production ?
Actually, I create all stored procedures like this:
CREATE...
October 15, 2010 at 7:38 am
LutzM (10/15/2010)
@Wayne: It seems like my answer goes into the "just for exercise" box then...I put a post-it on my screen: ALWAYS CHECK THE FORUM BEFORE TRYING TO ANSWER!
Thanx 😉
I...
October 15, 2010 at 7:31 am
DECLARE @cus TABLE (col1 int, col2 varchar(50));
INSERT INTO @cus
SELECT 1, 'John' UNION ALL
SELECT 2, 'Bob';
SELECT stuff((SELECT ',' + convert(varchar(10), col1) + ',' + col2
...
October 15, 2010 at 7:26 am
jkeys-972541 (10/15/2010)
Works a treat - Although you have explained it, I don't really understand what is going on with your script - I'm sure I could apply this elsewhere....
October 15, 2010 at 7:21 am
One of the tables that you're performing an INNER JOIN with is a 1->Many relationship; thus you are getting values for each row from the table with the Many relationship.
October 15, 2010 at 7:16 am
To get this to always work, there are TWO places to set it:
1. On a registered server, select the "Connection Properties" tab, and set the color.
2. On the Object Explorer,...
October 14, 2010 at 9:13 pm
JC-3113 (10/14/2010)
Hi FolksCan some one tell me the correct syntax for changing the COLLATION to SQL_Latin1_General_Cp1_CS_AS for a column called Name in a table called DTREE
Thanks
Jim
ALTER TABLE DTREE ALTER...
October 14, 2010 at 8:30 pm
You're welcome... but does it do what you need?
October 14, 2010 at 8:25 pm
Viewing 15 posts - 2,836 through 2,850 (of 5,590 total)