SQL Server 2008 Database rights - sql-server-2008

In one of the SSIS package there are 5 data flow tasks where in it is pulling data from 5 tables from Source DB and dumping as it is in destination database. However when I connect to source DB using SQL Server Management studio with same user as that used in SSIS connection manager for Source DB, it does not show any table. It does not even allow to select specific columns data from those table, only allows to do "select *" from those table. Please let me know what type of permissions are given to this user ?

Related

Transfer SQL Server Objects Task and Azure SQL - USE statement is not supported to switch between databases

I am using SSIS package Transfer SQL Server Objects task in order to transfer some tables from local SQL Server database to Azure SQL.
My task fails with the following error "USE statement is not supported to switch between databases. Use a new connection to connect to a different database."
I have read that this error occurs because master database is used and can be fixed by prefixing table names (for the tables to be transferred) with a database name. Unfortunately I cannot do that because when selecting table names there is no option to add database name as prefix - only schema name. So I am stuck here. Any suggestions?
Transfer SQL Server Objects task is using SMO in the background, which then uses the "USE" statement. This makes Transfer SQL Objects incompatible for connecting to Azure SQL Database.
My recommendation is to use Azure SQL Data Sync if you are only synchronizing tables: https://msdn.microsoft.com/library/azure/hh456371.aspx
Let me know how you go with it.
Julie

Using SSIS to move a SQL Server table to a specific MySQL folder

I'm moving a SQL Server table from SQL Server 2008 R2 to MySQL on my c:\ drive by using SSIS.
In SSIS, I have created ADO.Net source and destination connections with a 64 bit unicode driver I downloaded and have managed to successfully to transfer the data from SQL Server to a newly created MySQL table.
However, even though all rows were copied successfully, the table doesn't show up in the MySQLdatabase with my other tables. SSIS put the table in a different directory from the one where the database tables are located. I don's see how to change the location. When I'm selecting a table in SSIS for the data to go to, it doesn't show the right list of tables.
It's showing tables located in c:\xampp\mysql\data\mysql while my database tables are located in c:\xampp\mysql\mydb. How can I access these new tables, or direct SSIS to use a different path?
Thanks for your response. I have a local instance of mySQL. As Ivan suggested, it is a problem with the connection I setup. I didn't see anyway to change that, since when you look at the connections offered in SSIS after picking "NEW" to create a new connection in the ADO.Net setup, there's a drop down menu with my existing connection and a few others but that's it, so what you have to do is opt for creating a new connection string, and in that set of menus I was able to add a new connection (the string is built for you), so when I redid the connection, and moved the next table it went into the database. So, that worked.
Just as an aside, Of course, I found that the transformation will only succeed if you run the following statement in MySQL: "SET GLOBAL sql_mode='ANSI' once you've started up MySQL from the XAMP control panel.

sql server import wizard doesnot copy keys

I want to import/copy Microsoft Access Database in SQL Server. This what I have tried.
Created a database using SQL Server Management Studio.
Then right click on this new database and tasks -> import wizard.
on first screen selected the type as Access and selected the file .mdb
Then selected SQL Server as destination database.
and selected the tables which I want to copy.
I also checked the identity enable to true.
The problem is it copied all the table but the keys are not copied....
Can any one please help. I am using sql server 2008.
thanks.

importing access 2003 database to sql server 2008

I am importing an MS Access 2003 database to SQL Server 2008 through the SQL server import and export wizard. The database is imported successfully, but when I look at the tables on both sides, they are different. For example, some of the tables that are there in the access database are not present in SQL Server while some created in SQL Server are not present in the original database.
Some of the tables absent from the original database are highlighted
Why is this happening? How can I verify the import then?
Important edit: It is importing the queries instead of tables. The entries seen in the wizard are present as queries in the original database.
I am not a fan of the 2003 Upsize Wizard. I suggest you create a new SQL database and then import the tables and data using SSMS by right clicking the Database node and select Tasks then Import Data... Then make sure you have a Primary Key established for each table in SQL Server, then create ODBC linked tables in your front end mdb.

Residual SQL Server 2000 Objects When Restoring DB to SQL Server 2008

I've performed a RESTORE DATABASE command to restore an SQL Server 2000 database on SQL Server 2008. The script ran and showed several messages showing the DB being upgraded. What I've noticed is that (seemingly) legacy database objects from SQL Server 2000 have been migrated to the SQL 2008 DB.
For example, there are stored procedures whose name starts with dbo.dt_ in both the Stored Procedure and System Stored Procedure folders when viewing the DB in Management Studio. There was also the table dbo.dtproperties listed under tables.
Is it safe to drop these objects? These objects aren't in a DB created in SQL 2008 itself, so I'm thinking yes. But I'd like to make sure :)
Those objects exist for database diagrams. If you don't have any database diagrams in your database that you care about, then it is fine to delete those objects.