Groups | Blog | Home
all groups > sql server programming > august 2003 >

sql server programming : Insert data to crossib qurey


John Bell
8/23/2003 9:14:15 PM
Hi

If your data is in a SQL Server database, you would enter the data into each
table separately. To produce a crosstab query check out the following
article and links. You may also want to check out google.

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=%23GZCh7fTBHA.224%40tkmsftngp07

John

[quoted text, click to view]

Roy Goldhammer
8/23/2003 10:52:46 PM
Hello there

I have a query that i need to enter to table

The query is crossib (Pivot)

and the data should enter for two tables: tbl1(ID - primary key, other)
tbl2(ID- Foreign Key from from tbl1, ColName - the columns on the crossib
query) both of them are Primary key and data

How can i enter this type of data witn Transact Sql?

Any help would be useful


John Bell
8/23/2003 11:20:54 PM
Hi

How you convert the data from your interface to SQL queries that can be
executed against the database is really depending on what you have written
the interface in. It is best not to pass arrays (or other representations of
such) to stored procedures.


John


[quoted text, click to view]

Roy Goldhammer
8/24/2003 12:36:22 AM
Well John

I don't know if i explain my self clear before

I have a case that i need to present the data in crossib mode and then store
it in table

There fore i can't use one table so i need two tables like the example i
gave you

The question is how can i store the data on the two tables in this case?

From my knowladge i can only do this with cursors which is as i learn
somthing that don't suggested at all

can you help me on it? i
[quoted text, click to view]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=%23GZCh7fTBHA.224%40
tkmsftngp07
[quoted text, click to view]

AddThis Social Bookmark Button