Viewing 15 posts - 2,296 through 2,310 (of 2,458 total)
DBA12345 (2/5/2013)
Thanks alot...I appreciate your help
NP
February 5, 2013 at 1:49 pm
This should do the trick:
--Setup
IF OBJECT_ID('tempdb..#t1') IS NOT NULL
DROP TABLE #t1;
IF OBJECT_ID('tempdb..#t2') IS NOT NULL
DROP TABLE #t2;
CREATE TABLE #t1 ([Server] varchar(10) primary key,
[Name] varchar(10) NOT NULL,
...
February 5, 2013 at 1:11 pm
Jeff Moden (1/10/2013)
Alan.B (1/10/2013)
This morning before work for example, after a lot of effort, I finally figured out how to get the Levenshtein Edit Distance between 2 strings without a...
January 14, 2013 at 9:36 am
Greg Snidow (1/11/2013)
Alan.B
I came up with this:
-- strings to compare
DECLARE@s1 varchar(8000)='diner',
@s2 varchar(8000)='dinerr';
DECLARE @ld int=ABS(LEN(@s1)-LEN(@s2));
IF ((@s1=@s2) OR ((ISNULL(LEN(@s1)*LEN(@s2),0)=0))) BEGIN GOTO LD END;
DECLARE@minlen int=CASE WHEN LEN(@s1)>LEN(@s2) THEN LEN(@s2) ELSE LEN(@s1) END;
;WITH...
January 14, 2013 at 9:11 am
soni321 (1/10/2013)
January 10, 2013 at 3:07 pm
Based on what you are saying I think you mean SP1 (Service Pack1)... And is this SQL Server 2012 Express?
You may just need to run Service Pack 1.
What...
January 10, 2013 at 2:57 pm
Sean Lange (1/10/2013)
Alan.B (1/10/2013)
January 10, 2013 at 1:32 pm
Jeff Moden (1/9/2013)
Alan.B (1/9/2013)
AndrewSQLDBA (1/9/2013)
Its worth noting that the following is sargable.LIKE '%abc%'
Did you mean "NOT" SARGable because it sure doesn't look SARGable from here. 😉 And,...
January 10, 2013 at 12:19 pm
dwain.c (1/9/2013)
I would recommend, however that you change the way you construct your asciichar table:
;WITH asciichar(n, c) AS (
SELECT n=64+number, CHAR(64+number)
FROM [master].dbo.spt_values...
January 10, 2013 at 11:59 am
My appologies. In my last post I misread your question. Hopefully what GSquared posted helped.
January 10, 2013 at 10:51 am
Danzz (1/9/2013)
Thanks for all your help..1)I am not looking databases_files in the Out put.
Example:
DBA_Databasename_Data
DBA_Databasename_Log
2)I am looking for "Use Database" in the our put.
Example:
USE DBA_Databasename
AJB:
3) I used sys.database_files in...
January 9, 2013 at 3:51 pm
AndrewSQLDBA (1/9/2013)
I hope that everyone is having a very good day.
I need to write a query to select row counts, but this seems like a lot of scanning of...
January 9, 2013 at 3:44 pm
Danzz (1/9/2013)
I tried couple of ways, It did not work out
create table ##permission_info (id int primary key identity, information varchar(8000))
insert...
January 9, 2013 at 12:44 pm
Jacob Pressures (1/9/2013)
The TVP seems, at least in my head, like an alternative...
January 9, 2013 at 9:59 am
Viewing 15 posts - 2,296 through 2,310 (of 2,458 total)