Viewing 15 posts - 2,776 through 2,790 (of 2,894 total)
create table #studentgrade (studid int, test int, score int)
insert #studentgrade
select 1 , 1, 10
union select 2,1,10
union select 2,2,20
union select 3,1,30
union select 3,2,40
union...
June 14, 2010 at 9:38 am
It is possible but not very good way to do (you need take your select top 1... into brackets):
select
OraclePartNo =
CASE WHEN Oracle_Part_ID IS NOT NULL THEN Oracle_Part_ID
ELSE...
June 14, 2010 at 9:24 am
Scott, I can't see how solving such challenges help to learn SQL in deep. However, they might be good for a starting point plus they do provide some entertainment to...
June 14, 2010 at 9:17 am
Check security configuration of DTC.
If you are looking for alternative way to move data between two servers, try SSIS.
Just in case, could you provide the sample of data you...
June 14, 2010 at 8:38 am
What you mean by "It was working before"?
Do you insert exactly the same data all the time? Exactly the same values?
This probelm might happen due to the data itself....
June 14, 2010 at 7:51 am
1. Check DTC service is running on both servers.
2. Check security configuration of service. It should allow Network DTC
Access and Inbound/Outbound. It can be done in Administrative Tools/Component Services/Computers/My Computer....
June 14, 2010 at 7:37 am
Post whole and clean query you run and errors you get.
June 14, 2010 at 6:30 am
Paul White NZ (6/14/2010)
... SSIS is the natural choice for ETL, rather than temporary tables and T-SQL....
I would say that "SSIS is the Microsoft choice for ETL" 😀
Depending on...
June 14, 2010 at 5:58 am
It could be caused by number of different problems:
1. Check you can connect top the link server by running simple select query.
2. Check the security permissions.
3. Datatype casting. Quite...
June 14, 2010 at 5:33 am
I guess it is simple (taken from msdn):
UNPIVOT < unpivot_clause >
Specifies that the input table is narrowed from multiple columns in column_list into a single column called pivot_column.
I would...
June 14, 2010 at 5:25 am
If you have 12 tables to insert into, you will need to run 12 separate insert queries.
If you want to write minimum of code, you can use loop and dynamic...
June 14, 2010 at 5:19 am
Paul White NZ (6/14/2010)
Eugene Elutin (6/14/2010)
What is a problem with non-SARGable query?
...
I'm not certain that the example of a LIKE clause with a leading-wildcard was a great choice to demonstrate...
June 14, 2010 at 5:11 am
In your case the result is nothing to do with the ROUND function.
Check what value you have in your @vatAmt variable after setting it as you did. Then change its...
June 14, 2010 at 4:37 am
bteraberry (6/11/2010)
scott.pletcher (6/11/2010)
Yes, I took the short-cut, because as *I* pointed out the code will result in full scan...
June 14, 2010 at 4:23 am
Read about ANSI_PADDING. You can insert and store trailing spaces if you really wish to do so. Note, it will not affect the SQL string comparison rules (eg. WHERE and...
June 10, 2010 at 10:24 am
Viewing 15 posts - 2,776 through 2,790 (of 2,894 total)