Viewing 15 posts - 31 through 45 (of 81 total)
Thew fact of choosing keys does not depend only on the uniqueness of the column values (or their combination)... you should consider the essence of your entities and relations to...
May 15, 2009 at 8:16 am
select A.* from table A
inner join
(
select distinct
group,
(select top 1 subgroup from table t where table.group=t.group order by subgroup) as subgroup
from table as A
) B
on A.group=B.group and A.subgroup=B.subgroup
May 14, 2009 at 1:35 pm
You should try to insert a record using a query directly in the management studio:
insert sales (code,amount) values ('A001',1000)
and see what happens....
May 14, 2009 at 1:06 pm
DBCC CHECKTABLE ('TableName') will check your specific table... however if DBCC CHECKDB is not returning errors then the table seems to be OK... check your datasource params, because it looks...
May 14, 2009 at 12:44 pm
Could you post the error raised when trying to insert data??
May 14, 2009 at 11:25 am
If the recovery mode is set to full you have to make transaction log backups regularly (each 5 or 10 minutes) . The period depends on the workload.
Transaction log...
May 14, 2009 at 8:03 am
SELECT tname, oid, [tot_sh_unit], [wgt_uom], [total_qty]
FROM
(SELECT field_id,tname, oid, data_value
FROM #test) p
PIVOT
(
SUM (data_value)
FOR field_id IN
( [tot_sh_unit], [wgt_uom], [total_qty])
) AS pvt
May 14, 2009 at 7:48 am
I just added an identity column to both auxiliary tables and then full joined then just to ensure that both inserts will start in the first row... try it and...
May 14, 2009 at 7:24 am
I did not understand the original question.... here goes another solution... hope this helps
select distinct id= identity (int,1,1), age into #c from #tempa
select distinct id= identity (int,1,1), hobbycode...
May 13, 2009 at 11:46 am
insert TableB select select distinct null,age,null, hobbycode from TableA
May 13, 2009 at 10:56 am
Did you grant the access permission to the database for the that login??
May 13, 2009 at 9:04 am
The advantage of the active/active configuration is that you can save on hardware resources (provided that each of the servers in the cluster can handle the workload in the event...
May 13, 2009 at 8:21 am
In this case... the only cause I can see is that you have a very long active transaction running...
May 12, 2009 at 8:46 am
Do you have configured database mirroring or replication on this database???
May 12, 2009 at 8:21 am
It's not very clear what you are asking, but in fact
SELECT CONVERT(VARCHAR(20),GETDATE(),109)
really works and returns the value in the expected format: "May 12 2009 10:07:07"
May 12, 2009 at 8:14 am
Viewing 15 posts - 31 through 45 (of 81 total)