How do you change the Language in SQL Express (2008) to another language like English?
this way ( e.g. for british english )
EXEC sp_configure 'default language', 23
RECONFIGURE
Related
I have the following stored procedure
CREATE OR REPLACE PROCEDURE MyProcedure(nKey IN INTEGER, pcResult OUTCustomType) IS
BEGIN
OPEN pcResult FOR
SELECT MyPackage.IsBool1(nKey) AS IsBool1,
MyPackage.IsBool2(nKey) AS IsBool2,
MyPackage.IsBool3(nKey) AS IsBool3
FROM DUAL;
END;
We have an external team to test security, they use a tool to achieve that.
Our procedure is consumed in our .Net app via EF.
The security report shows that all procedures with a cursor as output have a risk for SQL injection.
Could you please explain me how SQL injection could be exlpoited on pcResult ?
Thank you for your help,
Bile
I'm desperately trying to activate FileStream only with queries. By following the MSDN procedure everything is ok, but I would like to enable it without using SQL Server Configuration Manager or SQL Server Management Studio.
On several website I read that this query was enough to activate this feature (this query is done in the MSDN procedure but after some configuration in SQL Server Configuration Manager ) :
EXEC sp_configure 'filestream_access_level', 2;
GO
RECONFIGURE
GO
The message L option de configuration filestream access level est passée de 2 à 2. Pour installer, exécutez l'instruction RECONFIGURE." is gave but if I check the service's proprieties Filestream is steal disabled, even if I execute RECONFIGURE again. If I try to open a connection to a base featuring Filestream columns i get a message confirming Filestream is not enabled.
I also tried this query :
USE master
GO
EXEC sp_configure 'show advanced options'
GO
EXEC sp_configure filestream_access_level, 3
GO
EXEC sp_filestream_configure
#enable_level = 3
, #share_name = N'FS';
GO
RECONFIGURE WITH OVERRIDE
GO
Without succes, althougth the sp_filestream_configure seems to not exist.
This website tell the issue could be the default language of my server, but after change the default language to English nothing was better.
https://stackoverflow.com/questions/1...tream-access-l
I hope someone will be able to help me. Thanks. Sorry for my bad english, I'm french ;)
You have to do both. One is enabling the feature in the configuration manager. The other is setting the access level.
Here's the MSDN guide to walk through:
https://msdn.microsoft.com/en-us/library/cc645923.aspx
You're only doing step 11, you need to do the first 10 steps as well.
I wonder if it possible to update table syslogins for Sybase 11 database.
statement:
UPDATE syslogins SET name = 'aaa' WHERE name = 'bbb';
Leads to error: no permission.
I've read about preparation sp_configure "allow update", 1;
but there is no procedure sp_configure in Sybase 11 (it exists for Sybase 15+).
Is there any another workaround for the task?
It would appear that you are using Sybase SQLAnywhere (based on the version number), but the procedures and tables you are trying to edit are part of Sybase Adaptive Server Enterprise (ASE).
In SQLAnywhere, syslogins is a view that pulls information from the ISYS* tables, but is only there to maintain compatibility with T-SQL.
What is the scope of the SET LANGUAGE clause in SQL Server 2005 and above?
SET LANGUAGE is scoped to the session.
How can i resolve a hostname in t-sql? a 2000 compatible method is preferred. Although something that works on 2005/2008 would also be helpful.
eg. If i have the hostname stackoverflow.com i want to return 69.59.196.211
Well, I suppose you could use xp_cmdshell to execute nslookup and parse the results. Seems like a really awkward thing for SQL Server to be doing, though.
exec master..xp_cmdshell 'nslookup intel.com'
.. then you'll probably want to stuff that in a temp table and walk through the results.
You could also, if you can get access to SQL Server 2005 or 2008, build a stored procedure or function in .NET and do a simple call to Dns.GetHostAddresses().
SQL Server may block access to procedure 'sys.xp_cmdshell' as part of the security configuration. As a system administrator you can enable the use of 'xp_cmdshell' as follows:
-- Allow advanced options.
EXEC sp_configure 'show advanced options', 1;
GO
-- Update the currently configured value for advanced options.
RECONFIGURE;
GO
-- Then, enable the feature.
EXEC sp_configure 'xp_cmdshell', 1;
GO
-- Update the currently configured value for this feature.
RECONFIGURE;
GO
-- Then you can go ahead and run ...
exec master..xp_cmdshell 'nslookup microsoft.com'
GO