Viewing 15 posts - 2,311 through 2,325 (of 3,957 total)
SQL Kiwi (11/29/2012)
dwain.c (11/29/2012)
fregatepallada (11/29/2012)
IMHO this task would be better implemented in CLR UDF rather than in pure T-SQL. CLR UDF easily allows to apply REGULAR EXPRESSIONS.
So how about an...
December 24, 2012 at 10:30 pm
We have a new client coming on line next year with a potentially, really high volume SQL 2008 database in which I anticipate many, many performance issues. I think...
December 24, 2012 at 9:04 pm
Jeff Moden (12/20/2012)
SQLJocky (12/20/2012)
ALTER FUNCTION [dbo].[UDF_TrimSpecialCharacter]
(
-- Add the parameters for...
December 24, 2012 at 7:08 pm
Neha05 (12/24/2012)
useful article.
And thank you Neha05 for stopping by, having a read and commenting.
December 24, 2012 at 7:05 pm
Cadavre (12/3/2012)
CREATE TABLE #yourTempTable([MonthName] VARCHAR(9), [Year] INT);WITH CTE(N) AS (SELECT 1 FROM (SELECT 1 UNION ALL SELECT 1)a(N)),
CTE2(N) AS (SELECT 1 FROM CTE x CROSS JOIN CTE y),
CTE3(N) AS (SELECT...
December 24, 2012 at 7:03 pm
GSquared (12/18/2012)
DECLARE @String VARCHAR(8000) = 'ABC12D34E56';
WITH Seeds(Seed)
AS (SELECT ...
December 24, 2012 at 6:46 pm
This can also be done using the PatternSplitCM function described in the fourth article in my signature line (Splitting Strings Based on Patterns).
IF OBJECT_ID(N'tempdb..#T') IS NOT NULL
...
December 24, 2012 at 6:39 pm
Lynn has pointed you at a catch-all query that will work as you have indicated. But you should also read this article SQL in the Wild - Catch All...
December 24, 2012 at 6:25 pm
My first suggestion to you would be to remove the tbl_ from your table names as I find that convention totally annoying. You're not programming C or C# here,...
December 24, 2012 at 6:12 pm
Why not just drop the schema name entirely from the query?
Or query the schema name ahead of time and then conditionally execute the query, either with or without the dbo....
December 24, 2012 at 5:46 pm
+100% (agreement). Merry Christmas Jeff!
December 24, 2012 at 5:35 pm
vinu512 (12/24/2012)
dwain.c (12/24/2012)
vinu512 (12/20/2012)
dwain.c (12/20/2012)
vinu512 (12/20/2012)
dwain.c (12/19/2012)
Since quote is also CHAR(25), you can also do this:CHARINDEX(CHAR(25), string_column) > 0
Single Quote is char(39) Dwain......if I am not wrong. 😉
Looked like a...
December 24, 2012 at 2:38 am
Jeff Moden (12/23/2012)
December 24, 2012 at 1:41 am
vinu512 (12/20/2012)
dwain.c (12/20/2012)
vinu512 (12/20/2012)
dwain.c (12/19/2012)
Since quote is also CHAR(25), you can also do this:CHARINDEX(CHAR(25), string_column) > 0
Single Quote is char(39) Dwain......if I am not wrong. 😉
Looked like a single quote...
December 24, 2012 at 12:52 am
Viewing 15 posts - 2,311 through 2,325 (of 3,957 total)