all groups > sql server programming > july 2003 > threads for sunday july 13
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
stored procedure syntax help
Posted by anjelina at 7/13/2003 10:27:47 PM
When I run the following stored procedure I'm getting the
following error return:
Server: Msg 201, Level 16, State 4, Procedure
ldman_proc1, Line 0
Procedure 'ldman_proc1' expects parameter '@em_date',
which was not supplied.
CREATE PROCEDURE dbo.ldman_proc1
@em_date nvarchar(10)
... more >>
Replace Spaces in field data with underscores
Posted by dmontgomery NO[at]SPAM datatown.com at 7/13/2003 9:56:44 PM
I need to replaces all occurances of spaces between words with
underscores for all text data in a database field called company_name.
Can this be done inside access using an SQL statement?... more >>
SQL statement to replace spaces between words with underscore
Posted by dmontgomery NO[at]SPAM datatown.com at 7/13/2003 9:34:11 PM
Is there an SQL statement that will replace spaces between data in a
text field. The field name is company_name and I need to replace all
occurances of spaces in the company names with underscores.... more >>
Single quote (') problem in SQL Server query
Posted by Ben at 7/13/2003 7:41:33 PM
I am trying to run a simple select query but it bombs out
because one of the fields may contain a single quote
character. The field is a street name field and streets
starting with "O'" bomb out. When there is no single
quote, the query works fine.
Here is my query:
Set tmpRSet2 = ... more >>
Cannot trap error returned by stored procedure in SQL Server 2000: Suggestions?
Posted by drdeadpan NO[at]SPAM yahoo.com at 7/13/2003 7:30:31 PM
I created two procs in Query analyzer as follows.
DROP PROCEDURE insjobs
GO
CREATE PROCEDURE insjobs
AS
INSERT INTO venkatpk values (1,'joe')
IF @@error <> 0
RETURN 88
GO
DROP PROCEDURE insjobsparent
GO
CREATE PROCEDURE insjobsparent
AS
DECLARE @err INT
BEGIN ... more >>
UserDefined Fuctions and SQL
Posted by Trent at 7/13/2003 5:53:32 PM
Does anyone know how to insert or update inside a user-
defined function, or have any advice on ways around this?
Trent... more >>
SQL Server 7.0 & Enterprise Manager
Posted by Darren at 7/13/2003 4:07:51 PM
I am a newbie to SQL Server and am embarking on a project to create a
database.
Whilst I am still to learns the ways of Transact-SQL (learning courses
pending), I decided to create the relvant tables via the Enterprise Manager.
One problem I do have is how can I set the default value of a Da... more >>
How to combine date strings with text
Posted by hk4ac NO[at]SPAM hotmail.com at 7/13/2003 3:27:31 PM
I am transferring an Access database to SQL Server 2000 and running
into trouble creating the same 'combination' fields in the SELECT
statement. The Access database calculates the number of days from an
order start date and then adds the static text "days" to the end. The
output should include t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is it possible to query a prior query?
Posted by Peter Olcott at 7/13/2003 3:05:34 PM
Is there some way to save a selection set in SQL
so that another SQL query can further refine the
prior query?
... more >>
Windows 2003 WEB Edition?
Posted by Jason Davis at 7/13/2003 9:54:24 AM
Hi there,
I'm about to install a new MS server and I'm still unsure wheter to go with
the Web or Std. edition of 2003.
The server includes both mssql server 2k (standard) AND IIS. I also need
DNS/FTP services and terminal server access.
There are 2 cpu, and 1gb of ram.
Any considerations... more >>
Select the rows which are implicated in an not committed update command
Posted by Lucian Secara at 7/13/2003 7:21:41 AM
Table Test(id bigint,
name varchar(55)) and contains:
1 Linda
2 Tom
User A:
set transaction ISOLATION LEVEL READ COMMITTED
begin tran
insert into Test(name) values('John')
User B:
set transaction ISOLATION LEVEL READ COMMITTED
begin tran
update Test set name='Mary' where ... more >>
@@error is driving me nuts. Please help me gurus!
Posted by drdeadpan NO[at]SPAM yahoo.com at 7/13/2003 7:01:01 AM
Hi,
I have a stored procedure (SQL Server 2000) that has the following
form.
CREATE PROCEDURE ins
AS
INSERT INTO TABLE A VALUES (...)
IF @@error = 2627
PRINT 'OOPS'
GO
Now when I insert duplicate recs, I should just get the message OOPS.
This does not seem to happen, though... more >>
@@error not trapping errors?
Posted by drdeadpan NO[at]SPAM yahoo.com at 7/13/2003 7:00:47 AM
Hi,
I have a stored procedure (SQL Server 2000) that has the following
form.
CREATE PROCEDURE ins
AS
INSERT INTO TABLE A VALUES (...)
IF @@error = 2627
PRINT 'OOPS'
GO
Now when I insert duplicate recs, I should just get the message OOPS.
This does not seem to happen, though... more >>
SP returned recordsets
Posted by Saul Bryan at 7/13/2003 6:43:32 AM
Hi all,
I have a stored procedure which has a number of select and insert statements
in it. It is used to insert records in a number of tables. The last select
statement returns a single row, which I want to use as a kind of returned
parameter. I call this stored procedure from some ASP code u... more >>
SP_OACreate
Posted by Venugopal Vemuri at 7/13/2003 6:14:49 AM
Hi,
We have a web server say "server1" and a database server
say "server2". I have installed a DLL say "test.dll" as
a COM+ component on server1. The test.dll has also been
registered on server2. test.dll is a vb6 dll. How do I
use SP_OACreate to instantiate test.dll from server1 from
... more >>
Summing time......
Posted by Paul Aspinall at 7/13/2003 12:52:34 AM
Hi
I have a field which is a Date/Time field....
It actually only makes use of the Time portion, and this holds a duration of
an activity....
However, I want to have a query which returns the total duration of all the
times in the records.
Is there an easy way, to SUM date/time fields (or ju... more >>
|