Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
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 >>



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 >>


DevelopmentNow Blog