Viewing 15 posts - 11,521 through 11,535 (of 13,462 total)
well, if it's displayed as html, CRLF do not show up!
html does not respect whitespace... you need {BR} markups to do that!
(replace curly braces with LT/GT..forum doesn't like real HTML...
February 24, 2009 at 6:56 pm
the carriage returns are still there...are you looking at the data in SSMS in grid mode? grid mode hides CrLf.
in SSMS, hit Control T, then re-run your query.
your data should...
February 24, 2009 at 6:46 pm
SQL has a case statement so you can say exactly that...when somestring then ...
only caveat is all the values returned by the case statement must be the same data type.
but...
February 24, 2009 at 6:38 pm
what result are you getting?
create table #test(
testid int identity(1,1) not null primary key,
stuff varchar(30) )
insert into #test
select 'one' union all
select 'two' union all
select 'three' union all
select 'four'
select * from...
February 24, 2009 at 6:31 pm
yeah, you are mistaken. the reseed value assigns the next value, not next+1.
February 24, 2009 at 6:08 pm
your command reset the Id to zero...if you want, you could DBCC CHECKIDENT('sometablename', RESEED,-999); and the identi would start at -999, and work it's way towards zero and beyond
I assume...
February 24, 2009 at 6:02 pm
We had a similar situation...Developers were givien full access because an important project needed to be updated to production as soon as the developers finished a module.
the problem was, because...
February 24, 2009 at 8:06 am
there is no built in, easy way.
the procedure sp_fkeys [YourTableName] will report all the tables that have a FK relationship with your table, but there is no way to get...
February 24, 2009 at 7:45 am
yes it's fixed...my original posts had only single line that stretched a million characters....Steve's all over it apparently.
February 23, 2009 at 12:17 pm
it sounds like if Field 2 is supposded to be a part of field 1, it should either be a calculated column instead, or have a check constraint.
create table #example(exampleId...
February 23, 2009 at 11:40 am
try this from my saved snippets::
it's a proc someone asked for so they coupd capture sp_who2 throughout the day:
CREATE PROCEDURE PR_CAPTURESP_WHO
AS
BEGIN
SET NOCOUNT ON
IF NOT EXISTS (SELECT...
February 23, 2009 at 11:11 am
i would simply create a view, rather than insert into a new table.
the view would always be correct, where the table would need to be updated every time table2 got...
February 23, 2009 at 9:09 am
thre's a difference between "log" files created by some application, and SQL's log files...i think dmc was thinking the log files you are talking about are SQL's.
if you have an...
February 23, 2009 at 9:02 am
if you declare a char(50), and put a single character in it, because of it's datatype it will add 49 spaces on the end.
that's the expected behavior.
Varchar(50), on the other...
February 23, 2009 at 5:31 am
omg Adi great minds think alike. paraphrased but verbatim answers
February 22, 2009 at 6:41 am
Viewing 15 posts - 11,521 through 11,535 (of 13,462 total)