I created a Project within SSIS it would take data from a table within a db, do a data conversion and then insert into a Excel spreadsheet. it was working fine with no issues for about a week but now I'm having issues with th e connection manager. I'm getting the data fine from the DB its when it comes to the excel spreadsheet. I have tried doing the project again but still doesn't work. I create a new excel destination within SSIS > a new connection manager go to folder destination and state what I want document to be called. nothing is available from the name of excel sheet drop down and when I select NEW it just closes window. I'm not sure what has gone wrong is it a permissions thing? I have attached screenshot of this and the error when I run application
error when deploy application
i think something must have changed with access to the db. if I use the import wizard and select OLE DB for SQL server as the Datasource nothing is appearing in the server name drop down and If I manual enter it I get an error
Try this:
Step 1) Navigate to Project-> [PROJECT_NAME] Properties.
Step 2: Navigate to “Debugging” option from left panel and from Right panel change Run64BitRuntime value to false.
Related
I am trying to have upload a CSV file to my SQL Server via SSIS. Previously- like a few months ago- I was able to click 'New' on the destination editor to create a generic table based on the imported data. Is that option no longer available for some reason? I updated everything and made sure my credentials are correct and that I have read/write access but can't seem to get anything working. I'm using Visual Studio 2017 with SSDT.
My screen used to look like this :
But now it looks like this :
I faced the same issue previously. The reason was that the TargetServerVersion was not set correctly. Make sure that this property is set to the same version of the SQL Server instance you are using.
How to change TargetServerVersion of my SSIS Project?
I'm in a standard SQL Server Integration Services Package. I have created a connection to my local db instance. I drop a data flow task and then using a OLE DB source and Destination, I start creating my expected simple data flow.
Problem: I create a new table to dump my data from the source in SSMS and go back to visual studio's and look for it in the OLE DB Destination -- Name of the Table or the view drop down menu option and it's not there.
How do I refresh the cache without needing to close the ENTIRE program and reopen it?
I've asked some colleagues and they say they just close the entire program and reopen. So, at my work, I'm not the only person having this problem.
What doesn't seem to work:
Tried to change connections in the drop down
Tried to delete the destination connection and recreate
Close the package and reopen
Close the solution and reopen
CTRL+SHIFT+R
What has worked:
Close the entire program, visual studios, and reopen
This hints to me that it's somehow cached in visual studios.
Is there a easier way? I feel like there has to be... this is just silly that I have to close the entire program each time I add a table ... I reject this reality and wish to create my own!
First of all check that you are not working in offline mode.
If you are not working offline, just try to change the selected connection manager from the drop down list and re-select the initial one, or just change the data access mode and re-select the initial one. I think this may force refreshing the tables in the list.
This is my first time working on a database project, and I'm using Visual Studio 2013.
I simply followed the instruction on Microsoft to create a database project as listed below:
Create a new database project
Clicked Import --> Database and successfully imported tables
Clicked Add --> Stored Procedure...
However I keep getting this Invalid object name 'TABLENAME'. message for any tables I've imported.
I've tried Use DATABASE_NAME; but it did not help.
Also I've read about refreshing IntelliSense but I do not get the refresh option in VS2013. Plus, it's not just the IntelliSense because I still get the same error when I manually type in the table name.
Even if I create a stored procedure directly in SSMS and then try to run it, I still get the same Invalid object name error.
Any help is appreciated very much.
The problem was that I didn't change the connection setup to use the correct database server (I was using the local one).
Right click the database project --> Properties
Click Debug
Under Target Connection String, click Edit and select the correct database server
Create a new stored procedure (I've tried up to STEP3 but my problem was that I was not testing on a new stored procedure after changing the connection setup)
First of all - my VB skills are almost non-existent so any suggestion/ideas should be a little more elaborate if possible. Here is the problem I am facing -
We have linked database tables and queries in Ms Access 2010. Now a copy of the database has been created on a new SQL server. So I want to re-link the tables so that access points to the tables on the new SQL server. Right now, all the tables are corresponding to the database on the old server. Here is what I have tried -
Open XYD_Outreach_Dev.accdb on the network (this is the dev version of access that we use)
Form a new ODBC connection which creates a new_sql_server.dsn file corresponding to the new SQL server (2012)
Go to External Data -> ODBC Database -> Link to the data source by creating......
Link to a table say - tblAbriContacts
This creates a new linked table dbotblAbriContacts
I rename it to tblAbriContacts at which point Access asks me -> table already exists. Do you want to replace it? I click yes and the table gets replaced
I hit the save button, close the application and restart it. The tblAbriContacts is pointing to the old database again
What could be the issue? Please note that I have to do this for all the database, lookup and junction tables.
Do I have to change some connection string which the access points to as soon as it is launched?
If I try the Linked table manager, nothing happens, it says "All selected tables were successfully refreshed". But nothing happens. I guess that's because the tables haven't been moved from the old database. A new copy of everything has been created on the new server.
Please help me out with this. My work is stuck because of this reason.
Can you please check if there is a module or other vba file created and file's on_load event has some code which to assign the connection string for all objects (tables and SPs) and refreshes it every time you restart the application.
If you see the connection string there, you might need to replace it with the new one.
I created a database named sample in SQL server management Studio 2008 and created a table too. But When I wanted to connect to the created database from the Visual Studio 2010, it did not show my created database.
All I did is I clicked ..
Tools --> Connect to Database --> Selected the server name --> Clicked 'Use Windows Authentication'---> clicked the drop down list of 'Select or enter a database name'.
It dint show my created database sample but showed master, model, msdb, Reportserver, reportserverTempdb, Tempdb.
If I enter the database name, I get the following error:
"This connection cannot be tested because the specified database does not exist or is not visible to the specified user"
What could be the problem and how do I solve it? I am looking forward to solve this problem as soon as possible.
Hope you must have resolved this... otherwise I followed the following steps
Goto SQL Server Object explorer
Add the SQL server - your_pcname\SqlExpress
Add the new database
Create tables into it
Then - try to create the connection; it should show the new database created.
For someone who came here just like me, in my sql server, there was a failed restore attempt of the same database. It said XYZDatabase (Restoring...). The issue got resolved when I deleted that failed restore.
Mention the correct server name of the specific database to which you want to connect.
Open SQL Server > Right click on the database which you want to connect > properties> Click View Connection Properties (In the left side written in blue color)> There is the server name, copy that and paste it in the Connection Server Name in Visual Studio Project on which you want the data.
I hope this helps.