Viewing 15 posts - 1,141 through 1,155 (of 2,894 total)
Actually, it is impossible to convert GUID into numeric in T-SQL.
The largest exact numeric data type in SQL Server has maximum precision of 38.
To convert GUID you need 39...
September 25, 2012 at 4:30 am
Lynn Pettis (9/18/2012)
Jeff Moden (9/18/2012)
You could also just use an IDENTITY column starting with 1 million to start with nice, simple 6 digit numbers.
If you start with a million it...
September 25, 2012 at 4:05 am
There are two T-SQL features which support limited regular expression functionality:
LIKE operator and PATINDEX function.
Depends of what you really need it for.
Note, the more complicated operation involved (eg. pattern...
September 25, 2012 at 3:57 am
I'm glad to help, but make sure you understand how it's working. Otherwise you may have a trouble when someone ask you to explain it...
September 21, 2012 at 12:57 pm
Roland Alexander STL (9/21/2012)
GilaMonster (9/21/2012)
Roland Alexander STL (9/21/2012)
Which is the point of using local variables, since it will force a new plan each time the query is run.Errr... really?
Oh,...
September 21, 2012 at 9:51 am
Sean Lange (9/21/2012)
September 21, 2012 at 9:25 am
Michael Valentine Jones (9/21/2012)
kingdonshel (9/21/2012)
September 21, 2012 at 8:59 am
CREATE FUNCTION dbo.f_OhMyGod (@str varchar(100), @pattern varchar(100)) RETURNS VARCHAR(100)
WITH SCHEMABINDING
AS
BEGIN
SET @pattern = '%' + REPLACE(REVERSE(LEFT(@pattern, LEN(@pattern) - 2)),')n(',')[0-9]%(')
SET @str =...
September 21, 2012 at 8:39 am
Ok, this kind of work is not for T-SQL to do.
You will be best to create CLR function for this. Your IndexKey is not really a Key, but a pattern....
September 21, 2012 at 8:14 am
dwain.c (9/21/2012)
Eugene Elutin (9/21/2012)
Will do the same, but it's to obvious...
I think the harder question would be: How to return 4 without using number in SELECT,
finding SELECT LEN($),...
September 21, 2012 at 7:30 am
SELECT COS($)
Will do the same, but it's to obvious...
I think the harder question would be: How to return 4 without using number in SELECT,
finding SELECT LEN($), would be a...
September 21, 2012 at 7:01 am
erics44 (9/21/2012)
Eugene Elutin (9/21/2012)
you and Ayn Rand are mistaken
Of course we are!
it's definately giving mixed messages
Just allow the option that it was intentional...
Everyone can hurt a poet :crying:
of course it...
September 21, 2012 at 6:45 am
Greg Snidow (9/21/2012)
Eugene Elutin (9/21/2012)
BTW, COBOL is still in use across wide range of industries which offer sometimes very lucrative positions and contracts...
Yes, the main application at my company is...
September 21, 2012 at 6:42 am
ssskumar4u (9/21/2012)
Hi,I am expecting a generic solution so that even if the attributes change,it should work
Hi,
And I am expecting you to read and follow forum "how to post questions" guide....
September 21, 2012 at 5:56 am
you and Ayn Rand are mistaken
Of course we are!
it's definately giving mixed messages
Just allow the option that it was intentional...
Everyone can hurt a poet :crying:
September 21, 2012 at 5:49 am
Viewing 15 posts - 1,141 through 1,155 (of 2,894 total)