Hello,
I have a dynamic table with id_client and periods, every month a column period related to the month+year is created in my table, I must fill this table with the id client and the amount per period, I've find how to creat the dynamic table but not how to insert records in my table, how can I do that
I'm working with a stored procedure.
IdClient 200901 200902 200903 200904
C001 35 € 42 € 19 € 22 €
Please any one can help me :thumbsup:
Thanks for your answers
Comments
Hanen TALBI
My Blog - nav.education
Hanen TALBI
This should also be moved to the SQL forum.
My Blog - nav.education
Hanen TALBI
If it is one-time generation, then it is ok to add fields in table. But if you want to use data for reports, then think to extend Key with additional column - Period.
WTF?!?!? :-k :bug: ?
I'm using stored procedure, to create my dynamic table to be exported, everything is perfect but only the insert into didn't work, I can't fill it
Hanen TALBI
but if you're doing it in SQL it's your choice.
could you paste your stored procedure which inserts the records? Then it would be much easier to help you
thanks for everybody's help =D> :thumbsup:
Just one more question, anyone knows whow can we export Data to MS Excel 2007 from SQL Server 2005
Hanen TALBI
Thats about it...
I found how to do it but it works for a table not a dynamic temp table
Hanen TALBI
not sure tu understand this post...what are you trying to achieve?inserting a field from code?you can't do it
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Can you tell me how?????
Hanen TALBI