I have a problem with SQL Server 2000. I have a rather large database (3 gigs). I have the recovery mode set to bulk-logged because I'm importing 300,000+ records (through Acccess (linked tables) due to several importing checks which need to be done which SQL Server DTS can't handle.) The problem is that my Transaction log keeps growing very large after each import. I've tried several different settings in SQL Server but I don't want to slow down the import process which runs through a rather intensive checking process. The problem is that the Transaction log keeps growing and will only shrink after nightly backups.
I've tried shrinking the database after 1 of the imports (which causes the Transaction log to grow to 400+ megs) and can't get it to shrink no matter how I do it (even tried using Backup Log Rebates WITH Truncate_Only as well as the All Tasks - Shrink Database.)
I also tried setting the Transaction log to 400 megs and not allowing it to grow.
What's the best way to do this with the settings in SQL Server? I still need to use Access to do the checks (a stored procedure/DTS won't work with all the checking needing to be done on each import.)
I am using Windows 2003 server and Sqlserver 2005 by the use of Linked server , I made a connection to Oracle 10g after that I am importing records from Oracle to sqlserver 2005. When I made tnsnames.ora in sql machine , it worked fine but when i am using tnsnames file from oracle server then i fiired importing procedure it returns below maintain error :
OLE DB provider "MSDAORA" for linked server "BI_ORACLE_LS" returned message "Unspecified error".
OLE DB provider "MSDAORA" for linked server "BI_ORACLE_LS" returned message "Oracle error occurred, but error message could not be retrieved from Oracle.".
Msg 7311, Level 16, State 2, Line 1
Cannot obtain the schema rowset "DBSCHEMA_TABLES" for OLE DB provider "MSDAORA" for linked server "BI_ORACLE_LS". The provider supports the interface, but returns a failure code when it is used.
I am attempting to import a database from one server (2000) into another one (2005). I have tried a variety of methods to do so, but each seems to have at least one hiccup. The biggest frustration is that, depending upon how I setup the tables prior to import, one of two things ends up kicking me in the rear:
1) I leave the IDENTITY cols set as such, and even though I enable identity insert in the wizard (SQL Server 2005 Management Studio), they end up just incrementing starting at 1 as though it was fresh data. Obviously, once I apply the PKs and FKs, everything falls to pieces.
2) I initialize the identity cols as INT, and the data imports just fine. However, when I try to add the IDENTITY to the cols, it tells me to go screw myself. Actually, it just throws a syntax error. Here is the statement that I'm attempting:
ALTER TABLE myTable ALTER COLUMN myCol IDENTITY GO
I have also tried
ALTER TABLE myTable ALTER COLUMN myCol INT IDENTITY GO
I'm pulling my hair out with this one. It's played a rather significant role in me getting only 2 hours of sleep in the last 40+ hours. I really try not to post questions without exhausting myself trying to figure out the answer, or to find it with research (which is part of figuring it out). I am a moderator on EasyCFM.com's ColdFusion forums (mquack is the screenname), so I know how annoying it is when people don't put forth any effort on their own. Hopefully I don't come across here as being "one of them".
Any help or guidance to the *right* sources would be very much appreciated.
Hello,I need to set up a development platform at home with a copyof a DB from a SQL server at a friend's company.So far, all my attempts at backup/restore or export/importhave failed despite my reading all the documentation Icould find (I am a newbie).Using DTS/Export wizard, I tried to export the DB first to aplain text file, then to an excells file. After having gonethrough all the screens, the export script runs. Itexported all the data for close to one hour, but at the endI only get a 0kb empty text file, or 5kb empty excellsfile.Is there a feature on SQL server preventing export (such asfor security reasons)? Then why would the export wizard runfor so long, just to output nothing?Since it's only for developement, I don't need the latestdata yet, so I burned on CD the .bak backup filespreviously made, but I couldn't import nor restore them onthe other machine. Depending on what I tried, I had variouserror messages, like* an improper login and password (which should this be: thatof the owner of the DB on the source SQL server, or that ofthe SQL admin or windows admin on the target server?),* an error saying that the backup doesn't belong to theempty DB I try to restore to...* I even managed to import a mydbname.bak.dns file with theDTS wizard (apparently it was a backup of an Access DB, notthe SQL Server DB I need), but the import script runsapparently smoothly for a while, but then the target DBdidn't contain any of the imported tables, only the systables.For the last several weeks, I have tried everything I couldthink of, read the docs, but still I am at a loss as to howto import or make a copy on my system of the BD from theoffice.What would be the proper procedure to import/restore thecopies of the backup I have burnt on CD into my freshinstall of W2000/SP1 + SQL Server 2000?Failing that, I can go back to my friend's office and tryagain to export the data, but how do I make sure I don'tend up with an empty file?thank you,Anguo.--http://www.masquilier.org/Condorcet, Approval alternative, better voting methods.http://www.gnosis-usa.com/Revolutionary Psychology, White Tantrism, Dream Yoga...http://www.reuniting.info/Intimate Relationships, peace and harmony in the couple.
Can someone please help me. I need to import a csv fiel to sql server and I know that the column delimiter is and the newline delimiter is but I don't know what the rowterminator is or the fieldterminator. How can I import the file into an empty table in an existing database. Any suggestions would be greatly appreciated.
Dear AllI am trying to import data from excel sheet to sql server database, by using method 2, it creates a table on fly but it never shows any table in database tables' list but when i execute the code again, system throws an exception that table already exists.On the other hand method two assumes that there is an existing table in db, but after execution, it never shows data, table remains empty. Here is code, please tell me whats wrong with this code.Regards<code>Dim ExcelConnection As New System.Data.OleDb.OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\annieanna.xls;Extended Properties=Excel 8.0;")ExcelConnection.Open()'For existing Table.................METHOD 1Dim ExcelCommand As New System.Data.OleDb.OleDbCommand("INSERT INTO [User ID=sa;Data Source=CBS101;Initial Catalog=IIETesting;Provider=SQLOLEDB.1;Workstation ID=CBS003].[anna] SELECT * FROM [Sheet1$];", ExcelConnection) 'For new Table......................METHOD 2Dim ExcelCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO [User ID=sa;Data Source=CBS101;Initial Catalog=IIETesting;Provider=SQLOLEDB.1;Workstation ID=CBS003].[anna] FROM [Sheet1$];", ExcelConnection)ExcelCommand.ExecuteNonQuery()ExcelConnection.Close()</code>
I am trying to import records form ACT! to an SQL Server Database. I can import all the records except for the linked tables (notes/ history, etc.) any thoughts on this would be greatly appreciated!!!!!!!!!
I am getting an error importing a comma deliminated file. I deleted all single ' quotes from the file. I can imported tab deliminated files without and error
Here is the message I get using the import wizard.
Its a giant file around 3 gb, I can only open it in ultra edit.
All the fields have been created using varchar(255)
Operation stopped...
- Initializing Data Flow Task (Success)
- Initializing Connections (Success)
- Setting SQL Command (Success)
- Setting Source Connection (Success)
- Setting Destination Connection (Success)
- Validating (Warning) Messages * Warning 0x80047076: Data Flow Task: The output column "Column 0" (10) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 1" (14) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 2" (18) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 3" (22) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 4" (26) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 5" (30) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 6" (34) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 7" (38) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 8" (42) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 9" (46) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 10" (50) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 11" (54) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 12" (58) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 13" (62) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 14" (66) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 15" (70) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 16" (74) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 17" (78) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 18" (82) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 19" (86) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 20" (90) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 21" (94) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 22" (98) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 23" (102) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 24" (106) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 25" (110) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 26" (114) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 27" (118) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 28" (122) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 29" (126) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 30" (130) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 31" (134) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 32" (138) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 33" (142) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 34" (146) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 35" (150) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 36" (154) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 37" (158) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 38" (162) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 39" (166) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 40" (170) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 41" (174) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 42" (178) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 43" (182) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 0" (10) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 1" (14) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 2" (18) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 3" (22) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 4" (26) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 5" (30) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 6" (34) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 7" (38) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 8" (42) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 9" (46) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 10" (50) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 11" (54) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 12" (58) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 13" (62) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 14" (66) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 15" (70) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 16" (74) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 17" (78) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 18" (82) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 19" (86) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 20" (90) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 21" (94) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 22" (98) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 23" (102) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 24" (106) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 25" (110) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 26" (114) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 27" (118) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 28" (122) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 29" (126) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 30" (130) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 31" (134) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 32" (138) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 33" (142) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 34" (146) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 35" (150) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 36" (154) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 37" (158) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 38" (162) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 39" (166) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 40" (170) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 41" (174) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 42" (178) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
* Warning 0x80047076: Data Flow Task: The output column "Column 43" (182) on output "Flat File Source Output" (2) and component "Source - Skinner-VOTERLIST-12-MAR-07_TXT" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. (SQL Server Import and Export Wizard)
- Prepare for Execute (Success)
- Pre-execute (Error) Messages * Information 0x402090dc: Data Flow Task: The processing of file "C:NYDataSkinner-VOTERLIST-12-MAR-07.TXT" has started. (SQL Server Import and Export Wizard)
* Error 0xc0202004: Data Flow Task: The number of columns is incorrect. (SQL Server Import and Export Wizard)
* Error 0xc0202025: Data Flow Task: Cannot create an OLE DB accessor. Verify that the column metadata is valid. (SQL Server Import and Export Wizard)
* Error 0xc004701a: Data Flow Task: component "Destination - NY" (186) failed the pre-execute phase and returned error code 0xC0202025. (SQL Server Import and Export Wizard)
- Executing (Success)
- Copying to [VoterRecords].[dbo].[NY] (Stopped)
- Post-execute (Stopped) Messages * Information 0x402090dd: Data Flow Task: The processing of file "C:NYDataSkinner-VOTERLIST-12-MAR-07.TXT" has ended. (SQL Server Import and Export Wizard)
- Cleanup (Success) Messages * Information 0x4004300b: Data Flow Task: "component "Destination - NY" (186)" wrote 0 rows. (SQL Server Import and Export Wizard)
Hello,I nee to write something that will transfer excel data into an SQL Servertable.I have for another database application I wrote have it importing Excelspreadsheet data using cell by cell, row by row method. This is fullyautomated so the user can choose whatever spreadsheet they want to importand press a button which sits on a VB6 frontend.This has been good for that situsation but it can be very slow when thereare large amounts of data to process.I am just wondering are there any faster, better alternatives that wouldstill enable a user to select which excel spreadsheet to importas the application I am writing now will sit on a website frontend, usingASP, and I'd really like to try and speed things up if I could.any advice would be much appreciated.Thankyou,Oh, and hello, this is my first post here!Jayne
I'm new to SQL server. My huge data is there in DB2. I tried to import using SSIS import/export wizard, it does successfully with default datatype columns.
for example, If my DB table has numeric columns, it has been imported as "double" and if it is string, it has been impoerted as "nvarchar". Is there any way to have correct/equivalnet datatype import from DB2?
I am new to integration services. I need to import data from excel sheets to a sql server 2005 tables. I have 3 sheets which should be loaded into three different tables in sql server. I need the connection strings to be dynamic as the excel file names will change daily.Please get me some samples or some links to study to solve the above problem.
I created a dtsx with my user account and when I had imported it in SQL server I get the following error when trying to execute:
Executed as user TESTGISSYSTEM Failed to decrypt protected XML node, Key not vallid for use in specified state.
Even when I remove the password for the dtsx I still get the same error.
I saw the reply's on this Re: DTSX package will not run from SQL server agent Thread Starter: jschroeder Started: 13 Aug 2007 10:08 PM Replies: 2 but it was no solution for my problem.
Hello,Our company often receives data from outside sources to add to our application. This data is usually provided to us in Excel, CSV, XML, etc. The files that we receive usually have different columns from the columns in our database, so we have to map these columns to our table structure to import.I'm looking for an application that will easily allow me to load up the data file (whatever type it may be), expose the columns in the data file, allow me to map these columns in our SQL server, then import the data. I know that this can be done as DTS, however I'm looking for alternatives. Does anyone have any recommendations? Thanks in advance.
Hi, Can anyone help? Need to upload a text file to a sql database but keep getting errors. I'm creating a page that will allow users to to bulk import and update to a MsSql database. The users provide a text file every so often with new/update information. So i want to use a DTS package to transform the infomation, and create a table in the database, then check against existing/non existing records, if the record exist, update it, if not insert it. I'm using Visual Studio.Net, ASP.Net and coding in VB.Net.
Anyone know where i can find documentation/code regarding the above? I will be greatful for any help.
I am having trouble importing a database script into SQL Server Express. The script is from the Web Applications book from the Microsoft MCSD exams. My installation of SQL Server Express appears to be fine as I can login and create/delete databases through it. When I attempt to import the database script I get a variety of errors as follows:Msg 911, Level 16, State 1, Server ORTHANCSQLEXPRESS, Line 1Could not locate entry in sysdatabases for database 'Contacts'. No entry found with that name. Make sure that the name is entered correctly.Msg 15401, Level 16, State 1, Server ORTHANCSQLEXPRESS, Line 1Windows NT user or group 'ORTHANCSQLEXPRESSASPNET' not found. Check the name again.Msg 15410, Level 11, State 1, Server ORTHANCSQLEXPRESS, Procedure sp_addrolemember, Line 80User or role 'aspnet' does not exist in this database.Msg 15410, Level 11, State 1, Server ORTHANCSQLEXPRESS, Procedure sp_addrolemember, Line 80User or role 'aspnet' does not exist in this database.I have added access permissions for the ASPNET user account on the SQL Server Express folder but that doesn't appear to have helped. I'm not sure if the error about contacts.mdf means that I should have a contacts.mdf created as a result of the script or whether it should be there to begin with. I found this thread http://forums.asp.net/thread/433540.aspx but it didn't solve my problem.Apologies for the length of the post. Any help at all is greatly appreciated!
I know that the DTS Wizard is supposed to be able to handle heterognous data imports but I can't get it to work with a free FoxPro table. I have to export to a text file and then import from the text file and spend an hour renaming columns and farting around with datatypes.
CAN I GET A FOXPRO TABLE INTO SQL SERVER DIRECTLY OR NOT? HOW DO I DO IT?
I don't fully understand some of the questions the DTS Wizard is asking. Can anybody give me a blow by blow account before I ring the Samaritans?
Thank you and Happy Christmas - it may be my last if I can't speed up these imports. Either I'll jump under a bus or my boss will make mince pies out of me.
When I create a DTS package to import this column, only the values without a hyphen get imported correctly..and a null value will show for the numbers that have a hyphen in it.
I've set my datatype to varchar, float, nvarchar, text, etc in SQL Server 2000...but nothing seems to work. I have also changed the datatype in my excel spreadsheet to text, general, etc.
I've tried so many combinations, I forget which ones I've tested...Anybody have an idea what I should try ?
Relatively new to SQL, will be using it as the engine for a dynamic website...I have a database in Access that is the foundation for this site -- it's pretty simple, just a few tables with relationships established & a couple of queries.
Is there a tool that can migrate this Access db into SQL, or should I just reconstruct it? Been looking around for some tech notes and have been unsuccessful so far. Thanks in advance! -Valerie
Hi, I'm trying to import an excel file into SQL sever(using an insert statement), i'm creating a DTS package (in enterprise manager) and have VB Script. When i parse it, i get no errors, but when i run the package it says that it ran successfully but nothing happens, it doesnt insert into the table, even though i tested the insert statement. Can anyone help me?? Here's the code:
Function Main() on error resume next Set objxl = CreateObject("Excel.Application") objxl.Visible = False
Dim xlFile xlFile = "C:Datafile.xls" Set objWkb = objxl.Workbooks.Open(xlFile)
'' Connecting to SQL Server set cn = server.CreateObject("ADODB.Connection")
Dim serverName serverName = "myserver2"
strCS = "Provider=SQLOLEDB; Data Source=myserver2;Initial Catalog=mycat; Integrated Security=SSPI"
cn.ConnectionString = strCS On Error Resume Next cn.Open Set objsht = objWkb.Worksheets.Open("Sheet1") Dim client_name, rb, date_rvd, LOB Dim sql Dim row, sequence row = 2
client_name = Trim(objsht.Cells(row, 2).Value) Do While IsNull(client_name) = False And client_name <> "" 'client_name = Trim(objsht.Cells(row, 2)) rb = Trim(objsht.Cells(row, 4).value) date_rvd = Trim(objsht.Cells(row, 6).value) LOB = "WCS"
Has anyone done this before, I have been given some flat files for a Sybase database to import into SQL server. Yet SQL server doesn't want to know. I have a .db and .log, but SQLserv er doesn't like either of them.
However I'm not sure what to do, I have been given a .db and .log . but SQL server doesn't like either of these, is their something I should do to make it compatable? First tie I've ever look at Sysserver so please use short words, Thanks Ed
We are attempting to import data from Microsoft Access databases to SQL Server 2000 using the DTS Import/Export Wizard. I have a few questions.
1) Some of the Access tables have a single field for combined date time with the Access data type set to Date/Time and no formatting set. When the conversion happens these become text data type in the SQL Server. Is there a way to have these become either the smalldatetime SQL Server data type or datetime SQL Server data type?
2) On some other Access Tables with the data type set again to Date/Time again no formatting is set but some columns are dates with the date in the Short Date format, and some columns are times in the Short Time format. Some of these columns may contain null values. This is causing the following error.
Error at Destination for Row number 1. Errors encountered so far in this task: 1. Insert error column 152 ('ViewMentalTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow. Insert error column 150 ('VRptTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow. Insert error column 147 ('ViewAppTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow. Insert error column 144 ('VPreTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow. Insert error column 15 ('Time', DBTYPE_DBTIMESTAMP), status 6: Data overflow. Invalid character value for cast specification. Invalid character value for cast specification. Invalid character value for cast specification. Invalid character value for cast specification. Invalid character value for cast specification.
We thought maybe it was due to the naming of the one field as "Time" so we changed the name of that field but again the same error occurs but with the new field name.
When we click on the transform button to view the data types none of them are listed as timestamp.
Is it possible that the DB Admin saved some tables and then later on tried to add tables to the same database that is causing this error?
Are we better off trying to import the table structure first and then fill the tables later?
From SQL Server 2000 Import wizard if we use Copy Objects & data between SQL Server Databases it'll copies tables with primary key. Similar to this what is the alternative method in SQL Server 2005.
Hi there,I have a situation where an application needs to import data fromnumber of access mdb files on a daily bases. The file names changeevery day. The data import is very straight forward:insert into sql_table select * from acess_tableThere are up to 8 tables in each access file and some access files willhave less. So the process needs to figure out which tables exist inAccess mdb file and import them whole into sql staging tables.Any recommendations are appreciated.Thanks
HI!I am importing .txt files. How can i check the errors? I have created alog file, but the problem is that i lose some characters.I import for example:CodeABCFZHJHNfrom a text file, but sometimes Code can be 4 caracters longI import this 3 characters long now. When i add the same structuredtext file with some rows lenght 4, it skips the last character, but iget nothing in the log file.please helpxgirl
Can anyone help me??! What is the best way to import data from One Worldinto SQL Server? If it's possible to use DTS then should I use the OLEDBconnection object?Many thanks,Steve
I have a table for authors (for our bookstore) that has several fields(firstname, lastname, etc.) and an author_id field (set as identity)I'm trying to import a spreadsheet into this table, but keep gettingerror messages that say I can't import data into the author_id field(the identityf field).Can someone suggest what I can do to overcome this?Thanks,Bill
I have about 50 Excel files from which I have to import data with some transformations to Sql Server. My first approach was to use Excel Source component in a data flow to read the data . However, as it turned out column X in some files was being converted to a DT_NTEXT blob and in other files it was mapped to WSTR. The reason I guess is because column X contained string of varying sizes - some greater than 255 characters while others less than 255 ( max was 3000 ) . My package used a ForEach loop to iterate over all the Excel files in a directory and feed that to the data flow task. I played around with IMEX and TypeGuessRows setting but they didnt help me . In my second approach I used 2 Excel sources ; one set up for the blob type and the other for the string type . I joined them together using a precedence contraint. This worked but I then figured out that there were 2 other columns in my data that exhibited the same behavior. I couldnt continue with the mulitple Excel source approach cause I would then have 8 Excel source components. Finally, I played around with Execute SQL Task . I selected the columns X,Y and Z , initialized 3 variables of type Object , used a ForEach to enumerate over the dataset and feed that to a script component that converted the objects to Strings. This seems to work for all types of data in the mulitple columns.
My question - has anyone encountered such problem ? What was the solution ? Just thought I would share this with the rest of the community. I cant seem to recall what the exact error I was getting ..but it was something like "cant convert long data to string " or something . I also keep getting annoying error icons in my Excel Source components used in the foreach loop. Something to do with acquire connection failed even after I set DelayValidation to "true".
Hi, I created SQL Server package and schedule the job. SQL Server allows us to connected different database for e.g. for oracle using "Oracle Provide for OLD DB" to retrieve our database. A link is create between this database which move the data to SQL Server. I'm sure there is no issues in the link, as I'm using it to retrieve several oracle database which contains both Arabic and English data.
But after Importation it is showing Junk values. Please advise me what step I should take next.