Viewing 15 posts - 46 through 60 (of 83 total)
The error description says that you are inserting duplicate values. Check the values being inserted in the tables.
July 24, 2006 at 4:27 pm
This information is not tracked by SQL Server. You can set up auditing to
track execution of procedures so that they logged a date time value in a table every time...
July 24, 2006 at 4:01 pm
SELECT dbo.[query 2 b ].Expr1, dbo.[query 2 b ].Expr1 AS Customer_No,
...
July 21, 2006 at 2:45 pm
select
dateadd(ss, -1*ms_ticks/1000, getdate()) "Last server reboot time"
from
sys.dm_os_sys_info
July 21, 2006 at 2:41 pm
Could you post the code?
July 20, 2006 at 10:47 am
SELECT * FROM myTable a
join select Value from Split(@myIDParam,',') b
on a.myID = b.Value
Refer:
http://www.sqlservercentral.com/memberservices/updatescript.asp?Approve=y&scriptid=850
July 20, 2006 at 9:40 am
SELECT @IMPORT_FILE_PROP = column_X + '\file.TXT'
from database.Schema.table
Where <>
July 19, 2006 at 10:19 am
Hi Paul,
Join Postions table with recommendations table and make a derived table. It should work.
July 19, 2006 at 10:11 am
Hi,
You can use sp_MSForEachTable undocumented stored proc.
exec sp_msforeachtable "sp_spaceused '?'"
July 18, 2006 at 10:06 am
Your first parameter, (* CHAR(10) *), in ur first SQL truncates the time portion where it does't in ur 2nd SQL.
July 17, 2006 at 12:45 pm
You can write a trigger on base table for this type of referential integrity (FK).
July 17, 2006 at 12:41 pm
here is the sample code...
use tempdb
create table junk (srno int primary key, descr varchar(30))
use sample
create table junk (srno int primary key, descr varchar(30))
create trigger tr_iu_junk on junk for insert,...
July 14, 2006 at 10:56 am
if you have previous days backup then can restore otherwise
July 13, 2006 at 9:40 am
Hope you are using SQL Server 2000. If so here is one of the way to solve ur problem....
declare @test-2 table
(
taskvarchar(30),
datedatetime
)
insert into @test-2 values ('Inspection 1', '1/1/2006 09:00')
insert into...
July 12, 2006 at 11:16 am
Viewing 15 posts - 46 through 60 (of 83 total)