Viewing 15 posts - 4,426 through 4,440 (of 5,588 total)
JKSQL (4/14/2010)
SELECT CHARINDEX('AAAAAAAA™BBBBBBBBBBBBBB',Char(153))I can not seem to get the trademark to work in charindex
You're using CharIndex wrong... you reversed the parameters.
Try:
SELECT CHARINDEX(char(153),'AAAAAAAA™BBBBBBBBBBBBBB')
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:49 pm
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
Lynn Pettis (4/14/2010)
To the TinD I am going, fun you all can have.It looks like you can come back now.
And I did. Just waiting now to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:40 pm
Mister Ken, I think the problem with the original query you posted is that you built a derived table, and properly aliased it, but then when you joined it to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:32 pm
CirquedeSQLeil (4/14/2010)
WayneS (4/14/2010)
The Green Triangle is to run in Debug mode, the Red Exclamation Point executes the query....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:22 pm
Tammy,
Glad to be able to help you out. We know you're an "accidental DBA", and most people here will try to help you out.
One reason some people won't help out...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:16 pm
In SSMS, are you pressing the Green Triangle, or the Red Exclamation Point?
The Green Triangle is to run in Debug mode, the Red Exclamation Point executes the query. You want...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:08 pm
TAMMYAUDETTE (4/14/2010)
I have a report I'm building, a report of SKU numbers with sold...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 1:57 pm
bill.brazell (4/14/2010)
As for the output, I'd prefer that it not include the name of the delimiter, only the value. i.e. "Ping" instead...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 1:47 pm
In the next-to-last INSERT, you have TBMLxxx. It also looks like you did a cut-and-paste and have several lines of -- this should return TBM419, when TBM419 is not in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 10:35 am
Did you get the column converted to a datetime data type? If so, that constraint won't help you.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 10:04 am
timotech (4/14/2010)
Hi thanks for your replies. unfortunately the fields has a lot of Null values. there are about 4000 records, how do i fill the nulls
UPDATE myPoorlyDesignedTable
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 5:16 am
Jeff Moden (4/13/2010)
... With that in mind, I have a present for you...
Awesome! thanks - it's been added to my code snippets templates.
And as is typical for code coming...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 5:02 am
Jeff Moden (4/13/2010)
Heh... ya did it to me again, Wayne. 😉
Hey... ya snooze, ya looze. 😉 😀
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 13, 2010 at 9:05 pm
I sure wish that forums could be put into one's briefcase. This one would definitely qualify.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 13, 2010 at 9:02 pm
Bill,
Thanks for the table DDL/DML; however you still haven't specified what the desired output should look like, so I'm making a WAG here. Let us know if this works for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 13, 2010 at 8:45 pm
Viewing 15 posts - 4,426 through 4,440 (of 5,588 total)