Viewing 15 posts - 46 through 60 (of 88 total)
What happens if you change select * to specific column names?
March 23, 2005 at 6:35 am
See this for more info...
http://www.sql-server-performance.com/transact_sql.asp
Apparently it will evaluate AND from left to right but Or's are not indicated as exiting. But there appears to be performance issues with OR's...
March 22, 2005 at 10:32 pm
one more suggestion --
SQL Server Query Performance Tuning Distilled
(http://www.curlingstone.com/)
In addition to really good advice - it is well written.
March 20, 2005 at 7:55 am
I use a script that is something like:
select
sum(case when a.field1 <> b.field1 then 1 else 0 end) cntErrfield1,
sum(case when a.field2 <> b.field2 then 1 else 0 end) cntErrfield2,...
from tbl1...
March 20, 2005 at 7:50 am
Dynamic sql:
declare @selField varchar(50), @sql nvarchar(1000)
declare @selTbl varchar(50)
set @selField = 'name'
set @selTbl = 'sysobjects'
set @sql = N'select '+@selfield+' from '+@seltbl
exec sp_executesql @sql
March 18, 2005 at 8:50 am
Yes, thats right. It needs to be a datastream. You can still use bcp but you would need to attach the file to an email to send it - thats what i...
March 16, 2005 at 4:53 pm
I am pretty sure you could use ado but I dont have a lot of experience with it so I am not able to help much beyond that.
If you...
March 15, 2005 at 7:54 pm
use the ordinal position in your case statement. No dynamic sql required.
Set @order = 2
select empid, empname
from employees
order by case @order
when 1 then empid --(or 1)
when 2 then empname
when....end
February 27, 2005 at 10:47 pm
it has to be in the form of a data stream - bcp or ado
see this for suggestions:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=21&messageid=160112
February 27, 2005 at 10:41 pm
There is no rule that you primary key must be an identity field. An int is faster to deal with but if it isnt convenient to use that isnt going...
February 26, 2005 at 2:18 pm
how large SQl Server can be is directly related to the space available on the server. You are not in danger of maxing out SQl but you might be in...
February 26, 2005 at 2:05 pm
its not clear to me how you are trying to do this. If you are still looking for an answer can you please indicate if you are trying to query...
February 26, 2005 at 1:49 pm
Do you enjoy numbers and puzzles? Risk analysts require advanced SQL skills and do pretty well financially. Often you also need a masters but you can do pretty well as a...
February 26, 2005 at 1:43 pm
I needed a separate book for mysql. Luckily the online manual is very good and free to download. you can also buy it in print. So far it has had what...
February 23, 2005 at 7:30 am
SQL server can handle it given appropriate...
hardware configuration
maintainence plan
query and achitect performance optimization
February 21, 2005 at 7:10 am
Viewing 15 posts - 46 through 60 (of 88 total)