I have scenario like this:
If I connect SQL Server view or stored procedure with excel i can get to see the data/table/pivot from SQL Server database, i can also refresh that excel, But if I share that excel with another user, that excel should not get refresh the data/view from the database, if someone other trying to refresh data Excel needs to get closed or need to show pop up with access denied.
Is this possible??
Can anyone help me to achieve solution.
Condition:
We are migrating SQL Server 2008 to 2019
For testing purpose we have developer edition of SQL Server 2019.
I want to give access to some higher authority to use that Excel, so we require user authentication as well.
Related
I'm trying to convert a MS Access 2016 (.accdb) file to a SQL backend via SSMS (15.0.1835830). I have tried following the process descibed here but was unable to get the option to import newer Access formats to appear.
I have found a way to export from Access to SQL Server, but that does not include table Relations as far as I am able to tell...
Does anyone know of a way to get an Access 2016 database into a SQL server?
I transferred my Access Back-end to SQL Server and linked the tables. I used the SQL Server Migration Wizard. When I ran my Forms, Reports and Queries, I was surprised to see that it worked perfectly fine as if I did not even migrate.
How is it the JET SQL syntax of Access able to retrieve data from SQL Server which uses T-SQL language?
Because Jet doesn't need to use Transact-SQL, it just knows how the data is stored, the same way you can use an ODBC connection to pull data from an Oracle database without using PL-SQL. Also, you can write a stored procedure in the SQL database, using T-SQL, and you can fire it off via Jet: the proc lives and runs on the SQL side, and Jet doesn't need to know how it works, just how to fire it.
I am working on an Access accdb project and I have all my tables linked to MS SQL Server 2008 R2 via ODBC.
I have one screen with a sub form that always gives me this error message when I enter it:
I've done some research and it it supposed to be related to the server's authentication method, but if all my tables are linked the same way, why does it happen?
What's even more weird is that if I refresh my table's connections via the linked table manager, everything works fine for some time, and then I get the same error again. I look through my code to see if I play with any connection string, but I don't.
Any thought/ideas? Any (educated) guess you have will be appreciated :)
Thanks,
Yotam
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode.
The server must be stopped and re-started before this will take effect.
I'm experiencing a weird problem with a SQL login. When I connect to the server in Microsoft SQL Server Management Studio (2008) using this account, I cannot see any of the tables, stored procedures etc. that this account should have access to on a particular database.
When I connect to the same server within Visual Studio (2008) with the same account everything is there. When I connect with the same account on a Virtual Machine everything is there. I've also had a co-worker connect to the server using the same login and he's able to view everything as well.
I use Microsoft SQL Server Management Studio all day connecting to different servers and databases and I've never experienced this problem.
Does anyone have any suggestions on how I can diagnose this problem?
I've checked to make sure I don't have any Table filters etc.
There's several database on this server and I'm able to see the correct tables that this account has access to in the other databases just fine.
Running this query lists the tables I'm expecting to see.
SELECT * FROM INFORMATION_SCHEMA.TABLES
I've solved my problem. It's a bug... Here are the details.
https://connect.microsoft.com/SQLServer/feedback/details/387616/tables-node-does-not-show-all-schemas-in-ssmse-2008
fire up SQL Profiler then refresh the database list in SQLSMS and see what the query is that it uses to list the databases.
you can restart sql management to fix it.
I've been developing an application that talks directly to an SSAS 2005 OLAP cube. Note that I also have SQL Server 2008 installed, so the other day I did a Windows Update and decided to include SQL Server 2008 SP1 in my update. After doing that, my SSAS 2005 cube is no longer accessible from my application.
I'm able to browse the data just fine within SQL Server 2005 BI Studio Manager, but I'm not able to connect to the cube from my application. Here is my connection string that used to work:
Data Source=localhost;Provider=msolap;Initial Catalog=Adventure Works DW
Here is the error message I get:
Either the user, [Server]/[User], does not have access to the Adventure Works DW database, or the database does not exist.
Here is the beginning of my stack trace if it would help:
Microsoft.AnalysisServices.AdomdClient.AdomdErrorResponseException was unhandled by user code
HelpLink=""
Message="Either the user, Luc-PC\\Luc, does not have access to the Adventure Works DW database, or the database does not exist."
Source="Microsoft SQL Server 2005 Analysis Services"
ErrorCode=-1055391743
StackTrace:
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.IDiscoverProvider.Discover(String requestType, IDictionary restrictions, DataTable table)
at Microsoft.AnalysisServices.AdomdClient.ObjectMetadataCache.Discover(AdomdConnection connection, String requestType, ListDictionary restrictions, DataTable destinationTable, Boolean doCreate)
at Microsoft.AnalysisServices.AdomdClient.ObjectMetadataCache.PopulateSelf()
at Microsoft.AnalysisServices.AdomdClient.ObjectMetadataCache.Microsoft.AnalysisServices.AdomdClient.IObjectCache.Populate()
at Microsoft.AnalysisServices.AdomdClient.CacheBasedNotFilteredCollection.PopulateCollection()
at Microsoft.AnalysisServices.AdomdClient.CacheBasedNotFilteredCollection.get_Count()
at Microsoft.AnalysisServices.AdomdClient.CubesEnumerator.MoveNext()
at Microsoft.AnalysisServices.AdomdClient.CubeCollection.Enumerator.MoveNext()
at blah blah...
I've looked for a solution for the last 4+ hours and haven't had any success. Thanks in advance for any help.
Luc
I fixed the problem by granting myself admin permissions on the cube. Right or wrong, it worked and I was able to move on...