all groups > sql server programming > march 2005 > threads for saturday march 5
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
All employees with Hours or Sales
Posted by Atley at 3/5/2005 4:08:59 PM
This has me a little stumped... this is not the real database situation,
just a paraphrased version that should produce the results in an example I
can then use to make my actual query.
I need to get a recordset for each store of all the hours and sales broken
down by employee... Employees ... more >>
getdate in UDF
Posted by Ed at 3/5/2005 2:17:02 PM
hi,
I am not able to use today date by using getdate() in UDF. Is there
anyway to work around?
Thanks
Ed... more >>
Alternative to cursor in trigger?
Posted by Georgia at 3/5/2005 2:08:21 PM
If the update trigger returns an "inserted" table with multiple records,
is there any way to address each record individually without using a
cursor? The code below is my solution using a cursor but the DBA says
no cursors. Thank you for your help.
/* Assume "inserted" table returned mult... more >>
return list of tables use in procedure
Posted by kevin at 3/5/2005 12:31:56 PM
Hi,
is it possible to return a list of all tables in a procedure?
sp_findtables_from_procedure @proc='procedure1'
I'm not sure if it can be done.
... more >>
Copying one text column to another
Posted by Elie Grouchko at 3/5/2005 11:49:36 AM
Hi All
I have to copy text data from a table in one database to a table in a
different database, both table reside on the same server.
I tried two options which didn't work (see code below), and will be more
than gratefull for any help.
Thanks
Elie Grouchko
***********************... more >>
some query help pls
Posted by Hassan at 3/5/2005 11:08:31 AM
Heres my query
select database_name,backup_finish_date from msdb..backupset where type =
'D' order by backup_finish_date desc
Apparently i want to just get a distinct database_name only
So current results when i run that query give me
DB1 2005-03-05 00:02:54.000
DB2 2005-03-05 0... more >>
Big Log File Help
Posted by Taha at 3/5/2005 10:51:05 AM
hi All
in my database The log File Is to Big How can i Trancate
or deleted Pelase Help me
use SQL2000
... more >>
removing accents and doing accent-insensitive processing
Posted by Andy Fish at 3/5/2005 10:35:08 AM
Hi,
I have an app that does case-insensitive, accent-insensitive searches using
sql server fulltext engine. It deals only with western-european lanaguages
(mostly just English and French). The tables are stored in Latin1 General
CP1.
However, I also need to process the search results in ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Running a stored procedure from an other
Posted by GMK at 3/5/2005 9:46:06 AM
dear all
i need to execute a stored procedure in sql server from another stored
procedure.
this mean that my application calls a stored procedure but i need when i
call this stored proceure to run an other one.
is that possible and can anybody help me to acheive this task??
Thank you.
... more >>
Unstable transaction time
Posted by andsm at 3/5/2005 9:45:02 AM
I have SQL Server2000 installed on dedicated server. One only application
which send sql queries to the server is application server - users can not
connect directly to SQL Server. Most of times transaction run near average
time - around 30 ms. Minimal time I have seen is 20 ms for transaction... more >>
Building a conditional WHERE clause
Posted by Coffee guy at 3/5/2005 9:45:01 AM
Hello experts, I have a sproc that gets several params, default is null. I'd
like to build a WHERE clause on the fly for just the params with values.
Something like
SELECT * from foo
WHERE if( @a IS NOT NULL foo.a = @a) and if( @b IS NOT NULL foo.b = @b)
... more >>
SCheduled Jobs
Posted by jaylou at 3/5/2005 7:07:16 AM
Hi All,
I have many scheduled jobs running that creates a centralized database from
20 different databases in 20 different locations.
The jobs say they were successful, but the information is not coming over
all the time. If I manually run the job in EM, it works fine. Some of the
jobs cal... more >>
Managing the errors in stored procedures
Posted by Mihaly at 3/5/2005 2:41:02 AM
How can I manage the errors into a stored procedure?
Example:
CREATE PROCEDURE MyProcedure
@UserName SYSNAME = NULL
AS
BEGIN
DECLARE @v INT
SET @v = 0
EXEC @v = sp_helpuser @UserName
IF (@@ERROR <> 0)
BEGIN
RAISERROR('My Error Message...', 16, 1)
R... more >>
|