Viewing 15 posts - 14,326 through 14,340 (of 15,381 total)
Being that you have sql 2005 there is no such datatype as date. As you said you have to use datetime. You can display your datetime field in any format...
August 4, 2011 at 10:13 am
The IsNumeric function has been the cause of a lot of failed code over the years. It is really not a good way to accurately determine if a value is...
August 4, 2011 at 8:53 am
You have mixed datatypes in your case statement. The first case will be a decimal and then your case else is trying to put a string in that column. You...
August 4, 2011 at 7:45 am
Is it an actual foreign key as established on the table or is it only a logical foreign key?
August 3, 2011 at 12:55 pm
Sounds like you have an order by on your select statement that is different than the order by in your row number?
select *, ROW_NUMBER() over (order by N) as RowNum...
August 3, 2011 at 8:11 am
I don't know how the task in SSIS works but there are countless books and examples of regular expressions. C# has a regular expression class. Not exactly sure what you...
August 2, 2011 at 2:24 pm
Here try this link. It has plenty of great examples.
August 2, 2011 at 2:21 pm
Ninja's_RGR'us (8/2/2011)
Sean Lange (8/2/2011)
I wouldn't even try to roll your own. Take a look at Jeff Moden's string parser[/url]. What you have is a delimited string using ^.
For the 3rd...
August 2, 2011 at 1:05 pm
Are you quoting me to say that my suggestion is also yours or did you forget to include your comments?
August 2, 2011 at 12:08 pm
You got your parameters mixed up in CHARINDEX. 😉
DECLARE @FullName varchar(25)
SET @FullName = 'COYOTE^WILE^E'
--SET @FullName = REPLACE(@FullName,'^','8')
SELECT @FullName -- = COYOTE8WILE8E
SELECT CHARINDEX('^', @FullName,1) -- = 0
August 2, 2011 at 11:25 am
I wouldn't even try to roll your own. Take a look at Jeff Moden's string parser[/url]. What you have is a delimited string using ^.
August 2, 2011 at 11:23 am
WOW!!!! There is no way anybody is going to decipher that for the wages we make around here.
There is a ton of stuff in there that is crippling your...
August 2, 2011 at 9:35 am
Sounds like the OP is used to working with Access where if you write a query like that and the parameter is not passed to the query it will create...
August 2, 2011 at 7:40 am
GSquared (8/1/2011)
August 1, 2011 at 2:43 pm
You could achieve this fairly easily in an instead of insert trigger.
August 1, 2011 at 12:48 pm
Viewing 15 posts - 14,326 through 14,340 (of 15,381 total)