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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|