Viewing 15 posts - 13,351 through 13,365 (of 15,381 total)
toddasd (12/13/2011)
omalie24 (12/13/2011)
...every field stays the same except for the on being incremented....see code that i have below...it inserts first letter of each column and loop doesnt break..
That's because all...
December 13, 2011 at 12:58 pm
So your ddl is not accurate either? It is really hard to figure out what you want when it keeps changing.
Something like this maybe?
create procedure GetSomeCount
(
@ChildID int
) as begin
;WITH cte...
December 13, 2011 at 12:35 pm
Learner1 (12/13/2011)
What if I run like this changing the where caluse to IN ----Where childId...
December 13, 2011 at 12:21 pm
Learner1 (12/13/2011)
once i get this fixed for 87 I will use this function to run for other MAINID's
So basically I need...
December 13, 2011 at 12:09 pm
I took the liberty of fixing your sample data.
CREATE TABLE [dbo].[test](
[main_id] [int] NULL,
...
December 13, 2011 at 11:35 am
Welcome to SSC. It is really difficult to figure out what you are trying to do. It seems that you want to insert some data and have a sequential number...
December 13, 2011 at 11:25 am
Can you put together some ddl and sample data? It sure make life a lot easier without having to create your structures and data. 😉
December 13, 2011 at 11:14 am
That solution would require a large amount of dynamic sql with potentially hundreds of joins to the same table. I have an idea that would work using a string splitter....
December 13, 2011 at 11:06 am
Dev (12/13/2011)
Sean Lange (12/13/2011)
...Another option that would accomplish both sides is to add an identity as your primary key and a unique constraint on the other two fields.
Another...
December 13, 2011 at 8:22 am
Dev (12/13/2011)
DenisT (12/13/2011)
December 13, 2011 at 7:53 am
Then you will have to add the date field as part of your foreign key. 😉
December 13, 2011 at 7:17 am
If you want actual help you have to post actual information. As I said before...
Start by posting ddl (create table scripts), sample data (insert statements), desired results based on sample...
December 13, 2011 at 7:11 am
luis martin ortiz barrutia (12/12/2011)
December 12, 2011 at 2:43 pm
ricko (12/12/2011)
It happens for any row in my data set. I just bring back the one field causing my problem like so
SELECT...
December 12, 2011 at 2:33 pm
Not exactly sure why there is an issue but are you actually taking a datetime, converting it to char and then back to datetime? Can you just simply use the...
December 12, 2011 at 2:02 pm
Viewing 15 posts - 13,351 through 13,365 (of 15,381 total)