Viewing 15 posts - 61 through 75 (of 237 total)
I've sort of cobbled something that works, my next question is how do I return the value @alcount rather than print it?
declare @TmpName as varchar (2000)
declare @TmpName1 as varchar (2000)
declare...
April 23, 2013 at 5:37 am
thanks both of you, I give both a try and see what's easier, although I think I'd rather it was done inside a SP rather than clientside
March 9, 2013 at 1:46 pm
I've worked it out and I've included it below, unless someone can show me a better way?
CREATE TABLE #Results (RowID int identity(1,1), Col1 varchar(max),col2 varchar(max), col3...
March 9, 2013 at 12:55 pm
turns out what you suggested did work after all, I'd like to thank you for your help
December 27, 2012 at 4:21 am
GilaMonster (12/27/2012)
You shouldn't be using TEXT in the first place, it's an old SQL 2000 data type, included only for backward compatibility. Use Varchar(max)
Varchar(Max) isn't allowed in my situation either
December 27, 2012 at 4:04 am
Thanks Chris, I must admit I tried everything except that yesterday.. that worked a treat
December 11, 2012 at 1:19 am
That's fine Sean, I've done the same myself. As for my problem, although your solution looks good and as it stands would work with my table, I've put the amount...
September 25, 2012 at 1:59 pm
is the following that I put in a thread earlier not good enough? it created a table with the desired data inputted. What I wanted is an output that gave...
September 25, 2012 at 8:24 am
That works well, thank you, but I need it to go across all the fields at once, adding all the data to a single table or recordset
September 25, 2012 at 7:41 am
My appologies, I've now created a script to make a table containing the data... I hope this helps
USE test
GO
-- Creating Test Table
CREATE TABLE testtable(field1 datetime, field2 VARCHAR(400),...
September 25, 2012 at 3:39 am
That's great thanks. I didn't just want code, I always want to know how it works too. Many thanks to everyone who contributed in the answers to my question
January 23, 2012 at 2:05 am
EDIT
please excuse me, I've gone back over the code and discovered a typo caused by me. Everything appears ok, thanks
January 23, 2012 at 1:06 am
thanks for the various solutions from you guys, I've tried the last piece of code 'as is' and got the following error
Msg 241, Level 16, State 1, Line 1
Conversion failed...
January 23, 2012 at 1:03 am
I do just delete or add columns, or sometimes I simply rename a column, although if this happens once or twice a year it's a lot
January 20, 2012 at 9:14 am
The table is part of a larger table and is used for other things, I just want to be able extract the piece of data I explained in my original...
January 20, 2012 at 8:58 am
Viewing 15 posts - 61 through 75 (of 237 total)