all groups > sql server programming > october 2005 > threads for saturday october 29
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
Joe Celko Theory
Posted by Frankie at 10/29/2005 8:36:26 PM
Just theorizing here that "Joe Celko" is really more than one person...
actually a common alias used by all the MVPs to say what they Really Think
whenever they see some totally stupid question. The real Joe Celko who
served on the ANSI committee retired years ago to a small village in Borneo ... more >>
Stored Procedure Variables
Posted by Anthony Robinson at 10/29/2005 8:27:51 PM
I'm getting an error when trying to compile a stored procedure.
Here's the code:
CREATE PROCEDURE GetMyFriends=20
@UserdID INT
AS
--DECLARE @FRIENDID INT
CREATE TABLE #FRIENDS
(USERID INT,
FRIENDID INT,
INVITATIONTYPE BIT,
CREATEDDATE DATETIME)
CREATE TABLE #FRIENDS_2
(USERID I... more >>
Finding the latest datetime from SP
Posted by Kent Ogletree at 10/29/2005 5:14:57 PM
I am trying to get the latest datetime information from a tables audit trail
feild and return it. The stored procedure is:
CREATE procedure dbo.LiveSchedule_ScheduleGetUpdateTime
AS
DECLARE @LastSync datetime
select @lastSync = max([UpdatedOn]) FROM LiveSchedule_Schedule
IF @LastSyn... more >>
Ignore errors?
Posted by Jan Eliasen at 10/29/2005 1:55:00 PM
Hi
I have a stored procedure, which basically copies data from table in
one database into a table in another database. Both databases are on
the same serverinstance.
Now, sometimes the data I am copying violates constraints on the
receiving table. My stored procedure therefore checks for er... more >>
Most efficient way to poll a table?
Posted by E at 10/29/2005 12:54:01 PM
Hello technet community:
Using SQL SERVER 2000 with VB 6 SP6, and ADO 2.6
Have to monitor a table containing status values.
As of now, a timer event is launched on the client that runs a server-side
query (connected recordset) using read-only, forward-only recordset
attributes. These ... more >>
Another Newb SQL Question
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 10/29/2005 11:47:10 AM
me again. been staring at this and can't see what's wrong.
SELECT tblCustomers.companyName, tblOrders.orderID,
tblOrders.freightCharge, tblOrderDetails.unitPriceOnOrderDate
FROM tblCustomers
JOIN tblOrders
ON tblCustomers.customerID = tblOrders.orderID
JOIN tblOrderDetails
ON tblOrders.o... more >>
Syntax Problem
Posted by Wayne Wengert at 10/29/2005 7:42:21 AM
I am getting the error: "Invalid column prefix 's.': No table name
specified" when I try to run the query shown below. The three table names
are all valid. Why doesn't it recognize the alias?
====================================
SELECT i.LastName, i.FirstName, a.Under18, a.DietRestrictions... more >>
Pivoting a one-many relationship into 1 row
Posted by DS at 10/29/2005 3:57:13 AM
Hey everyone,
this message comes in two forms, the short version and the long detailed
version-- that way hopefully I can get all the help possible as fast as
possible :)
Short version:
I have a table Names(names_id, name1, name2) that I normalized into 2
tables: Name(name_id, name) and C... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DTS is rubbish
Posted by Damien at 10/29/2005 1:04:01 AM
I'm gonna say something slightly controversial just to get a bit of debate
going, but I think DTS is just a drag and drop wizard for programmers who
don't know what they're doing. As with any wizard, it can take you so far,
but if you need anything complicated it's an ActiveX script. You do ... more >>
Creating Tables on the Fly
Posted by Neil at 10/29/2005 12:00:00 AM
I have an Access 2000 MDB with ODBC linked tables to a SQL Server 7 back
end. I currently have a selections table in the front end file which the
users use to make selections of records. The table has two fields -- primary
key (which matches primary key of main, SQL Server table), and a boolea... more >>
|