Viewing 15 posts - 15,346 through 15,360 (of 15,376 total)
if it is ALWAYS 2 decimals just multiply by 100
otherwise cast it to a varchar and then replace '.' with ''
😛
April 15, 2009 at 10:43 am
This is a 2 part question -
1st - the field b.DOCAMNT returns with decimals (164.23 example - and usually there are 50 - 100 results returned for different check...
April 15, 2009 at 10:18 am
Try this as a great starting point. It has all the code for you in vb.net. 😛
April 15, 2009 at 8:29 am
I too am having some troubles getting this update to work. There are definitely issues with your cursor but when I reworked it I discovered that the image datatype is...
April 15, 2009 at 7:46 am
If you can post at least the create scripts for your tables i will play with it and see what I can come up with. 😛
April 14, 2009 at 3:14 pm
I figured you could just the dreaded cursor for the one time import since you already have figured out the path to the current file.
If you want to do this...
April 14, 2009 at 3:08 pm
something similair to this should let you insert them without much issue:
INSERT INTO myTable(Image)
SELECT * FROM
OPENROWSET(BULK N'FullPathHere', SINGLE_BLOB)
April 14, 2009 at 2:50 pm
That would depend on what reporting system you are using and the rules about generating an image in their reports.
April 14, 2009 at 2:43 pm
That leads to my other question. do you really need the intermediate table? One candidate can have multiple positions AND one position can have multiple candidates.
This would be many times...
April 14, 2009 at 2:31 pm
If you use int (or bigint if you expect LOTS of rows) columns set as identity instead of GUIDs it would be a lot easier. The you can just use...
April 14, 2009 at 2:24 pm
something like this do what you need?
SELECT top 1 *
FROM MyTable
WHERE MyDataType = 'A'
AND MyTimeStamp <= '1pm'
order by MyTimeStamp
April 14, 2009 at 2:15 pm
There seems to be something missing in your description unless you just want to insert a new record to the Position table with no PositionName when you insert a candidate.
April 14, 2009 at 2:07 pm
From the original post it looks as though he wants the values concatenated with a ',' instead of just a sum. Otherwise it would be too easy. 😉
April 14, 2009 at 1:06 pm
now my #tmp is filled with 214 rows,
87 of them have the same ID value(when I use distinct x_val
on #tmp I get 87 rows)
You have 87 unique values, not 87...
April 14, 2009 at 12:49 pm
Furthermore, there are no foreign keys in any of the tables. Relationships are managed via a link table.
I know nothing about iBase but this would be enough to tell me...
April 14, 2009 at 10:54 am
Viewing 15 posts - 15,346 through 15,360 (of 15,376 total)