all groups > sql server programming > april 2005 > threads for saturday april 2
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
UPDATE using self-referencing JOIN ?
Posted by Axel Dahmen at 4/2/2005 7:13:25 PM
Hi,
I'd like to update a self-referencing table like
CREATE TABLE test (ID INT PRIMARY KEY,Price SMALLMONEY,Parent INT REFERENCES
test (ID))
....
UPDATE test SET Price = NULL
FROM test AS t1 INNER JOIN test AS t2
ON t1.Parent = t2.ID
OK, this is not the actual statement, of... more >>
very simple database design question
Posted by Lisa Pearlson at 4/2/2005 5:43:13 PM
Let's imagine we have companies and people working for companies and we
which to keep track of who works where:
table companies {
id INT PRIMARY KEY,
name VARCHAR(100)
}
table people {
id INT PRIMARY KEY,
name VARCHAR(100)
}
Now, in the past, I have added a field to people "comp... more >>
SQL SERVER LINK PROBLEM
Posted by Savas Ates at 4/2/2005 4:56:19 PM
my sql server is not in local network.. it is in remote network... and its
ip , username and password is true...
coz i can access it from enterprise manager from my local sql server...
i looked at my permissions.. from users in my database ...
in my dbo public and db_owner permit checked...... more >>
date comparison and filtering
Posted by Opa at 4/2/2005 2:31:03 PM
Im creating a stored proc where i need to filter an Orders table
results based on a date field as following:
The column i'm filtering is called DeliveryDate
How to I filter DeliveryDate for This Week, This Month.
This Week:
Do I have to calculate the start of week and end of week and then... more >>
Trigger using UPDATE(FieldName)
Posted by Optimize Machine at 4/2/2005 2:13:01 PM
I want to optimize a huge update trigger...
Instead of using cursor in my trigger, I want to do a batch process.
Question: in a multiple rows, is the UPDATE(FieldName) will be detect for
each record?
Objecttive: Integrate the IF UPDATE(FieldX) in the UPDATE Statement
I don't want to use COLU... more >>
help with santax
Posted by Bryan Martin at 4/2/2005 1:58:29 PM
Given the following table setup
Table
column1
column2
forumCategory
ID
name
forum
ID
name
forumCategoryID
ForumTopics
ID
forumID
ForumTopicMsg
ID
topicID
dateEntered
I am attempting to create a query that gives a complete ... more >>
Programmatically adding new column at desired place...not at the end
Posted by Justin at 4/2/2005 11:52:40 AM
I understand that adding new column programmatically (using ALTER TABLE...),
adds it at the end of the table. Is it possible to specify that this column
should be placed at the 3rd place (not at the end).
Thanks in advance
J Justin
... more >>
Finding records that differ between tables
Posted by sugnaboris NO[at]SPAM gmail.com at 4/2/2005 11:50:09 AM
Hope someone can help me with a SQL problem that I'm currently trying
to work out.
1) I have a pair *large* tables (actually 2 sets of tables that I want
to take pairwise, and operate on each pair - but I only need to
consider a single pair for now).
2) Each table may have records that are ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
What is the most efficient way to select a specific date?
Posted by Bob Bartel at 4/2/2005 11:02:37 AM
I need to run a query where I'm selecting on a datetime field, but all I
want to do is determine if the Date portion is a specific date.
SELECT my_datetime FROM my_table WHERE my_datetime = '04/01/2005'
only works if the my_datetime column has no time. How can I get this to
work efficentl... more >>
Max pool size error.....how can i resolve this.
Posted by ~Maheshkumar.R at 4/2/2005 10:02:28 AM
Hi groups, i tried to compile one report page, where i have fired few sql
queries. but sometimes page is working fine, but many times it is giving
error like this
//////////////////////////
Server Error in '/report' Application
Timout expired. The timeout period elapsed prior to obtaining the... more >>
with IGNORE_DUP_KEY - how bypass server msg 3604?
Posted by bill_morgan at 4/2/2005 8:25:03 AM
The following statement does a great job of eliminating dupliate
[transfernums] from the data inserted into #xfers temp table.
Problem is: my stored procedure stops at the Server Msg "Dupliate key was
ignored", and does not return the final result set, which is simply SELECT *
FROM #xfers. ... more >>
|