Click here to Skip to main content
15,902,939 members
Home / Discussions / Database
   

Database

 
GeneralRe: SELECT ... GROUP BY Error Pin
Chris Meech26-Oct-11 5:14
Chris Meech26-Oct-11 5:14 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 5:29
MikeDhaan26-Oct-11 5:29 
GeneralRe: SELECT ... GROUP BY Error Pin
Mycroft Holmes26-Oct-11 14:01
professionalMycroft Holmes26-Oct-11 14:01 
GeneralRe: SELECT ... GROUP BY Error Pin
Jörgen Andersson26-Oct-11 23:56
professionalJörgen Andersson26-Oct-11 23:56 
AnswerRe: SELECT ... GROUP BY Error Pin
purnananda behera7-Nov-11 19:10
purnananda behera7-Nov-11 19:10 
Questionrestore mysql database from [Program Files] Pin
Jassim Rahma24-Oct-11 3:48
Jassim Rahma24-Oct-11 3:48 
AnswerRe: restore mysql database from [Program Files] Pin
Eddy Vluggen24-Oct-11 8:39
professionalEddy Vluggen24-Oct-11 8:39 
GeneralRe: restore mysql database from [Program Files] Pin
Jassim Rahma28-Oct-11 15:03
Jassim Rahma28-Oct-11 15:03 
GeneralRe: restore mysql database from [Program Files] Pin
Jassim Rahma28-Oct-11 15:05
Jassim Rahma28-Oct-11 15:05 
AnswerRe: restore mysql database from [Program Files] Pin
Eddy Vluggen29-Oct-11 2:06
professionalEddy Vluggen29-Oct-11 2:06 
GeneralRe: restore mysql database from [Program Files] Pin
Jassim Rahma29-Oct-11 9:04
Jassim Rahma29-Oct-11 9:04 
QuestionStored procedure query Pin
mehrdadov23-Oct-11 23:20
mehrdadov23-Oct-11 23:20 
AnswerRe: Stored procedure query Pin
Blue_Boy24-Oct-11 4:25
Blue_Boy24-Oct-11 4:25 
AnswerRe: Stored procedure query Pin
Eddy Vluggen24-Oct-11 8:40
professionalEddy Vluggen24-Oct-11 8:40 
AnswerRe: Stored procedure query Pin
jschell24-Oct-11 8:44
jschell24-Oct-11 8:44 
QuestionRemove empty spaces in a String in TSQL Pin
Vimalsoft(Pty) Ltd20-Oct-11 2:08
professionalVimalsoft(Pty) Ltd20-Oct-11 2:08 
AnswerRe: Remove empty spaces in a String in TSQL Pin
Blue_Boy20-Oct-11 2:15
Blue_Boy20-Oct-11 2:15 
GeneralRe: Remove empty spaces in a String in TSQL Pin
Vimalsoft(Pty) Ltd20-Oct-11 2:36
professionalVimalsoft(Pty) Ltd20-Oct-11 2:36 
GeneralRe: Remove empty spaces in a String in TSQL Pin
Blue_Boy20-Oct-11 2:43
Blue_Boy20-Oct-11 2:43 
GeneralRe: Remove empty spaces in a String in TSQL Pin
PIEBALDconsult20-Oct-11 4:28
mvePIEBALDconsult20-Oct-11 4:28 
AnswerRe: Remove empty spaces in a String in TSQL Pin
PIEBALDconsult20-Oct-11 2:40
mvePIEBALDconsult20-Oct-11 2:40 
AnswerRe: Remove empty spaces in a String in TSQL Pin
RobLazarus31-Oct-11 21:29
RobLazarus31-Oct-11 21:29 
Here's a generic example:

SQL
create table t (s sysname)
insert into t select 'this     is the reason                         that I did this.               '

	-- convert tabs to spaces
	update	t set s = replace(s, '	',' ')
	where	charindex('	', s) > 0

	-- now do the work.
	while 1=1
	begin
		update t
		set		s = substring(s, 1, charindex('  ', s, 1)-1) + ' ' + ltrim(substring(s,charindex('  ', s, 1), 8000))
		where	charindex('  ', s, 1) > 0

		if @@rowcount = 0
			break
	end

	select	s
	from	t

QuestionHow Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright19-Oct-11 19:21
professionalRoger Wright19-Oct-11 19:21 
AnswerRe: How Much Space Is Wasted In Unused Fields In SQL Server? PinPopular
Mycroft Holmes19-Oct-11 20:17
professionalMycroft Holmes19-Oct-11 20:17 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Chris Meech20-Oct-11 4:01
Chris Meech20-Oct-11 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.