Viewing 15 posts - 9,826 through 9,840 (of 15,381 total)
There seems to be something a little odd going on. I agree that from what you have posted creating a temp table as a copy seems like complete overkill. Have...
December 14, 2012 at 2:11 pm
I will second Phil on the NOLOCK. That query hint is by no means a go fast pill. It is a get your data quick as long as you don't...
December 14, 2012 at 1:01 pm
No problem. I have been bitten by that one myself. Glad you got it working.
December 14, 2012 at 9:45 am
jonesg 74626 (12/14/2012)
December 14, 2012 at 9:24 am
A quick google search of your message shows that this is very frequently caused by having a bit field in sql that has no default. Do a search for "write...
December 14, 2012 at 9:03 am
jonesg 74626 (12/14/2012)
BaseTable is not what needs to be inserted... The query joins BaseTable to JoinTable, it's the result of this query that needs to be inserted.
So make the query...
December 14, 2012 at 8:55 am
jonesg 74626 (12/14/2012)
Take the query (simplifed):
With BaseTable AS...
December 14, 2012 at 8:37 am
Kumar SQL (12/14/2012)
I have a sql data need to export to xml file; I can get data in xml mode using FOR XML PATH query and results are shown in...
December 14, 2012 at 8:27 am
Nice article. Will keep that one bookmarked to help explain the size issues encountered with heaps.
December 14, 2012 at 7:44 am
You could do it a little easier with some string manipulation.
;with cte (val1, val2, val3)
as
(
select 'asdf', 'qwer', 'rtyu' union all
select 'as.df', 'yt', 'hhg' union all
select 'weret', '99t4.rtkg9', ''
)
select case when...
December 14, 2012 at 7:25 am
dragosgrigs (12/14/2012)
December 14, 2012 at 7:20 am
SQL SERVER ROOKIE (12/13/2012)
I have been told that table A and B are related (2 columns from table A have to be concatenated to form a...
December 13, 2012 at 3:02 pm
There are a few other versions similar to the script above that have been posted around this site repeatedly. The code posted looks like it should work but the poster...
December 13, 2012 at 3:01 pm
SQL SERVER ROOKIE (12/13/2012)
I have been trying to look for a column in a table A for joining it with other table B . I'm not sure...
December 13, 2012 at 2:55 pm
This works for me.
create FUNCTION [dbo].[fn_MyFunction]
(@ID INT)
RETURNS @return_table TABLE
(Col1 int NULL,
Col2 int NULL)
AS begin
--- processing goes here...
INSERT @return_table
...
December 13, 2012 at 12:29 pm
Viewing 15 posts - 9,826 through 9,840 (of 15,381 total)