Viewing 10 posts - 1 through 10 (of 10 total)
Sailor (11/29/2012)
8.0
85
1 SQLCHAR 0 1 ...
November 29, 2012 at 1:47 pm
That would work. Just a FYI, something like this would also work:
INSERT INTO dbo.PROVIDER_TO_TRUSTED_PROVIDER_COLLECTION (OID, OID_LINK)
VALUES
('002771F071C541F4B5478D246381E7E7','CB30DF919B0F468AB203FFD848D11463')
,('003A19E3D3B040958EFA16EB2585B0DC','CB30DF919B0F468AB203FFD848D11463')
,('00CD83EC6F9E4CCDAA22D8D7C6B8C59E','CB30DF919B0F468AB203FFD848D11463')
,('00DE552BB51A490B91E87E6E1236CBD8','CB30DF919B0F468AB203FFD848D11463')
November 21, 2012 at 8:37 am
It sounds like you're having a conversion issue. Can you paste more of the top of the procedure? (Like where the procedure and the variables are declared)
November 21, 2012 at 7:55 am
Depending on what exactly is happening, there are a couple of ways to do it. If @PolicyId is an int like you state, the following should work
--check if PolicyId...
November 21, 2012 at 6:53 am
How many characters do you need it to take? (or really, its a numeric length)
It's also possible that I don't understand exactly what you're looking for. Are you trying...
November 21, 2012 at 6:46 am
hoseam (11/21/2012)
I want to validate my input parameter, which is policy Id (int)
So I have:
declare @Valid_PolicyId int
select @Valid_PolicyId = count(*)
from Selestia_BI_Staging_Source.dbo.PR_REB_SNAPSHOT rs WITH (NOLOCK)
where rs.POLICY_ID = @PolicyId
--check if PolicyId...
November 21, 2012 at 6:38 am
Edited after re-reading..
I'm actually not sure what you're looking for either. You appear to be attempting to insert values from a table back into the same table. Some...
November 20, 2012 at 8:52 pm
Oh, I neglected to mention that the data files I import don't have decimals (the decimal is implied based off of the field precision\scale) so.... it might not work if...
November 20, 2012 at 1:52 pm
I have some code that will build an import script for a fixed width table based on the table description. I find that it generally works (and does Unix...
November 20, 2012 at 1:48 pm
Our company creates data sets as a product. In QM we have a production database and part of the company production process is running all the data through a...
August 3, 2012 at 12:06 pm
Viewing 10 posts - 1 through 10 (of 10 total)