Viewing 15 posts - 2,131 through 2,145 (of 3,543 total)
Is the disk full?
Is there enough space for the database to extend to cope with the volume of data your inserting?
October 24, 2005 at 7:15 am
At a guess
CREATE TABLE #temp (rank int IDENTITY(1,1), username varchar(20))
INSERT INTO #temp
SELECT username FROM
WHERE quizid = @quizid
ORDER BY score DESC, datentime ASC
SELECT rank from #temp...
October 24, 2005 at 7:11 am
See this
http://www.perfectxml.com/articles/xml/importxmlsql.asp
it has some code to get the file into a string for sp_xml_preparedocument providing you have permission to use xp_cmdshell
October 24, 2005 at 6:58 am
Well retrieving redundant data for one
Depending on how many different 'views' there were and how many columns per 'view' it is possible to...
October 24, 2005 at 6:41 am
You can change a column used in a foreign-key as long as the primary key exists.
You can change/delete a primary key as long no foreign-keys point to it.
Therefore, e.g.
[Table1]
ID int...
October 23, 2005 at 12:03 pm
To follow your example of 'run, runner, running' there are three occurances of run and the search will only find words starting with run. So we can put a space...
October 21, 2005 at 9:12 am
You cannot union as your two queries return different number of expressions. Also if you want the rank as well then you will also get 'duplicates'.
You need to decide what...
October 21, 2005 at 8:51 am
IIRC the last time I did this
Create a new record in the 'primary' table(s) with the same details except with the new patrol_no
Update patrol_no on all other tables that reference 'primary'...
October 21, 2005 at 8:14 am
or, without a cursor
SELECT @sql = COALESCE(@sql+',','UPDATE '+@tablename+' SET ')+
COLUMN_NAME+'=LTRIM(RTRIM('+COLUMN_NAME+'))'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = @tablename
AND DATA_TYPE LIKE '%char'
edited
p.s. maybe some performance gain by only LTRIM...
October 21, 2005 at 7:43 am
If it is only 3 columns (bet it is not though )
CREATE TABLE #temp (Col1 int,col2 int,Col3 int,Key1 int,Key2 int,Key3 int)
INSERT INTO #temp...
October 20, 2005 at 7:46 am
Nice solutions Vladen
![]() | you can't pass a parameter into the... |
October 20, 2005 at 4:34 am
The limit of 1000 is fixed in the ADSDSOObject it cannot be altered
However, what you could do is do several queries which return < 1000 rows at a time, eg
will...
October 20, 2005 at 4:14 am
![]() | are you being a sore loser again |
Only bruised ego
![]() | maybe David's in his "burrow"...?!?! |
Nah! Treating you with the contempt you deserve
October 19, 2005 at 10:25 am
oooops! forgot to initialise the variable
need to add
SET @count = 0
before sp_executesql
October 19, 2005 at 8:51 am
Viewing 15 posts - 2,131 through 2,145 (of 3,543 total)