Viewing 15 posts - 3,031 through 3,045 (of 3,658 total)
AK1 needs to be a unique key if you are going to do this, otherwise you will take an AK47 to your data integrity.![]()
As...
October 8, 2004 at 8:38 am
Note POWER will give an arithmetic error if you exceed 31 issues because POWER can only return a 32 bit integer.
October 7, 2004 at 8:55 am
DECLARE @tbl TABLE(Id Int , Issue CHAR(8))
DECLARE @byLoop TinyInt
SET @byLoop=1
WHILE @byLoop<32
BEGIN
INSERT @tbl(Id , Issue)
SELECT POWER(2,@byLoop-1),'Issue ' + CAST(@byLoop AS VARCHAR(2))
SET @byLoop=@byLoop+1
END
SELECT * from @tbl
October 7, 2004 at 8:52 am
This design limits the number of possible values to:
If you are happy with that then why not prepopulate...
October 7, 2004 at 8:10 am
Personally I would have three tables.
If you haven't already done so I would create an integer field to act as the primary key for the Customers and Models table.
On the...
October 7, 2004 at 1:25 am
I am assuming here that you have performed some form of large delete operation and want to shrink your database file?
Firstly, do a DBCC DBREINDEX on that tables from which...
October 6, 2004 at 1:47 am
In what way Jamie, what were you looking for?
October 6, 2004 at 1:39 am
Been there, done that.
In any organisation, be it social, business or what ever there seems to be four types of people.
An organisation...
October 5, 2004 at 2:23 am
I agree that keeping documentation up-to-date is an absolute pain in the arse but when you need it and it isn't there you are in trouble.
I work for a company...
October 5, 2004 at 1:34 am
SELECT TOP 1000 WITH TIES DT.telephoneid , DT.Requests
FROM (
SELECT telephoneid,count(*) AS Requests
FROM tbl
GROUP BY telephoneid
) AS DT.
ORDER BY DT.Requests DESC
This will return the TOP 1000 but also take into account...
October 1, 2004 at 4:58 am
I am very much of the opinion that it is small inch pebble steps that change the world rather than the big bang approach.
If you take a step out of...
September 30, 2004 at 1:50 am
I would plan to convert the queries over time because Access can cause huge locking problems.
Someone on this site recommended using pass thru queries but that means converting your queries...
September 30, 2004 at 1:39 am
Actually, 15 miles probably isn't enough!
On March 29th 2004 in Manchester UK an underground fire in a tunnel containing telecommunication wires took out an area that certainly extends to where...
September 30, 2004 at 1:36 am
This confirms what is written in BOL i.e. each table can only appear once in a cascade relationship and you can't have circular references.
Basically, you have to design your database...
September 29, 2004 at 8:37 am
Don't use SELECT INTO. It is an expensive way to do it.
DECLARE your table variable or create your temporary table then use INSERT ... SELECT
I would also split out your...
September 29, 2004 at 5:54 am
Viewing 15 posts - 3,031 through 3,045 (of 3,658 total)