| Thread | Last Post | Replies |
|
| help on trigger question - after update and after insert | 03 Dec 2008 07:51 GMT | 2 |
I'm working on a trigger in sql 2000. This trigger is like this, the tb1 gets insert from web form, then this trigger will fire to insert the record to other tables in the database. When I used "After update", the trigger doesn't fire, when I changed it to
|
| Some simple newbie question | 03 Dec 2008 05:43 GMT | 2 |
Trying to figure out SQL 2005. 1) Can you create a relationship between 2 tables when neither has a Primary Key? Both columns have no Null. 2) Using the GUI in SSMS, how do I set another column as UNIQUE? If I set 2
|
| Consolidate datafiles to one drive | 03 Dec 2008 04:10 GMT | 5 |
My database has 10 datafiles spread across 10 drives. We designed it a year back anticipating heavy traffic but it didn't turn out that way. Now, I need to give all those extra SAN space back and so need to put 9 datafiles to a single drive.
|
| Sequential ID That Resets Each Day | 03 Dec 2008 02:18 GMT | 4 |
I have a need to have an ID --which is a sequential number-- that starts over at 0 each day; however, I obviously also need to have a unique way of identifying each individual record. You can think of it as being similar to the registers at some fast food restaurants where each ...
|
| view with hash joins - strange performance issue | 03 Dec 2008 02:02 GMT | 1 |
SQL 2000 Std SP4 There is a complex view that contains over a dozen INNER JOINs, couple of filters and subqueries. This view is a source for subsequent, more complex analysis.
|
| Conditional Joins Syntax Help | 02 Dec 2008 23:55 GMT | 4 |
I have a query that already has 5 Inner Joins that lookup values in another database, I now need the same query to check a different database as well. I was going to do this with 2 IF statements, but this would mean duplicating a large part of the code, so I was wondering if its ...
|
| Read Only Joined Recordsets | 02 Dec 2008 22:43 GMT | 1 |
I have an access adp project that contains 2 tables where the first and last name fields reside in a table called "users" and another table called "accounts" that contain user login names and emails. Because of other requirements, I had to layout the table relationships that way ...
|
| Why is it complaining about my Syntax? | 02 Dec 2008 22:41 GMT | 5 |
Can I not do this? WHERE DateDiff( d, [COCUS].[DATEINVOICE], getdate()) @LessOrGreater @X_Days It's telling me "Msg 102, Level 15, State 1, Procedure CIT_FA_NoSalesIn_X_Days, Line 21
|
| SQL JOIN query help | 02 Dec 2008 22:27 GMT | 4 |
I need to do a query for a view. The query involves 3 tables, let call them A, B, C. There is ItemID column in table A that match either ItemID column on table B or C (but not both, because ItemIDs in table B and C are assigned in a way that they cannot be the same)
|
| Rows affected? | 02 Dec 2008 19:16 GMT | 3 |
How do you get the last count of rows affected by a query in a stored procedure? thanks!
|
| Backup file and filesgroups | 02 Dec 2008 18:37 GMT | 1 |
I'm trying to backup my database using the option "file and filegroups" in the enterprise manager but this option is unavailable... Why it happens?... Thank for all your help.
|
| SQLDMO - Create a folder? | 02 Dec 2008 17:00 GMT | 6 |
I have a backup service i've created using SQLDMO / C#.NET. Can I create a folder on the sql server using this? I don't see a relevant method. I can enumerate folders on the sql server, but not create. Thanks
|
| How to copy operation tables to test tables ? | 02 Dec 2008 16:50 GMT | 6 |
We use two different SQL 2000 servers, one for test and one for operation. Sometimes we would like to refresh our test data by copying some (but not all) tables from operation to test. Of course some tables use primary keys with identity, timestamp columns,
|
| Determining resultset column definitions for stored procedures. | 02 Dec 2008 14:20 GMT | 5 |
If you want to execute a stored procedure into a temporary table you first need to create a temp table then execute the procedure into that temp table... CREATE TABLE #tmp(
|
| Errors for Bulk Insert | 02 Dec 2008 13:17 GMT | 2 |
Using sql 2000 sp4 I'm trying to catch the bulk insert error and would like to continue to the next file in Directory while, logging the failed file for later use? @@error doesn't seem to do it?
|