Viewing 15 posts - 511 through 525 (of 668 total)
This post is very similar to what you are asking and has some useful solutions
http://www.sqlservercentral.com/Forums/Topic950057-149-1.aspx
July 19, 2010 at 7:21 am
You aren't checking for @@Transcount in your code. Also, you should use a try catch block and return after the error.
Create Procedure One as
declare @ErrorMessage varchar(300)
...
July 16, 2010 at 7:12 am
I guess the answer is it depends. Is this an OLAP or OLTP database? Warehouse? I would try to eliminate duplciation of data where possible, but that's...
July 16, 2010 at 6:44 am
you should check @@Transcount to determine if a transaction is opend or not. See this article on MSDN regarding nested transactions.
July 16, 2010 at 6:35 am
why are you trying to increase the initial size? You have the file setup to extend as needed up to 4Gb. I hope you put the second file...
July 15, 2010 at 12:33 pm
As a developer, I would love to have access to the production box, so I can "do it myself", unfortunately I don't and for good reason, especially now the Sarbannes...
July 15, 2010 at 12:29 pm
is the sequence just returned in the resultset? You don't want to store it anywhere? What is the significance of it then?
July 14, 2010 at 1:43 pm
how many records are in the table? The timeout is probably happening because SQL is creating a tmp table and then copying the data from the main table to...
July 14, 2010 at 12:30 pm
Pretty basic group by expression
select Policy_Number, sum(balance)
from table
group by Policy_Number
July 14, 2010 at 12:24 pm
You can use a quirky update to populate the sequence field
Table Setup
CREATE TABLE [#abc1](
[I_KEY] [int] NULL,
...
July 14, 2010 at 8:15 am
you need to use a format card if the file isn't the same layout as the table
July 12, 2010 at 12:21 pm
If that's the case, then you can perform 2 separate deletes
delete from wce_linkto
where createtime <= '1980/01/01'
delete h
from wce_history h
...
July 12, 2010 at 10:01 am
on an update, the new and old records are placed into tables called INSERTED and DELETED which a trigger has access to. Are all the updates performed through stored...
July 12, 2010 at 9:35 am
You can use dynamic sql, although there are issues with this as well. You need to specifically grant select rights to each table.
create table t1 (ID int, Quantity int,...
July 12, 2010 at 9:19 am
Is there a foreign key between the 2 tables? Is it possible for a record to be in the history table but not the linkto table?
July 12, 2010 at 8:38 am
Viewing 15 posts - 511 through 525 (of 668 total)