Viewing 15 posts - 3,226 through 3,240 (of 6,036 total)
This works:
[Code]
Declare @tempt table (tblid int identity, tblchar varchar(5))
insert into @tempt (tblchar) -- load some data
select 'abcd' union all
select 'bcd' union all
select 'cd'
delete T
from...
_____________
Code for TallyGenerator
December 20, 2007 at 2:59 pm
grkanth81 (12/17/2007)
number ...
_____________
Code for TallyGenerator
December 18, 2007 at 5:16 pm
This topic is named improperly.
There is no any problem with datetime.
The only problem is with column not being datetime.
Make it datetime and the problem will disappear.
_____________
Code for TallyGenerator
December 18, 2007 at 1:46 am
Or you may find dependencies from system table sysdepends.
_____________
Code for TallyGenerator
December 17, 2007 at 2:53 pm
No subqueries!
SELECT LEFT( str_Sitename , 3) AS SiteName
, YEAR(dat_UsageDate) AS [YEAR],
SUM(Case MONTH(dat_UsageDate) When 1 THEN dbl_FuelUsage ELSE NULL END) AS Jan,
SUM(Case MONTH(dat_UsageDate) When 2 THEN dbl_FuelUsage ELSE NULL END) AS...
_____________
Code for TallyGenerator
December 17, 2007 at 1:57 am
Any time the table changes
How often the table is changed?
If more than 2 times in a lifetime you better rethink you application design.
And you don't need 2 statements for...
_____________
Code for TallyGenerator
December 13, 2007 at 4:40 pm
From BOL:
if a trigger is defined as an INSTEAD OF INSERT trigger for a table, and the trigger executes an INSERT statement on the same table, the INSERT statement executed...
_____________
Code for TallyGenerator
December 13, 2007 at 6:15 am
Matt Miller (12/12/2007)
_____________
Code for TallyGenerator
December 13, 2007 at 2:12 am
Matt Miller (12/12/2007)
And it's essentially right out of BOL on instead of triggers...
Is it SQL2005 BOL?
Because I'm thinking about writing a book discussing errors in SQL2005 BOL.
Appears to be quite...
_____________
Code for TallyGenerator
December 12, 2007 at 3:39 pm
Well, what's gonna happen when you execute
[Code]
insert into real_table --will get posted to the current table regardless of type
select col_list
...
_____________
Code for TallyGenerator
December 12, 2007 at 3:34 pm
I just did something like that today - using a staging table - the 1M or so records took 13 seconds to finish. You'll be lucky if you can...
_____________
Code for TallyGenerator
December 12, 2007 at 2:51 pm
I guess you need to read about osql utility in BOL.
Pay special attention to -i and -b parameters.
_____________
Code for TallyGenerator
December 12, 2007 at 2:42 pm
Reading Help helps a lot.
_____________
Code for TallyGenerator
December 12, 2007 at 12:42 pm
PatrickSimons (12/12/2007)
Is the SQL-Engine not so intelligent...
_____________
Code for TallyGenerator
December 12, 2007 at 4:04 am
I would not say the article is rubbish (getting older? 😉 ), but I have to say it's far from being good.
I tend to agree with Jeff, it's probably the...
_____________
Code for TallyGenerator
December 11, 2007 at 2:51 am
Viewing 15 posts - 3,226 through 3,240 (of 6,036 total)