Viewing 15 posts - 616 through 630 (of 1,109 total)
INSERT INTO schedule
SELECT class_id
, class_dte
...
November 22, 2007 at 6:05 am
Mark Green (11/22/2007)
No there isn't a need to use ntext. It just set that format when I copied it in.
In this case, i.e. if you have control over what...
November 22, 2007 at 5:59 am
Using substring is one solution, you could of course do a double cast, and use the datetime functions then:
CAST(CAST(data AS VARCHAR(20)) AS datetime)
Out of curiosity, is there really a need...
November 22, 2007 at 5:53 am
Anchelin (11/20/2007)
Hi AllI just want to know if one of you have a script that shows which table belongs to which filegroup?
Thanks in advance
A
On 2000:
SELECT USER_NAME(o.uid) AS owner
...
November 20, 2007 at 4:17 am
ckmoied (11/20/2007)
Thanks Ramesh/Andras Your solutions worked fine, but they are only good for the first row of the table, What about the other rows. All the records are not null.
You...
November 20, 2007 at 3:20 am
you could cast the int to a varchar (since it is an email it will be textual anyway, and replace nulls with say ''
Example:
select coalesce(cast(intcolumn as varchar(10)),'') from mytable
Regards,
...
November 20, 2007 at 2:38 am
A simple solution (may not be the best though):
SELECT a.Policy.query('data(./Roles/Role/Name)')
, a.Policy.query('data(./GroupUserName)')
FROM xmlTable CROSS APPLY x.nodes('//Policy') AS a(Policy)
To set it up (for others who would like to play):
create...
November 19, 2007 at 9:21 am
Could you please repost your question and escape the < with & lt;
XML can get filtered out from posts if they are not escaped 🙁
Regards,
Andras
November 19, 2007 at 8:26 am
mick burden (11/19/2007)
update set field1 = 'test'...
November 19, 2007 at 8:14 am
You could also make the (left([First name],1)+left(surname,1)) expression a computed column.
Regards,
Andras
November 19, 2007 at 7:32 am
ritesh (11/19/2007)
eg. Bob Ryder...
November 19, 2007 at 7:30 am
Chrisb (11/19/2007)
November 19, 2007 at 5:27 am
Books online has a good example: http://technet.microsoft.com/en-us/library/ms179331.aspx
Regards,
Andras
November 19, 2007 at 5:17 am
Also, isn't the information your query returns the page size? In which case it is 8192 in 7, 2000 and 2005. Since 7 is the earliest compatibility mode you can...
November 19, 2007 at 5:10 am
Just a note that this table is still available in 2005, so your query seems to work.
Regards,
Andras
November 19, 2007 at 5:00 am
Viewing 15 posts - 616 through 630 (of 1,109 total)