Viewing 15 posts - 9,706 through 9,720 (of 13,461 total)
the issue is datatypes; integers/number datatypes do not have preceeeding zeros;
i think your table dbo.ReportFinal.MedRecNO is defined as an integer;
you said it's defined as an nvarchar, but that's the only...
April 12, 2010 at 10:36 am
Ray it's easy to do, but trying to do it in TSQL is not a good implementation.
TSQL's the wrong tool for this job.
I'd say it's much better and easier to...
April 12, 2010 at 7:13 am
if you move the alter into an EXEC statement, it will work:
If Not Exists(Select column_name From information_schema.columns
Where column_name = 'InsertedDateTime'
And table_name = 'RecipEligToVendorErr')
Begin
Begin Transaction
EXEC('Alter Table RecipEligToVendorErr
Add InsertedDateTime DateTime...
April 12, 2010 at 7:07 am
some of it is your order of operations:
'PTE III'
you are replacing this first:
replace(billtoaddress1, 'PTE I', 'PT')
replace(billtoaddress1, 'PTE II', 'PT')
replace(billtoaddress1, 'PTE III', 'PT')
so the end result is PTEII
that's not what you...
April 12, 2010 at 6:54 am
some of this may be beyond my ability to explain it, but here goes:
a TEXT or IMAGE datatype fields can store something like 2 gig of characters; it's variable...
April 11, 2010 at 4:25 pm
both your tables have a column named "NAME" of the datatype TEXT:
..Name TEXT NOT NULL ,...
those data types are stored in a different way; a pointer is stored and the...
April 11, 2010 at 3:12 pm
lol the redirect thread has more posts than the thread we should reply to.
April 9, 2010 at 11:48 am
it might help...the devil is in the details.
the pseudo code example we have so far doesn't give us enough to work with...if the big table has an index on the...
April 9, 2010 at 10:50 am
I think by just adding to the WHERE statement to Gianluca's fine example, you'd make sure you don't change fields where they already match, you'll prevent re-processing of the same...
April 9, 2010 at 10:40 am
get a copy of the free program SQLRecon from specialopssecurity.com[/url];
it is the most full featured pprogram I've found for discovering all the SQL servers on a network;
the documentation says it...
April 9, 2010 at 8:58 am
Once again, you guys helped me be a better programmer; I learned a lot with this thread.
converting that MTVF to an ITVF made me understand the concept better, and this...
April 9, 2010 at 7:52 am
something like this Simon;
the CHARINDEX function lets you find the position of specific strings within strings; then it is just a bit of tweaking to skip the parts you do...
April 9, 2010 at 4:29 am
the issue is data related; you are going for a diff in seconds; the max value is an integer(2147483648 or unsigned 4294967296?)
but the difference between the two dates is bigger...
April 8, 2010 at 12:27 pm
you have to use a split function which changes the string @tech_list into a table function. otherwise you are trying use IN on a string which just happens to contain...
April 8, 2010 at 11:40 am
the error is related to the row size of the insert; > 8062
for example, if i have 25 columns, and they are all defined as varchar(500), 25 X 500 =...
April 8, 2010 at 10:13 am
Viewing 15 posts - 9,706 through 9,720 (of 13,461 total)