SS 2005's Maintanance Wizard?

May 13, 2007

where is the maintanance wizard on SS2k5?

View 1 Replies


ADVERTISEMENT

After Moving 2000 Databses To 2005 Error With Maintanance Plan

Oct 25, 2007



I have moved few databases in 2000 to a different server which run's on sql server 2005 and its not a instance ogf 2000.
I backed up databases in 2000 moved those files to other server and then restored them.
I had solved the problem of orphand users by deleting and adding again.

Now when i try to setup maintenance plan i have the following error after walking through the wizard

TITLE: Maintenance Plan Wizard Progress
------------------------------
Adding tasks to the maintenance plan failed.
------------------------------
ADDITIONAL INFORMATION:
Object reference not set to an instance of an object. (Microsoft.SqlServer.Management.MaintenancePlanWizard)
------------------------------
BUTTONS:
OK
------------------------------

what do i need to fix this????Any help is appreciated...

And what else do i need to make sure everything in 2005 are working fine apart from orphand user.

Please let me know

Thanks in advance

View 1 Replies View Related

Importing Data From Oracle 8i/9i To SQL Server 2005 Using SQL Server Import And Export Wizard (AKA DTS Wizard)

Oct 20, 2006

Hi All,

I have become frustrated and I am not finding the answers I expect.

Here's the gist, we support both Oracle and SQL for our product and we would like to migrate our Clients who are willing/requesting to go from Oracle to SQL. Seems easy enough.

So, I create a Database in SQL 2005, right click and select "Import Data", Source is Microsoft OLE DB Provider for Oracle and I setup my connection. so far so good.

I create my Destination for SQL Native Client to the Database that I plan on importing into. Still good

Next, I select "Copy data from one or more tables or views". I move on to the next screen and select all of the Objects from a Schema. These are Tables that only relate to our application or in other words, nothing Oracle System wise.

When I get to the end it progresses to about 20% and then throws this error about 300 or so times:

Could not connect source component.
Warning 0x80202066: Source - AM_ALERTS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

So, I'm thinking "Alright, we can search on this error and I'm sure there's an easy fix." I do some checking and indeed find out that there is a property setting called "AlwaysUseDefaultCodePage" in the OLEDB Data Source Properties. Great! I go back and look at the connection in the Import and .... there's nothing with that property!

Back to the drawing board. I Create a new SSIS package and figure out quickly that the AlwaysUseDefaultCodePage is in there. I can transfter information from the Oracle Source Table to the SQL Server 2005 Destination Table, but it appears to be a one to one thing. Programming this, if I get it to work at all, will take me about 150 hours or so.

This make perfect sense if all you are doing is copying a few columns or maybe one or two objects, but I am talking about 600 + objects with upwards of 2 million rows of data in each!!

This generates 2 questions:
1. If the Import Data Wizard cannot handle this operation on the fly, then why can't the AlwaysUseDefaultCodePage property be shown as part of the connection
2. How do I create and SSIS Package that will copy all of the data from Oracle to SQL Server? The source tables have been created and have the same Schema and Object Names as the Source. I don't want to create a Data Flow Task 600 times.

Help!!!

View 8 Replies View Related

Maintanance Plan

Nov 28, 2006

i have a few maintanance plans on one database that i wanna copy acrross the whole plans to another database of same set up... is there a way to do this?

instead of re typing all plans?

View 6 Replies View Related

Maintanance Plan- Help -urgent

Jun 13, 2001

Hi,

We have maintanance plan defined that runs every night for optimization, integrety check and full backup. Somehow, for last two days I have been receiving the following error about two out of four databases.

[1] Database customere7: Check Data and Index Linkage...

** Execution Time: 0 hrs, 0 mins, 1 secs **

[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 15089: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot change the 'single user' option of a database while another user is in the database.
[2] Database producte7: Check Data and Index Linkage...

** Execution Time: 0 hrs, 0 mins, 1 secs **

[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 15089: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot change the 'single user' option of a database while another user is in the database.

Strange thing is that we don't have this database in single user mode. They are the the main production databases and optimization and backup jobs run OK.

Please help me..I am not sure whether there is a major problem with database or what I should check. Does running integrety check after optimization job affect anything?

Daily activities seem normal with these databases.

Please help.

View 1 Replies View Related

Search Database Maintanance

Feb 15, 2007

Is there any speicial considerations when you prepare the maintanance Plan for the Search Database.

View 3 Replies View Related

Scheduled Maintanance Tasks - Help

Oct 15, 2001

Hi,

All the maintanance jobs scheduled for weekend are still running after 66 hours.

1. transaction log backup
2. integrity check
3. complete backup
4. optimization job

I stopped the jobs from scheduled task lists, I can still see them running through current activity window.

Is it ok to kill them? Or how I can stop them?

Thanks,
Ann

View 1 Replies View Related

Replication Maintanance Issues!

Apr 29, 2004

Hi Guys/Gals,

Need some comments/ideas on the following scenario:


Current Situation:
-I have a PROD DB and a REPORTING DB( Separte Physical Servers).
-PROD DB replicates (Transactional) to REPORTING DB. ( Using only Replication Wizard to set up, quite easy)
-DB is for running shopfloor(manufacturing) applications, thus needs to be minimum downtime.
-Retention period for PROD DB data is 3 months ,Reporting DB is 3 years.



Future Problem that I will encounter:
-Purging of data in PROD DB will be replicated into Reporting.
-Schema change in PROD DB need to delete existing Publication before able to change schema.
-After schema change, need to recreate publication and rerun snapshot.


Questions:
-How to prevent the purging to be replicated to Reporting?
Switching off Replication when Purging takes place will not help. The only solution
I am thinking of is to alter the store procedure for replication during purging.
Is there any other "CLEANER" hassle free way?


- How to cater shema changes better?
Currently the data is not alot, but down the road, it might go to Terabytes, by then running a
snapshot will cost us alot. Is there any way not to redo a snapshot for this scenario?


Please give your comments/ideas/ .

Thanks.

View 5 Replies View Related

Maintanance Plan Reports Failer. T-Logs And Backups Successful

Nov 28, 2001

I have a Mantenance Plan running on my Production Server.
Each job has one step.
-Optimization (each week)
-Integrity Checks (each week)
-T-Log Backups (each hour)
-Full Back up (once a day)

The Job is saying the last three are failing but niether the SQL Server Logs or MS Application Log are reporting a success or faluire. "write to windows application log on faluire" is set for all of them. The backups are occuring, as the files are in thier destination.

Anyone experience this before? If so any advise?

Thanks,
Matt

View 2 Replies View Related

SQL 2005 Import Wizard

Mar 5, 2008

I just installed SQL 2005 and am having trouble with the import wizard. After I select import data I get the following error.
I am running SQL on XP. Does anyone have a lead on this error?

===================================
This wizard will close because it encountered the following error: (Microsoft SQL Server)
------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR&EvtID=UncaughtException&LinkId=20476
===================================
No description found
------------------------------
Program Location:
at Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.get_DBProviderInfos()
at Microsoft.SqlServer.Dts.DtsWizard.DTSWizard.GetDtsDbProviderInfos(WizardInputs wizardInputs)
at Microsoft.SqlServer.Dts.DtsWizard.DataSourceCombo.PopulateProviders(Boolean fSources, WizardInputs wizardInputs)
at Microsoft.SqlServer.Dts.DtsWizard.Step1.OnInitializePage(EventArgs e)
at Microsoft.SqlServer.Management.UI.WizardPage.RaiseEnterPage()
at Microsoft.SqlServer.Management.UI.WizardForm.NextPage(WizardPage nextPage)
at Microsoft.SqlServer.Management.UI.WizardForm.Next_Click(Object sender, EventArgs e)

View 5 Replies View Related

SQL 2005 SP 2 Import Wizard

Apr 2, 2008

I select a database then right click and select import data. The import wizard screen shows then I click Next

and get the following error. The wizard will close because it encountered the following error: Additional Information> No description found.


===================================

This wizard will close because it encountered the following error: (Microsoft SQL Server)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.UI.WizardFrameworkErrorSR&EvtID=UncaughtException&LinkId=20476

===================================

No description found



I am at a loss to fix this error. Is there another way to import data without using the wizard?

Robert

View 4 Replies View Related

SQL Server 2005 Script Wizard

May 3, 2006

When I open the Script Wizard and get to the "Choose Script Options", I only see 2 types of "Script Behavior": "Generate CREATE statements only." and "Generate DROP statements only."; yet the Description Pane states, "Generate the script as a Drop statements, Create statements, or Drop statements followed by Create statements.". Does anyone else have this 3rd option? I hate to believe that I will have to create all "Drop" scripts and then create all "Create" scripts, separately.

Thanks,
Bob

View 6 Replies View Related

Problems With SQL 2005 Export Wizard

Mar 28, 2006

I am trying to transfer data from SQL Express to SQL Server 2005. The data is from Paypal Commerce Starter Kit from ASP.NET site.

I have tried several options (Optimize for many tables, Run in Transaction). However the data is not exported. This is the error I am getting:

TITLE: Operation stopped...
------------------------------

The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.


------------------------------
ADDITIONAL INFORMATION:

The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.


------------------------------
BUTTONS:

OK
------------------------------

View 13 Replies View Related

Copy Database Wizard (MS SQL 2005)

Mar 14, 2006

When I use the "Copy Database Wizard" everything works fine, but the "Identity Specification" is changed in the new database.

Source database (original):
Column Name = HTML_ID
Data Type = int
Identity Specification = Yes
Is Identity = Yes
Identity Increment = 1
Identity Seed = 1

Destination database (copy):
Column Name = HTML_ID
Data Type = int
Identity Specification = No
Is Identity = No
Identity Increment =
Identity Seed =

Why? Is this a feature or a bug?

View 3 Replies View Related

Using Copy Database Wizard To Upgrade To 2005

Jun 6, 2007

Hello All:
I'm new to this forum and new to the upgrade process for SQL2K5. I would like to get this upgrade moving. However, I running into a few problems. Right now I am attempting to use the Copy Database Wizard. SQL2K5 and SQL2K are installed on different servers.
I made a copy of the tables for the database I am converting and this is the one I am trying to copy over.
The process runs fine until it gets to the SQL Server Agent Job. It fails on this step and prompts to check the event log.
Does anyone know what might cause this?

Right now I'm looking for the easiest solution to test the data. Is the copy database wizard the best approach? Can anyone recommend another one? Maybe backup/restore.

I used export from SQL2K to SQL2K5 and that worked, but it brought over the dbo prefixes.

Any help is greatly appreciated. Or at least a shove in the right direction.

Thanks,
Cleech

View 2 Replies View Related

DTS Wizard SQL 2005 - Enable Identity Insert

Dec 8, 2005

I have a large number of Access tables that I need to periodically bring to SQL using the DTS Wizard in SQL 2000 (via Ent. Man). I am only interested in bring over the data from the MS Access tables as I had a separate script (application drive) that would create the SQL tables.

View 13 Replies View Related

Help Import Export Wizard SQL Server 2005

Jul 13, 2007

Hi! I have XP sp2, with SQL server 2005 Developer Edition 9.00.3054.00 and also have Microsoft SQL Server Express Edition 9.00.3042.00, well my problem alway I want import data into any server from any data source I recive this message:



TITLE: SQL Server Import and Export Wizard
------------------------------

The operation could not be completed.

------------------------------
ADDITIONAL INFORMATION:

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. The system cannot find the file specified. (System.EnterpriseServices)

------------------------------

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. The system cannot find the file specified.

------------------------------

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

------------------------------
BUTTONS:

OK
------------------------------




I have this name space but, I try for many ways and I can't import data in my server, What can I do???



Thanks a lot.

View 6 Replies View Related

Import Wizard SQL Server 2000 Vs. 2005

Oct 5, 2007

I'm importing a fixed or tab delimited text file into a SQL Server database. When I use SQL 2000 import wizard about 10,000 rows are missed or skipped, but when I use SQL 2005 all the rows are imported successfully.

If anyone has any ideas, I would greatly appreciate it :-)

Thanks!

View 4 Replies View Related

SQL 2005 SP2 : Cannot See DB IN SQL 7.0 CMP MODE In Maintenance Plan Wizard

Jan 30, 2008



Hi,


I've small issue with SQL 2005 SP2. We have migrated database from another server with backup/restore procedure. Seems that db is properly set with cmp level 7.0. We are using standard maintenance plan for all SQL 2005 servers with option "backup all user databases", to have less work. Now it seems that dbs in SQL COMPATIBILITY LEVEL 7.0 cannot be backuped with Maintenance plan. They are not listed in the list of the databases and Maintenance plan is always reporting failure :

"Database '<DBNAME>' is not valid to be included in the maintenance plan."


Is there any way to fix this? Or can I safely switch db to CMP Level 8.0 at least?

Thanks for help

View 4 Replies View Related

MS SQL 2005 Import Export Wizard - SAP R/3 Connection

Oct 31, 2007

Hi

I am trying to import SAP R/3 Data to MS SQL 2005 with SQL Server Import and Export Wizard (.net framework Data Provider for mySAP Business Suite. )

for ie i have to import data from mara table.
System Number of the R3 environemnt 00

but i am getting error at the time i am making connect from MS SQL 2005 to SAP R/3 ...

Following is the error
The operation could not be completed
Additional information
--> Missing SYSNR = ... in connect_param in RFcOpenEx(Microsoft.Adapter.SAP.SAPProvider)
|--> Missing SYSNR = ... in connect_param in RFCOpenEx ( GInvoker)

Can any one explain me where i am going wrong?


View 11 Replies View Related

Problem With SQL Server 2005 Export Wizard

Nov 7, 2007

Hello there,


Do any of you know about SQL 2005 Export problems?
We used to be able to use the Wizard to export a database to an excel file with SQL 2000, now SQL 2005, gives us an error. Here are the settings:


Data Source: SQL Native Client
Use SQL Server Authentication
Destination: Microsoft Excel. Excel version 97-2005 (check first row has column names) on local host
Copy data from one or more tables/views

Select all tables (72)
Execute Package immediately


This is the report:

Operation stopped...

- Initializing Data Flow Task (Success)

- Initializing Connections (Success)

- Setting SQL Command (Success)

- Setting Source Connection (Success)

- Setting Destination Connection (Success)

- Validating (Success)

- Prepare for Execute (Error)



Messages

Error 0xc0202009: {7C16471E-54A0-4A65-97AD-EFAA33B909F2}: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Unspecified error".
(SQL Server Import and Export Wizard)


Error 0xc020801c: Data Flow Task: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DestinationConnectionExcel" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
(SQL Server Import and Export Wizard)


Error 0xc004701a: Data Flow Task: component "Destination 64 - USERS" (5871) failed the pre-execute phase and returned error code 0xC020801C.
(SQL Server Import and Export Wizard)


- Pre-execute (Stopped)

- Executing (Success)

- Copying to [TABLES] (Stopped) ......

- Post-execute (Stopped)

- Cleanup (Success)



MessagesInformation 0x4004300b: Data Flow Task: "component "Destination - [TABLES]" wrote 0 rows.
(SQL Server Import and Export Wizard)



Is there a limit on the number of tables ? (we didn't have this problem with SQL 2000). Is this related to
http://sqljunkies.com/Forums/ShowPost.aspx?PostID=10717
Any help will be appreciated. Thank you!

SG ganinos_at_sat_dot_com

View 6 Replies View Related

Where To Look For Extended Stored Procedure DLL Wizard In VS 2005

Dec 12, 2005

Hi

View 3 Replies View Related

Edit Expression Using SQL Server 2005 Report Wizard

May 28, 2007

Hi



Bear with me I am creating my first report using sql server 2005 report wizard.



I have a query that s runs OK and returns name/addresses of companies for me to write a statement report.



My question is , how can only the 'FILLED' address column get displayed onto report and empty address fields are rejected i.e.



Address 1: 12 WoodStock Road

Address 2:

Address 3: Oxford

Address 4:

Address 5: OX10 0AB



therefore the report (page) should only display Address 1, Address 3 and Address 5



I tried to solve by trying to write an expression in 'Edit Experssion' without any joy.



Thanks in advance

View 5 Replies View Related

Trouble With Upsizing Wizard Connecting To SQL 2005 Express

May 28, 2007

This is my first post ever so forgive me if this is too basic a question.



I have an Access 2000 database that I'm trying to make into a SQL 2005 Express database. Both databases are on the same machine (I've given up with the networking of this) and, after straightening out several problems I've ran into one I can't seem to fix.



Using the Upsizing Wizard in Access 2000 I try to connect to SQL 2005 Express but I keep getting this error: http://www.paulmauer.com/SQL%20connection%20error.doc



SInce both programs are on the same machine I don't understand what is happening. Any help would be appreciated.



Paul Mauer



View 1 Replies View Related

Help - Convert/import Access Data Into Sql 2005 Express... W/dts Wizard....?

May 11, 2008

 i have a website project making an online catalog, maybe 20 categories, a few hundred items.  the small business starter kit looked perfect to jump start this.  the client has provided an access database with the two table for categories and products.  i've got the dts wizard installed and have been trying to import the access data into the sbsk database but i'm stuck.  i'm almost positive that ONE time when i was banging around with the dts wizard, the Edit Mapping screen would let me drop down a list of fields in the destination table so I could actually tell it which field data from the source i wanted to go into which field of the destination.  Of course it didn't succeed that time and now i can't seem to figure a way to get back to having the option to choose the destination fields, all it gives me in the drop down is "<ignore>" or the field name of the source table, which of course doesn't match any of the ones that are in the sbsk.
i've been back through it for a couple days, trying different ways, migrating the data first to sql, letting it try a transfer to a new table then trying to import that, moving both out to excel, aligning the data manually and trying to import that, etc.  i'm bout out of ideas and would sure like to get back to just trying to work out the data type alignment issues with whatever it was i did when i could choose the destination table's fields.
i'd be most appreciative if anyone has a clue what i'm talking about and can put me back on track.
matthew

View 12 Replies View Related

Data Migration Using Import/export Wizard SQL 2000 To SQL 2005

Mar 16, 2007

I am trying to import data from SQL 2000 to SQL 2005

The Data schemas are the same in both (tables, relationships, key and triggers).

Using the wizard I am trying to import data from SQL 2000 to SQL 2005. The issue I face is to manage the Idenity columns. I do not want the identity values from the SQL 2000 DB which may be at say 5000, instead I want to use the identity values from the SQL 2005 database which will problably start at 1

Is there a way to do this, should I use a custom query instead of a direct table dump. If using a custom query do I need to just specify a Select query or does it have to be a specific "INSERT INTO Table ..." type query

If I do import the data directly with Identity "ON" how can I advance the identity column value to current +1 on the SQL 2005 table.

Thanks

javahar

View 3 Replies View Related

Identity Field Settings Not Copied By Import Wizard (2005)

Feb 26, 2006

It appears that when you use the import/export wizard from within Microsoft SQL Server Managment Studio, the identity attributes of the table being copied are not transferred. For example, say the source table has a column

[ref] [int] IDENTITY ( 1 , 1 ) NOT NULL,

When the import wizard is done the destination table will have a column named ref, but will not be an identity column. The column definition will be

[ref] [int] NOT NULL,

instead. Is there a way to change this behavior somewhere in the gui? When doing the import, the only options seems to be 'Enable Identity Insert', but checking this does not affect the definition of the column.

-Eric

View 7 Replies View Related

Where Is Install For SQL Server 2005 Mobile, Cofigure Web Synchronization Wizard???

Dec 21, 2006

I have something called Configure Web Synchronization Wizard under my SQL Server 2005 Mobile Edition on my XP machine. My problem is that I need to install it on a Windows 2000 machine and I can't find the installation package for it. I installed SQL Server 2005, which installed SQL Server 2005 Mobile Edition, but I didnt' get the wizard. I also installed Visual Studio 2005.

Anyone know where it is?

View 1 Replies View Related

SQL Server Managment Studio Express 2005 Import/Export Wizard

Nov 29, 2006

I've created a new database and restored the database from a backup. I'm wanting to import raw data from an excel spreadsheet into the tables of the new database.

When I right click on the database, and hover over tasks the import/ export data menu options are not in the menu.The menu items ends at 'Generate Scripts'.

I'm connected on a local instance to a registered server.

Can anyone advise?

View 9 Replies View Related

Doing A Data Import Using DTS Wizard In SQL Server 2005 - Being Efficient With 5 Flat Files

Apr 13, 2006

Hi,

I'm a new user of SQL Server 2005. I have the full version installed. I also have SQL Server Business Integration Dev Studio installed. My OS is Windows XP.

I'm importing a series of 5 flat files into a database on one of the SQL Servers we have. My goal is to get 5 different tables (though perhaps I should do one and add an extra field to distinguish each import) into the database for further analysis.

I tried doing an import via DTS Wizard. There are no column names in the flat file so I defined them during the import process (all 58 of them). When I got to the end, I had an option to save the import process as a SSIS (SQL Server Integration Service) Package on:

SQL SERVER (I don't have permission for this)

or

FILE SYSTEM (did this one)

I saved the Package locally in hopes of being able to go back in, change the source file and destination table of the package and quickly get the other 4 flat files imported.

My problems are:

1) I couldn't find how to run the *.DTSX Package file to run in SQL Server Studio (basically reuse the Package with minor changes and saving me having to redefine the same 58 columns on each flat file import)

2) Tried but didn't understand how to run it in SQL Server Bus Intel Dev Studio (i.e. understanding the mapping and getting the data types right so it wouldn't error out)

3) Don't know how to make the necessary changes so that the Package handles the next source file and puts in a new destination table (do I need to do 5 CREATE TABLES so this Package has a place to run to?)

4) Does the Package need to be part of a Project to run (I haven't found how to take an existing Package and make it part of a Project/Solution)?

5) Is there a good book or online resource for just getting the basics of using SQL Server 2005 and SQL Server Business Intelligence Development Studio?

I'm really at a loss after spending a day fruitlessly on it scouring the help files, forums and experimenting around.

Hope somebody can point me in the right direction.

Regards,

Patrick Briggs,
Pasadena, CA


View 7 Replies View Related

How Do You Connect To Networked SqlServer 2005 Express Using The Add New Data Source Wizard

Sep 7, 2006

Hi All,

I want to connect to SQLExpress database on the network. I can do so using code but I want to use the Data Source Configuration Wizard. It seems this only works for local instances of SQL server. Is this true?

I can connect just fine to the database on the network using Microsoft SQL Server Management Studio Express...for what this is worth.

I have tried to map a drive to the SQL server machine and pick the mdf file but I get the error msg of network path is not supported for database files....I have turned on allow remote connections, allow tcp/ip, named pipes, added sqlserv.exe and sqlbrowser.exe to my firewall exceptions ect..

I want to be able to use Table Adapters, SqlDataAdapters ect. After reading numerous forum questions/ kb articles this seems to be a common problem. I am on the verge of just saying forget it and use MS Access instead.

Thanks in advance!















View 4 Replies View Related

How Do I Set Access 2002 Upsizing Wizard To Create Clustered-index On SQL 2005

Jun 3, 2006

Here is an extract from the Acc2Sql2.doc >>


By default, the Upsizing Wizard
transfers all indexes as nonclustered indexes. You can modify the Upsizing
Wizard to transfer the primary key index to a clustered index. To make this
change, start Microsoft Access and open the upsizing wizard library database.
For Microsoft Access 95, the filename is Wzcs.mda. For Microsoft Access 97, the
filename is Wzcs97.mda. When the database is open, click the Modules tab and open the
UT_ModUserConstants module. Search down to the UT_CLUSTERED constant. Change
the default value from False to True.

<<< end quote
Question: I am using ACCESS 2002 upsize wizard, I searched my computer for *.mda and could not find any wzcs*.mda. How do I set it so that it creates clustered-index instead of non-clustered-index?

View 1 Replies View Related

Doing A Data Import Using DTS Wizard In SQL Server 2005 - Being Efficient With 5 Flat Files

Apr 18, 2006

I just spent some time working out how to do a seemingly simple task. I€™m sharing the steps I took to do this in hopes it saves other SQL Server 2005 users (especially newbies like myself) time.

My original question posed on several SQL newsgroups was based on this goal:


I'm importing a series of 5 flat files (all with same file layout) into a database on one of the SQL Servers we have using SQL Server 2005 (SQL Server Management Studio) . My goal is to get 5 different tables. I want to do this without having to redo all the layout criteria 4 additional times.

Below are the steps I followed to get a solution (all done in Microsoft SQL Server Management Studio):

Create the Package (data import)

1) Use the SQL Server Import Export Wizard (equivalent to SQL Server 2000 Data Transfer Wizard) to import your first flat file. At the CHOOSE DATA SOURCE window browse for your file.
2) Under the Advanced tab, you can set your Column attributes (€œoutput column width€? or €œdata type€? to name a few). I highlighted all the columns and selected €œstring [DT_STR]€? for data type. To avoid truncation errors, I selected 255 for output column width. You can name the columns whose data you are most concerned with (I did import all the available fields).
3) After choosing a server destination you will have a €œSELECT SOURCE TABLES AND VIEWS€? window pop up. Under the €œMapping€? column you can choose to tweak your mapping further editing in SQL (see Edit SQL button). I didn€™t.
4) The €œSAVE AND EXECUTE PACKAGE€? will pop up. The €œExecute Immediately€? box should be checked and you should check the €œSave SSIS Package€? (SQL Server Integration Services). When you do, select €œFile System€? for where to save this import-file-package to.
5) Click OKAY for the Package Protection Level and the €œSAVE SSIS PACKAGE€? window will appear. Browse for a path on your local computer to save to.

Modify Package (data import) for Next Use

6) In SQL Server Management Studio, browse for the Package and open it.

Preparation for SQL Task €“ box

7) You should see a screen that shows two boxes (€œPreparation for SQL Task€?) and (€œData Flow Task€?).
8) Right click on the former and select €œEdit€?.
9) On the €œSQL Statement€? row, click into the right column and select the €œ€¦€? box
10) Change the destination table (the table you will create with this package) to a meaningful name and click OK.
11) Click OK for the €œSQL Task Editor€?

Data Flow Task - box

12) Right click on the €œData Flow Task€? box and select €œEdit€?.
13) Three boxes will appear €œSourceConnectionFlatFile€?, €œData Conversion 1€?, and €œDestination - <whatever table name your original data import went to>€?. Below them is a section that displays €œConnection Managers€?

SourceConnectionFlatFile - editing

14) The first thing you will want to do is change the import source to a new flat file. You do this by going below the boxes under the €œConnection Managers€? window and right clicking on €œSourceConnectionFlatFile€? and then selecting €œEdit€?
15) Browse for the new €œFile Name€? and select it.
16) A €œMicrosoft SQL Server Management Studio€? window will pop up asking you if you want to €œkeep or reset the existing metadata€?. The metadata is just your column definitions and choosing €œYES€? to keep this makes sense if you are doing data imports on files with the same file layout.
17) Still in the €œFlat File Connection Manager Editor€? window, change the €œConnection Manager Name€? to something meaningful (I add <_> at the end and then the name of the table the flat file is going to) and click OK.

SourceConnectionFlatFile €“ box (editing)

18) Right click on the €œSourceConnectionFlatFile€? box and select €œEdit€?.
19) Your newly named €œFlat File Connection Manager€? should appear in select box.
20) Click OK, right click again on the €œSourceConnectionFlatFile€? box and select €œShow Advanced Editor€?.
21) Under the €œConnections Manager€? tab, your newly named €œFlat File Connection€? should appear (the prior step is necessary for the advanced editor to recognize your change).
22) Under the €œComponent Properties€? tab, on the €œName€? row, click into the right column and rename to something meaningful (notice the €œIdentification String€? row description changes too once you click out of the €œName€? row)
23) Under the €œColumn Mappings€? tab, just confirm you are mapping your flat file fields (€œAvailable External Columns€?) to a destination table€™s fields (€œAvailable Output Columns€?).
24) Under the €œInput and Output Properties€? tab you can check in €œFlat File Source Output€? to make modifications to either your €œExternal Columns€? or your €œOutput Columns€? €“ you shouldn€™t need to for a simple import.
((NOTE: any changes you make here would likely need to be consistent with the column properties found under the €œConnection Manager Window€? for the €œSourceConnectionFlatFile€? as well as the €œData Conversion 1€? box under the €œData Flow Tasks€? window, so exercise caution
25) NOTE: This process has worked for me by making my source columns all €œstring [DT_STR]€? data type and the output columns all €œUnicode String [DT_WSTR]€? data type.

Data Conversion 1 €“ box (editing)

26) There is nothing you need to do here. By right clicking on the €œData Conversion 1€? box and selecting €œEdit€?, you can see and change the data type of the output columns (the ones in the table your importing the flat file to). There are probably more edits one can do but they€™re beyond what I€™ve learned.

Destination - <whatever table name your original data import went to> €“ box (editing)

27) Right click on the €œDestination - <whatever table name your original data import went to>€? box and select €œShow Advanced Editor€?.
28) Select the €œComponent Properties€? tab.
29) Select the right column at the €œName€? row and change the name to something meaningful (ie. related to the source file name or the table name you€™re importing to).
30) Select the right column at the €œIdentification String€? row and it will update to this change.
31) Select the right column at the €œOpenRowSet€? and change it to the name of the table you are importing your flat file to (this should be consistent with table name under step 10).
32) Click OK
33) Select FILE and select €œSave As€¦€? and then give your package a new name that€™s meaningful (this will be helpful if you have to rerun the import of the flat file later).

Run (execute) the Revised Package (data import)

34) Go back to SQL Server Management Studio and open the Object Explorer
35) Connect to an €œIntegration Services€? component. This should essentially be a local instance (not sure where it is on the local computer or in SQL Server Management Studio on the local computer).
36) In €œObject Explorer€? go down to your €œIntegration Services€? object and expand it.
37) Expand €œStored Packages€?
38) Right click on €œFile System€? and select €œImport Package€? and an €œIMPORT PACKAGE€? window will appear
39) For €œPackage Location€? choose €œFile System€? and then browse for the €œPackage Path€?
40) Click into the €œPackage Name€? and it defaults to your Package€™s file name.
41) Click OK and the Package is imported.
42) Right click on the newly imported Package and select €œRun Package€?
43) An €œExecute Package Utility€? window appears
44) Select €œExecute€? and the package runs.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved