Groups | Blog | Home


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


all groups > sql server programming > may 2004 > threads for sunday may 30

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

can store procedure return result ??
Posted by Agnes at 5/30/2004 11:59:03 PM
I know how to pass the parameter to store procedure, however, can it return some item results ??? I want to get back the name,address1---4, Thanks a lot my code is CREATE PROCEDURE dbo.companyinfo_shipper_search @searchcode varchar(10) as select code,name,country,address1,address2,address...more >>

Stored Procedure for Concurrency check
Posted by Makarand at 5/30/2004 11:46:03 PM
Hi All Does anybody have written 'Generic' Stored Procedure for checking Data Concurrency using timestamp in SQL Server 2000. I am trying to write one which is not working as per my expectation. Please have a look at it CREATE PROCEDURE Proc_Check_Concurrency ( @old_modified_date AS dat...more >>

design suggestion required
Posted by kamal at 5/30/2004 11:11:03 PM
we have an application built on ASP(Application Service Provider) model In which we are planning to have a separate database for each client on a single server What propbale issues can we face apart from the hardware requirements rgd kamal...more >>

Stored Procedures Report Executed
Posted by Dan at 5/30/2004 9:04:30 PM
I have an application that I would like to create a table and insert into the table when each stored procedure (1800 Stored Procedures) was executed and by what userid? Example: Create table Report_StoredProcedure ( start_execution_time datetime; finish_execution_time datetime; St...more >>

Create Name for a Calculation Used Often
Posted by mike at 5/30/2004 7:02:29 PM
Newbie question here...I've migrated an Access database in which I had a formula that I used often to calculate the last business day. It looks like this: Yesterday: IIf(Weekday(Date())=1,DateAdd("d",-2,Date()),IIf (Weekday(Date())=2,DateAdd("d",-3,Date()),IIf(Weekday(Date ())=7,DateAdd("d"...more >>

Smalldatetime Issue
Posted by Paul King at 5/30/2004 4:05:12 PM
Hi, Im new to SQL and programming. I have constructed a small table with several columns and their associated data types. I have created one called Date and made this smalldatetime from the DataType. When I display the information via a DataGrid page in ASP.NET this shows the date + time (...more >>

Why don't put all SQL statement into Store Procedure?
Posted by AA at 5/30/2004 3:15:22 PM
Dear All, As I know that the performance of Store Procedure is better than execute SQL Statement directly. Why don't put all SQL statement into Store Procedures? Can store procedure replace all SQL statements? Is there any bad side effect? Thanks Anthony ...more >>

Unusual SELECT Statement
Posted by Alex Clark at 5/30/2004 1:54:05 PM
Hi All, I'm having a few difficulties defining a rather complex Select statement, and I'm hoping someone here can help. I have a table of Customers, the primary key of which is CustID + CustVersion. CustID stays with the Customer record for life, however if a significant change is made to ...more >>



CHARINDEX and PATINDEX not deterministic?
Posted by TomTom at 5/30/2004 1:51:52 PM
BOL says: Deterministic and Nondeterministic Functions All of the aggregate and string built-in functions are deterministic except the string functions CHARINDEX and PATINDEX. -------- Why are CHARINDEX and PATINDEX not deterministic? Just curious. TomTom ...more >>

Search Condition in WHERE or JOIN?
Posted by Don Miller at 5/30/2004 1:14:00 PM
Generally speaking, where is the best place to put search conditions - in the WHERE clause or in a JOIN? And why would it matter? For example: USE pubs SELECT titles.title, publishers.pub_name FROM publishers INNER JOIN titles ON titles.pub_id = publishers.pub_id WHERE LEFT(titles.titl...more >>

DLL
Posted by Mario at 5/30/2004 10:11:01 AM
When an extended procedure is executed, is there a new copy of the DLL loaded each time it is executed?? Got an issue with a DLL returning a Handle that is not usable on a subsequent invocation It looks like the storage gotten by the DLL on the first invokation is either freed or not available any...more >>

sql query help -pivot
Posted by Hassan at 5/30/2004 12:00:04 AM
I have a table TableA that has 2 cols ColA and ColB in all user dbs(say DB1,DB2,etc...) on the server. In it there are 2 rows such as ColA ColB Val1 1 Val2 2 In all the tables on each user database, the rows have the same exact values in ColA which is Val1 and Val2.. Tabl...more >>


DevelopmentNow Blog