Viewing 15 posts - 1,066 through 1,080 (of 1,170 total)
Carlo Romagnano (8/17/2012)
Maybe, you miss the UPDATE clause:
declare @mykey intupdate top 1 mytable set
@mykey = mykey
where status = 0
print @mykey
Hi, this is covered in the question itself: ...says "without using...
Igor Micev
August 17, 2012 at 3:21 am
Hi,
You must miss something simple. I don't know your exact code, however put attention on data types in tables of both databases.
select col1,col2,...,colN
from db1.shcema1.table1 tb1
join db2.schema2.table2 tb2 on convert(nvarchar(100),...
Igor Micev
August 13, 2012 at 3:44 pm
guerillaunit (8/13/2012)
Igor Micev
August 13, 2012 at 3:34 pm
WannaBee (8/12/2012)
I have this data:
12/30/2012 0:00Carfordfocus0
12/30/2011 0:00Carfordfocus11
12/30/2010 0:00Carfordfocus7
12/30/2009 0:00Carfordfocus15
12/30/2008 0:00Carfordfocus6
12/29/2012 0:00Carfordfocus12
12/29/2011 0:00Carfordfocus44
12/29/2010 0:00Carfordfocus21
12/29/2009 0:00Carfordfocus6
12/29/2008 0:00Carfordfocus3
12/30/2012 0:00CarAudiTT8
12/30/2011 0:00CarAudiTT9
12/30/2010 0:00CarAudiTT11
12/30/2009 0:00CarAudiTT24
12/30/2008 0:00CarAudiTT7
I need to calculate the average of 3 consecutive years for...
Igor Micev
August 13, 2012 at 1:59 am
Hi,
Try this code may help you
ALTER TABLE table_name NOCHECK CONSTRAINT ALL
ALTER TABLE table_name DISABLE TRIGGER ALL
make your delete
ALTER TABLE table_name CHECK CONSTRAINT ALL
ALTER TABLE table_name ENABLE TRIGGER ALL
Regards
IgorMi
Igor Micev
August 9, 2012 at 4:11 pm
SQLKnowItAll (7/30/2012)
Igor Micev
July 31, 2012 at 5:45 am
Sachin Nandanwar (7/29/2012)
....FROM #ddb_temp_DDB tdb
where not exists (select 1 from deposits_daily_balance ddb_t
where ddb_t.num_cue_s =tdb.num_cue_s and ddb_t.val_date_d = @t_date_d and ddb_t.reg_date_d =...
Igor Micev
July 30, 2012 at 2:11 pm
Despite your claim and based on the fact that you have no triggers (and I'm assuming no Indexed Views), the only thing that will give you a PK violation is...
Igor Micev
July 29, 2012 at 2:47 am
Dear All,
I finally manged to overpass the problem. I replaced the join with not exists ().
Anyway, I was making various selects in order to find any duplicate records, or any...
Igor Micev
July 27, 2012 at 8:29 am
Kingston Dhasian (7/27/2012)
Do you have any trigger on the table "deposits_daily_balance"?
No triggers, no any other constraints
Regards
IgorMi
Igor Micev
July 27, 2012 at 7:13 am
Gazareth (7/27/2012)
Hi,What's the definition of the foreign key "CwFKaccounts2deposits_daily_balance"?
Thanks
ALTER TABLE [dbo].[deposits_daily_balance] WITH NOCHECK ADD CONSTRAINT [CwFKaccounts2deposits_daily_balance] FOREIGN KEY([num_cue_s])
REFERENCES [dbo].[accounts] ([num_cue_s])
GO
ALTER TABLE [dbo].[deposits_daily_balance] CHECK CONSTRAINT [CwFKaccounts2deposits_daily_balance]
GO
Igor Micev
July 27, 2012 at 5:01 am
GilaMonster (7/20/2012)
Igor Micev
July 20, 2012 at 10:26 am
GilaMonster (7/20/2012)
I don't understand what you're asking.
My question is the following:
there is an existing table with lets say 5 indexes(1 clustered + 4 nonclustered).
The Estimated Execution Plan of SSMS, for...
Igor Micev
July 20, 2012 at 9:33 am
Hi Gail
I want to thank you for your effort on indexes.
I'll use this opportunity to ask a question.
Example: There is a Table with one clustered index and some non-clustered. It...
Igor Micev
July 20, 2012 at 8:24 am
Luis Cazares (7/19/2012)
Igor Micev
July 19, 2012 at 9:01 am
Viewing 15 posts - 1,066 through 1,080 (of 1,170 total)