![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to copy the data in two spreadsheets into two tables in "SQL Server 2000". Below are the details: One spreadsheet contains the data that needs to be added to an existing table in SQL server. All field names in the spreadsheet match the DB table column names. Another spreadsheet contains the data that needs to be copied to a new DB table. The table currently does NOT exist in the DB. I'm not sure how to accomplish this. ANy help would be appreciated. |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
| SQLGUY.. you said if I needed more help!!! The spreadsheet I was given to import has 24 columns and 76 rows. all column names are the same in the source and destination - in other words, the first row in the spreadsheet match the column headings in the sql server table i'm importing to. Maybe this is an easy thing and i'm just missing something.. but I get this error trying to import: first, on the 'select sources tables and views' it is giving me THREE source tables to select from. I choose all three and then change my destination to the destination SQL Table. When I run it, I get errors stating somrthing like NULL not allowed. any ideas? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#6
| |||
| |||
|
#7
| |||
| |||
|
| I changed one of the rows in the table on the SQL server side to accept a NULL Value so I fixed that problem. I guess what I'm confused about it the fact that I CHOOSE THE ONE SPREADSHEETAS THE SOURCE and then on the 'select sources tables and views' AND IT IS GIVING ME THREE source tables to select from !!!!! AND THEN When I go ahead and select all three and choose my SQL table to import them into, I'm not getting this error: Violation of Primary Key constraint 'PK_Faultresolutions' cannot insert duplicate Key in FaultResolutions I'm thinking maybe my spreadsheet is formatted incorrectly? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#8
| |||
| |||
|
#9
| |||
| |||
|
| On a NEW spreadsheet, I also see sheet Sheet1$ Sheet2$ Sheet3$ The spreadsheet I'm trying to import has ONE worksheet called Voice. Yet when I do the Import, it shows THREE worksheets to import: Voice$ Voice$Print_Area Voice$Print_Titles ??? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |