Viewing 15 posts - 16 through 30 (of 111 total)
Another possibility:
declare @mv_int int
declare @mv_char varchar(10)
set @mv_int = 8
if @mv_int >7
select @mv_char ='Yes'
else
select @mv_char ='No'
select @mv_char
May 16, 2002 at 7:49 am
May be you can store this db names in a separate table with code assigned to each table and if the update this table when your DB name is changing,...
May 16, 2002 at 7:36 am
Do you want to change columns order in the table?
If you run a query
select name,colid from syscolumns where id = object_id("table_name")
and insert into temptable with identity column...
May 15, 2002 at 10:46 am
From MSDN:
User-defined functions always return a value. Depending on the type of value it returns, each user-defined function falls into one of three categories:
Scalar-valued function A user-defined...
May 14, 2002 at 9:04 pm
Check the article: "Support multilingual sorting using SQL Server 2000's COLLATE keyword"
http://www.fawcette.com/Archives/premier/mgznarch/vbpj/2000/12dec00/ss0012/ss0012.asp
May 14, 2002 at 1:33 pm
From BOL:
Temporary Tables
You can also create temporary tables. Temporary tables are similar to permanent tables, except temporary tables are stored in tempdb and are deleted automatically when no longer in...
May 14, 2002 at 1:18 pm
Have you used ##temptable or #temptable? - it would make a difference for the scope
May 14, 2002 at 9:34 am
quote:
Only problem with that is the potential 27+ different variations that I'll have to create....also it doesn't sit well for expansion if...
May 14, 2002 at 9:22 am
I would also go with the stored proc and included all available variatins of joins in the different select statements. Then using IF statement and distinct flag that was passed...
May 14, 2002 at 8:14 am
Have you considered using function Round()?
From BOL:
ROUND
Returns a numeric expression, rounded to the specified length or precision.
Syntax
ROUND ( numeric_expression , length [ , function ] )
Arguments
numeric_expression
Is an expression of...
May 13, 2002 at 7:11 pm
quote:
Not sure if I understand what you are needing to do or what Oracle does with those keywords exactly.
May 13, 2002 at 6:57 pm
I agree with Antares - is there any reason for not using a real temp table? -You would eliminate 'dropping table' problem right away.
May 13, 2002 at 6:28 pm
Following link to discussion on another forum could give you some hints:
May 13, 2002 at 12:42 pm
Thanks, guys!
I'm always wondering why this and a lot of other very useful stored procs are undocumented, what is wrong with puting info in BOL?
May 11, 2002 at 9:29 pm
I recently posted a topic on FAQ "How can I quickly get information of the built in or user-defined data types in the database?" -
it will give you exactly...
May 11, 2002 at 9:23 am
Viewing 15 posts - 16 through 30 (of 111 total)