Viewing 15 posts - 136 through 150 (of 595 total)
You don't need the FROM, all you need is this:
DELETE [002 Shipments Table]
In which case the deletions are written to the transaction log. Depending on the permissions, you might also...
July 3, 2009 at 7:46 am
That Tally table thing is pretty slick. In my case it created 11000 rows. I will definitely study how it works.
Anyway, here is a possible final solution that inserts from...
June 7, 2009 at 10:07 am
Florian Reischl (6/7/2009)
WILLIAM MITCHELL (6/7/2009)
Sorry, did not read the entire question, missed the part where the dates come from another table.
Nothing to apologize :-). I just intended to ensure that...
June 7, 2009 at 9:18 am
Sorry, did not read the entire question, missed the part where the dates come from another table.
June 7, 2009 at 9:12 am
If the dates are sequential you could use this
-- these would be your input parameters
DECLARE
@empno int,
@start_date datetime,
@end_date datetime,
@project nvarchar(50)
-- set them to some values for testing
SELECT
@empno = 1,
@start_date = '10/01/2009',
@end_date...
June 7, 2009 at 8:57 am
You wouldn't normally do that, because in a relational database you would write your query to look up the job name from that other table using the ID. What you...
May 16, 2009 at 10:07 am
Here's one more way to do that in an MDB file:
Create a pass-thru query, and in the button click event on your form, you re-write the SQL string with the...
May 16, 2009 at 9:51 am
Steve Jones - Editor (5/15/2009)
This one?http://www.sqlservercentral.com/Questions/Tags/System+databases
Thanks for the search tip, here it is:
http://www.sqlservercentral.com/links/158289/42671
QOD was posted May 8, 2008 - lots of replies 🙂
May 15, 2009 at 9:56 am
Steve Jones - Editor (5/15/2009)
I always here it referred to as the Resource database, so I think it's getting straightened out.
and the name of msdb is actually msdbdata.mdf just to...
May 15, 2009 at 8:52 am
the sqlist (5/9/2009)
jeremygiaco (4/14/2009)
May 9, 2009 at 10:59 am
rayzor (5/4/2009)
May 7, 2009 at 7:28 am
You could just use this
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?' "
May 4, 2009 at 5:17 am
Back again to the original question, you can avoid using GO by using this:
EXEC sp_executesql N'ALTER TABLE Temp ADD num int identity(1,1)'
One situation where you would not want to use...
April 30, 2009 at 5:43 am
Your first code example was almost complete, except for opening the recordset to retrieve the value.
Your second code example will only work the first time, then it will fail with...
April 23, 2009 at 7:46 pm
Viewing 15 posts - 136 through 150 (of 595 total)