Viewing 15 posts - 3,091 through 3,105 (of 3,544 total)
Variation of above with a loop. You can wrap this in a proc and pass text.
CREATE TABLE #temp (rowid int,textcol ntext)
INSERT INTO #temp...
Far away is close at hand in the images of elsewhere.
Anon.
September 10, 2003 at 3:15 am
BOL will give you details and examples of ntext search & replace using PATINDEX, DATALENGTH, TEXTPTR, UPDATETEXT etc.
Do you want to update the ntext col or use it in a...
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 7:53 am
Rough solution (not tested)
DECLARE @RecCount int
SET @RecCount = 1
CREATE TABLE #TempDoc (DocumentID int)
CREATE TABLE #TempDoc1 (DocumentID int)
CREATE TABLE #TempDoc2 (DocumentID int)
INSERT INTO...
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 7:16 am
Yeah, buffer overrun or more probably memory leak!
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 7:04 am
OK Frank,
Stupdi me, figner troublle agin.... ![]()
should have been 'for 3 weeks'.
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 6:51 am
Started off as a programmer (Woolworths UK) in 1976 with ICL 1900 mainframe using COBOL and ICL IDMS databases, progressed to ICL 2900, ICL ME29. Made redundant, Joined Colt and...
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 6:48 am
Hi Frank,
Naming names eh! That's not fair. I would have responded anyway but out of the office for 3 weeks (as you know) and BTW thanks for the emails.
As for...
Far away is close at hand in the images of elsewhere.
Anon.
September 9, 2003 at 6:33 am
In that case can you post the table definition and some sample data in that format and is there a maximum number of 'Comp' values?
Far away is close at hand in the images of elsewhere.
Anon.
August 7, 2003 at 8:07 am
As Allen's post alludes to, openquery must have a resultset returned. You can fool sql server by appending a dummy select to the query. In sql server I would do...
Far away is close at hand in the images of elsewhere.
Anon.
August 7, 2003 at 8:04 am
Here's a solution using dynamic sql
declare @max int
declare @ct int
declare @sql nvarchar(250)
select @max = max(Comp) from tablea
create table #newtable ([ID] int)...
Far away is close at hand in the images of elsewhere.
Anon.
August 7, 2003 at 7:52 am
Don't know about functions (I'm on SQL7) but I suppose you could write a function to return a result of lookup for username in master..syslogins and check sysadmin, securityadmin, serveradmin,...
Far away is close at hand in the images of elsewhere.
Anon.
August 6, 2003 at 7:40 am
BOL = Books OnLine. It's SQL Server help manual if you like. It is installed when you install SQL Server or the client tools. It is the first place I...
Far away is close at hand in the images of elsewhere.
Anon.
August 6, 2003 at 2:08 am
No, I was referring to the function. According to my BOL (SQL7) you can supply a seed for the IDENTITY function but it does not imply that you can use...
Far away is close at hand in the images of elsewhere.
Anon.
August 5, 2003 at 7:26 am
Can you post the format file and some sample (non sensitive) data.
Far away is close at hand in the images of elsewhere.
Anon.
August 5, 2003 at 6:21 am
Is there anything in the tables to identify the rows to enable a match. Without any row numbering even cursors may give you inconsistent results, remember sql server does not...
Far away is close at hand in the images of elsewhere.
Anon.
August 5, 2003 at 6:19 am
Viewing 15 posts - 3,091 through 3,105 (of 3,544 total)