Viewing 15 posts - 181 through 195 (of 508 total)
My 2 cents. I find it easier to read column aliases with AS - i.e. Column1 AS NewColumnName. However, for some reason, I find table aliases easier to...
June 21, 2011 at 12:27 pm
CELKO (6/21/2011)
June 21, 2011 at 11:27 am
Your Name Here (6/21/2011)
Re: splitting a string to a table variable "array" - give this a try:
DECLARE @values TABLE (value VARCHAR(10))
DECLARE @xml AS XML,@str AS VARCHAR(100),@delimiter AS VARCHAR(10)
SET...
June 21, 2011 at 11:13 am
TheSQLGuru (6/21/2011)
June 21, 2011 at 11:11 am
Sarus-127369 (6/21/2011)
too keep it simple whith less code (but only for short in-lists)Declare @inStr varchar(100)
Set @inStr = '1,2,4,6'
select * from testtable
where ','+@inStr+',' like '%,'+cast(column as varchar)+',%'
Saurus,
I've used that type...
June 21, 2011 at 11:07 am
irozenberg (6/20/2011)
Todd, thank you for article.Did you try UDF that return a table?
Cheers
The Delimited8KSplit is a UDF that returns a table. The last example bypasses the creation of...
June 21, 2011 at 11:05 am
Unless you have case sensitive collation for the database, the first thing SQL Server does on a string compare is convert both sides to upper case, then it compares the...
June 16, 2011 at 1:02 pm
TheSQLGuru (6/16/2011)
June 16, 2011 at 12:26 pm
Jeff Moden (6/14/2011)
June 16, 2011 at 11:46 am
krishusavalia (6/7/2011)
I am new into performance issue.I can post the Query or execution plan for my query which i need to improve performance.
I am using SQL server 2008. I...
June 14, 2011 at 11:24 am
Jeff Moden (6/12/2011)
allmhuran (6/12/2011)
June 13, 2011 at 11:59 am
Todd,
Messing with proprietary apps like this is probably asking for more trouble than it's worth. I've had to do it and I've found it's usually easier and more sound...
June 10, 2011 at 11:03 am
digdave7 (6/3/2011)
June 9, 2011 at 11:07 am
sgambale (6/6/2011)
I have statistics with all the referenced columns as the leading column in the statistic...
June 7, 2011 at 12:39 pm
sqldba_icon (6/6/2011)
sELECT Row_number()...
June 7, 2011 at 11:33 am
Viewing 15 posts - 181 through 195 (of 508 total)