Viewing 15 posts - 11,176 through 11,190 (of 13,879 total)
Pulivarthi Sasidhar (8/29/2011)
The CSV file is fixed length with no delimeter, contains rows.
ex:- single row contains
1asdusa1Comp2Elctr3Mech1Engg2Degre
sno,sname,scity,cno,cname,cno,cname,cno,cname,cno,cname,dno,dname,dno,dname,dno,dname
1,asd,usa,1,Comp,2,Elctr,3,Mech,4,Fina,1,Engg,2,Degre
Single row Contains- 3 datasets.
Student (sno,sname) -1 row
Class(cno,cname)- 4 rows
Department(dno,dname)-2 rows
How can i split...
August 29, 2011 at 10:38 am
akl (8/26/2011)
August 26, 2011 at 9:41 am
I assume you've decided against using BACKUP/RESTORE for some reason? That would be the simplest.
August 26, 2011 at 9:12 am
drew.allen (8/26/2011)
WITH Test(TestField) AS (
SELECT 'aaa'
UNION
SELECT 'abc'
UNION
SELECT 'bbb'
UNION
SELECT 'bcd'
UNION
SELECT 'ccc'
UNION
SELECT 'cccccc'
UNION
SELECT 'cccccccccccccccccccccccc'
)
SELECT *
FROM Test
WHERE NOT TestField LIKE '%[^' + Left(TestField,1) + ']%'
It...
August 26, 2011 at 9:02 am
peanuts91 (8/26/2011)
but actually I need to check if all characters in my string are the same without to know the length of my string.
Tell me if I'm not clear...
August 26, 2011 at 8:24 am
peanuts91 (8/26/2011)
In order to clean up some tables in my database I would like to find all records like 'aaaaaaaa' or 'bbbb' or 'ccccc'....'zzzzz'.
Is there any functions existing to...
August 26, 2011 at 8:09 am
John Mitchell-245523 (8/26/2011)
I don't know of any way to change the order in which the derived columns are displayed. However, I can't think of any reason why it would...
August 26, 2011 at 3:05 am
Are you really intending to put millions of rows into a spreadsheet?
May I ask what the business driver is? - there might be a better alternative.
August 25, 2011 at 1:52 am
Amar009 (8/24/2011)
You should check this post.
...and you should check the date of the original posts 🙂
August 24, 2011 at 7:40 am
'Thinking In Sets' is the important phrase.
Non-SQL developers tend to write sub-optimal SQL as a result of their general tendency towards row-by-row processing, something which SQL developers tend to avoid...
August 24, 2011 at 3:48 am
karthikeyan-444867 (8/24/2011)
Declare @id int
select @id = id from emp where eno = 5
can we say it...
August 24, 2011 at 2:16 am
Ninja's_RGR'us (8/22/2011)
Nothing you can do except use order by from outside the view =>
Select Whatever From dbo.View ORDER BY...
August 22, 2011 at 8:51 am
...to change it there as well?
Not 'as well' - just change the config file and leave the BIDS version alone.
August 22, 2011 at 8:26 am
..Please see the farticle at
Got a slight wind problem Jeff? 😀
August 19, 2011 at 9:03 am
As it's required only for a small proportion of results, you could try a UNION
select coalesce(a,b)
from ...
where coalesce(a,b) is not null
union
select [complex expression]
from ...
where coalesce(a,b) is null
August 19, 2011 at 7:36 am
Viewing 15 posts - 11,176 through 11,190 (of 13,879 total)