Viewing 15 posts - 1,906 through 1,920 (of 2,007 total)
NicHopper (6/17/2010)
skcadavre (6/17/2010)
As I mentioned in the previous version of this thread - I'd use SSIS, query parts of it and build a file by appending the seperate parts.
Hi,
Sorry I'd...
June 17, 2010 at 5:59 am
I'd use SSIS, query parts of it and build a file by appending the seperate parts.
June 17, 2010 at 5:39 am
Is it always three characters before the part that you're interested in? And always three characters after it?
e.g. XX_wantthis ?
If so, simple way to do it is: -
--First, lets build...
June 17, 2010 at 5:30 am
Are you just trying to strip the numbers/special characters?
If so: -
DECLARE @input AS VARCHAR(50)
SET @input = '00_MECH_UG,00_PRE_LG'
SELECT @input
DECLARE @output VARCHAR(50)
SET @output = ''
DECLARE @length INT
SET @length = Len(@input)
DECLARE...
June 17, 2010 at 5:19 am
Open the report in BIDS (SQL Server Business Intelligence Development Studio).
June 17, 2010 at 5:08 am
dunne.neal (6/17/2010)
hiyes it looks like you understood the question
the code gives the error - invalid object name catalogue
Thanks again
The code you were given works if executed in the correct...
June 17, 2010 at 4:34 am
--First, lets build some test data
DECLARE @table AS TABLE(
rid VARCHAR(50),
posi INT,
busn VARCHAR(7),
ddate DATETIME)
--Using the test data you specified...
June 17, 2010 at 3:22 am
NicHopper (6/17/2010)
However the issue I'm getting is that my file seems to stop writing at around 37mb, about half way through, anyone any suggestions on how I can resolve this?
I...
June 17, 2010 at 2:36 am
DECLARE @date AS VARCHAR(10)
SET @date = '2010/01/29'
SELECT CONVERT(VARCHAR(10), (CONVERT(DATETIME, @date)), 101)
--OUTPUT -> "01/29/2010"
??
June 16, 2010 at 8:47 am
The reason you've had no replies is because you've not given us much incentive to work on it. Post your data like this: -
DECLARE @table AS TABLE(
eventid ...
June 16, 2010 at 3:26 am
With the restriction you've placed, chances are that the only way you'll get a performance increase would be to either feed the server's hamsters rocket fuel or get a bigger...
June 16, 2010 at 3:04 am
In that case, I'd need to be able to reproduce the error to look into it. With no data, that's not possible. When I tried using test data I wrote,...
June 15, 2010 at 5:11 am
Please re-read my post and execute the SQL I showed.
The SELECT query you wrote to see the max length of the column is not doing what you think it is...
June 15, 2010 at 4:52 am
SQLSeTTeR (6/15/2010)
Nope, that is it. here is the table structure. It's truncating at AttributeValue column.select max(len(AttributeValue)) from ClientXAttributeText
--3167
SQLSeTTeR (6/15/2010)
[AttributeValue] [varchar](8000) NULL
SQLSeTTeR (6/15/2010)
June 15, 2010 at 4:44 am
I found this script awhile ago that dynamically alters tables
--ALTER TABLES SCRIPT
--change the line marked *** to suit your update needs....
-- Jamie Moffat, 4/2/02
DECLARE tablenamescursor CURSOR FOR
--*** ...
June 15, 2010 at 4:32 am
Viewing 15 posts - 1,906 through 1,920 (of 2,007 total)