all groups > sql server programming > may 2005 > threads for sunday may 15
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
IF ELSE not compiling
Posted by bic at 5/15/2005 11:03:01 PM
I can't seem to figure out why this SP would not compile. Your assistance is
much appreciated.
CREATE PROCEDURE sp_getPubId
@name varchar, @pubCode varchar, @pubId smallint Output
AS
DECLARE maxPubId smallint
if (exists
(select publication_id from publication where code =@pubCode))
beg... more >>
User - Defined string Functions Transact-SQL
Posted by Igor2004 at 5/15/2005 10:44:02 PM
Ladies and Gentlemen,
I would like to offer you the following string functions Transact-SQL
GETWORDCOUNT() Counts the words in a string
GETWORDNUM() Returns a specified word from a string
AT() Returns the beginning numeric position of the first occurrence of a
character expression ... more >>
Dynamic ALTER TABLE and CURSOR
Posted by Jean Dupont at 5/15/2005 2:32:01 PM
I'd like to create a dynamic ALTER TABLE and CURSOR based on a variable. Is
it possible ? ... more >>
Column constraint
Posted by larzeb at 5/15/2005 11:39:50 AM
Is it possible to limit a column's value to 0 or 1 and to allow zero or one row to contain a value
of 1 for that column?
TIA, Lars... more >>
SQL Freezes
Posted by MoeJoe at 5/15/2005 11:31:04 AM
Hello All,
I have the following trigger that uses Northwind database (customers table)
on SQL 2000 (SP4), that execute a Local Package :
CREATE TRIGGER NewTrigger ON [dbo].[Customers]
FOR INSERT, UPDATE
AS
DECLARE @cmd varchar(4000) ,@CustID nchar (5)
SET @CustID = (SELECT CustomerID FRO... more >>
Finding SQL Server data directory
Posted by Edward Diener at 5/15/2005 8:01:30 AM
How do I programatically get the SQL Server data directory path ?... more >>
Why not change automatically?
Posted by Bpk. Adi Wira Kusuma at 5/15/2005 12:00:00 AM
I make a function like it
CREATE FUNCTION SP_LISTKAR_USER(@USERNAME VARCHAR(8))
RETURNS TABLE AS
RETURN(SELECT * FROM TDAV
WHERE BAGIAN IN (SELECT BAGIAN FROM THAK_UNIT
WHERE USERNAME=@USERNAME))
But when I change the structure field on table TDAV. then i execute its
function, why do the ... more >>
converting from nvarchar to money datatype
Posted by buran at 5/15/2005 12:00:00 AM
Hi there,
I have a table named Action. This table has a column InPrice with datatype
nvarchar(12). I want to change its datatype from nvarchar(12) to money. I
browsed through the values and removed any dots. Th column now has only
numeric values (and commas for decimal values such as 105,8). W... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
remove tab/line feed/carriage return
Posted by Kriste L at 5/15/2005 12:00:00 AM
Hi Everyone,
In this string "ABC ", there is trailing "tab","line feed" and "carriage
return".
Can I know how can I remove them?
Thank in advance
... more >>
|