Viewing 15 posts - 1 through 15 (of 81 total)
It sounds like you might want to do a few joins...
e.g. (making something random up with a cte, I'm not saying this is good ;)):
declare @t_sample table(
[id] int
,[mnth] nvarchar(50)
,[some_number]...
April 23, 2008 at 2:44 am
It's certainly an interesting situation - I agree that initial development time could be reduced quite considerably, but exposing a database's schema to the world (if that is the intent) rather...
June 7, 2007 at 3:39 am
Hi
I've not looked enough at LINQ yet (though will), so I'm definitely not claiming any expertise, but from what I have seen I would first say that LINQ itself is providing...
June 6, 2007 at 10:39 am
Are you creating the temp table then not dropping it when you are finished?
May 30, 2007 at 4:30 am
Just being lazy and doing a google search...
http://www.google.co.uk/search?hl=en&q=c%23+sql+server+image+asp.net&meta=
The first article (http://www.developerfusion.co.uk/show/4651/) seems to show what you need.
J
May 21, 2007 at 2:19 am
The description of the ROOT directive in BOL seems to imply that you can't add an attribute via that mechanism, but you could try (without using gibberish data obviously
May 21, 2007 at 2:15 am
Something like this?
declare
@t table(id int identity(1,1),...
May 3, 2007 at 1:55 am
I think the distinction between a primary key and a unique index is that a primary key is a logical entity for defining how data may be uniquely referenced in...
May 3, 2007 at 1:43 am
Did you figure out the problem here?
I had a strange query a couple of weeks back on SQL2005 - the query ran fine by itself, but when I added an insert...
March 19, 2007 at 3:28 am
Interesting one - I haven't seen update cursors before, but noticed this article:
http://www.dbforums.com/archive/index.php/t-1103811.html
which indicates that perhaps the table needs a unique index on it for this to work...??
On a...
March 2, 2007 at 3:35 am
Using Terry's code above, I *think* if you're examining entire tables it might help to avoid the subquery:
select p.personid, e
March 1, 2007 at 3:27 am
You could use something like the following - although you said you want to avoid use of temp tables, if the table is quite big and you are using...
February 26, 2007 at 2:50 am
erm...
select convert(varchar(8), dateadd(s, AVG(datediff(s, 0, convert(datetime, WCvideoAmount , 8))), 0), 8)
maybe
..
I think
November 3, 2005 at 9:46 am
Is the 00:00:00 hours/mins/secs? and is the output int meant to be seconds?
If so, you could maybe do something like...
select SUM(datediff(s, 0, convert(datetime, WCvideoAmount , 8))) AS 'Total Video'
ie....
November 3, 2005 at 9:14 am
bol description of OPENXML:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_oa-oz_5c89.asp
OPENXML (@idoc, '/FilterString/node()')
produces a table from the doc, using the xpath provided - this just says that each row is a match for any node under...
October 13, 2005 at 5:14 am
Viewing 15 posts - 1 through 15 (of 81 total)