Viewing 15 posts - 1,831 through 1,845 (of 3,008 total)
There is no problem. SQL Server is working as designed and as documented.
When you cast a zero length string to datatype of datetime, it casts it to the SQL...
April 17, 2009 at 1:15 pm
OK, as long as we are doing useless SQL, I want to add numbers together without using any Arithmetic, Logical, Assignment, String, Bitwise, or Unary Operators or any Mathematical or...
April 17, 2009 at 1:07 pm
select
Material,
sum(case Status when 1 then Qty else 0 end)-
sum(case Status when 0 then Qty else 0 end) as Qty
from
MyTable
group by
Material
order by
Material
April 15, 2009 at 8:58 pm
Bob Abernethy (4/15/2009)
...I'm sure that the vast majority of the decision-makers in these thousands of companies are intelligent profesisonals who went through a valid decision-making process that took into account...
April 15, 2009 at 8:10 pm
Maybe you should learn to use what is available in SQL Server, like REVERSE, instead of spending time duplicating what is already available.
April 15, 2009 at 4:09 pm
pshvets (4/14/2009)
I am trying to write a function which reverses passed string WITHOUT using any built-in functions
So if 'abc' is passed, it returns 'cba'
I want to use recursion. Here...
April 15, 2009 at 12:06 pm
RBarryYoung (4/10/2009)
Florian Reischl (4/10/2009)
HiSince your count of databases is not too much you can use a VARCHAR(8000) and Barry's suggestion to use the INFORMATION_SCHEMA.TABLES:
Unfortunately Flo, the INFORMATION_SCHEMA views do not...
April 10, 2009 at 10:00 am
Theunis Viljoen (4/10/2009)...We are currently looking at encryption tools such as SQL Shield 4 as an effective encryption tool for SQL 2005. I would be interested to read any feedback...
April 10, 2009 at 9:34 am
The only time I have seen SQL Server procedure encryption used was for a vendor product.
I decrypted and looked at a few of the procedures. They appeared to have...
April 10, 2009 at 9:25 am
If you want to show a special status for a poster, you might consider some kind of SSC MVP status (Most Valuable Poster?) that you setup, instead of using Microsoft’s...
April 10, 2009 at 7:56 am
The quality of a response depends on what you say, not who you are.
This is a discussion board, not a place to receive pronouncements from on high. The value...
April 9, 2009 at 9:17 am
Lowell (4/8/2009)
April 8, 2009 at 6:00 pm
Didn't you leave out a few numbers?
declare @date datetime
set @date = getdate()
select
convert(varchar(35),@date,a.Code) AS FormattedDate,
Code = convert(varchar(3),a.Code),
convert(varchar(40),'select convert(varchar(35),@date,'+convert(varchar(20),a.Code)+')') as [SQL]
from
(
select Code = 0 union all
select Code = 1 union all
select Code...
April 8, 2009 at 5:17 pm
This will do what you want:
declare @a nvarchar(max)
select
@a = isnull(@a+N' union all ',N'')+
'
select [Database] = convert(sysname,'''+a.name+
'''), [Table] = a.name collate SQL_Latin1_General_CP1_CI_AS from '+
quotename(a.name)+'.sys.tables...
April 7, 2009 at 10:34 pm
Bob Hovious (4/7/2009)
April 7, 2009 at 10:03 pm
Viewing 15 posts - 1,831 through 1,845 (of 3,008 total)